feat: disable rn w/ build prop
This commit is contained in:
parent
b3605eaa0b
commit
8452fc5d28
2 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ android {
|
|||
|
||||
buildConfigField("String", "TAG", "\"AliucordManager\"")
|
||||
buildConfigField("String", "SUPPORT_SERVER", "\"EsNDvBaHVU\"")
|
||||
buildConfigField("boolean", "RN_ENABLED", "true")
|
||||
|
||||
buildConfigField("String", "GIT_BRANCH", "\"${getCurrentBranch()}\"")
|
||||
buildConfigField("String", "GIT_COMMIT", "\"${getLatestCommit()}\"")
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ import androidx.compose.ui.res.stringResource
|
|||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.window.Dialog
|
||||
import com.aliucord.manager.BuildConfig
|
||||
import com.aliucord.manager.R
|
||||
import com.aliucord.manager.ui.screen.InstallData
|
||||
|
||||
|
|
@ -102,6 +103,7 @@ fun InstallerDialog(
|
|||
ProvideTextStyle(MaterialTheme.typography.labelMedium) {
|
||||
Button(
|
||||
shape = MaterialTheme.shapes.extraSmall,
|
||||
enabled = BuildConfig.RN_ENABLED,
|
||||
onClick = {
|
||||
discordType = DiscordType.REACT_NATIVE
|
||||
triggerConfirm()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue