fix: CI 环境判断错误
This commit is contained in:
parent
22d7eeb2df
commit
32e982144a
|
|
@ -15,7 +15,7 @@ def applicationProperties = new Properties()
|
|||
applicationProperties.load(new FileInputStream(rootProject.file("application.properties")))
|
||||
def sha = System.getenv("GITHUB_SHA")
|
||||
def isCI = System.getenv("CI")
|
||||
def isSelfBuild = isCI != "true"
|
||||
def isSelfBuild = isCI == null || !isCI.equalsIgnoreCase("true")
|
||||
def applicationVersionCode = applicationProperties["versionCode"].toInteger()
|
||||
def applicationVersionName = applicationProperties["versionName"]
|
||||
def isPerVersion = applicationProperties["isPerRelease"] == "true"
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ class App : Application(), IApp, IGetter, SketchFactory {
|
|||
Analytics::class.java, Crashes::class.java, Distribute::class.java
|
||||
)
|
||||
}
|
||||
setIcon(keepOld = !BuildConfig.DEBUG && !isSelfBuild)
|
||||
setIcon(keepOld = BuildConfig.DEBUG || isSelfBuild)
|
||||
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM)
|
||||
ThemeUtils.init(ThemeDelegate)
|
||||
registerActivityLifecycleCallbacks(ClipBoardLinkDetector)
|
||||
|
|
|
|||
Loading…
Reference in New Issue