fix(android): wire exact preview startup and device benchmarks
Gitea CI / Check code and tests (pull_request) Successful in 11m6s
Gitea CI / Build Android APK (pull_request) Successful in 5m15s
Gitea CI / Build Windows x64 app (pull_request) Successful in 2m41s
Gitea CI / Audit and package Windows x64 (pull_request) Successful in 1m2s
Gitea CI / Assemble and validate CI artifacts (pull_request) Successful in 51s
Gitea CI / Gitea CI passed (pull_request) Successful in 2s
Gitea CI / Check code and tests (pull_request) Successful in 11m6s
Gitea CI / Build Android APK (pull_request) Successful in 5m15s
Gitea CI / Build Windows x64 app (pull_request) Successful in 2m41s
Gitea CI / Audit and package Windows x64 (pull_request) Successful in 1m2s
Gitea CI / Assemble and validate CI artifacts (pull_request) Successful in 51s
Gitea CI / Gitea CI passed (pull_request) Successful in 2s
This commit is contained in:
1 parent
b4cb12cbe3
commit
64a3a5b547
11 files changed
+1577
-30
No files matched your search
@@ -33,6 +33,8 @@ android {
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId = "com.example.cutdex"
|
||||
manifestPlaceholders["cutdexPreviewReverseCacheMiB"] = "0"
|
||||
manifestPlaceholders["cutdexNativeSurfacePreview"] = "false"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||
minSdk = 31
|
||||
@@ -50,7 +52,17 @@ android {
|
||||
create("development") {
|
||||
dimension = "environment"
|
||||
applicationIdSuffix = ".dev"
|
||||
resValue("string", "app_name", "Cutdex Dev")
|
||||
// Device validation can coexist with an app signed on another machine.
|
||||
val validationId = providers.gradleProperty("cutdexValidationApplicationId")
|
||||
.orElse(providers.environmentVariable("CUTDEX_VALIDATION_APPLICATION_ID")).orNull
|
||||
if (validationId != null) applicationId = validationId
|
||||
resValue("string", "app_name", if (validationId == null) "Cutdex Dev" else "Cutdex Decoder Test")
|
||||
manifestPlaceholders["cutdexPreviewReverseCacheMiB"] = providers
|
||||
.gradleProperty("cutdexPreviewReverseCacheMiB")
|
||||
.orElse(providers.environmentVariable("CUTDEX_PREVIEW_REVERSE_CACHE_MIB")).getOrElse("0")
|
||||
manifestPlaceholders["cutdexNativeSurfacePreview"] = providers
|
||||
.gradleProperty("cutdexNativeSurfacePreview")
|
||||
.orElse(providers.environmentVariable("CUTDEX_NATIVE_SURFACE_PREVIEW")).getOrElse("false")
|
||||
}
|
||||
create("production") {
|
||||
dimension = "environment"
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
android:label="@string/app_name"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/cutdex_launcher">
|
||||
<meta-data android:name="dev.cutdex.previewReverseCacheMiB"
|
||||
android:value="${cutdexPreviewReverseCacheMiB}" />
|
||||
<meta-data android:name="dev.cutdex.nativeSurfacePreview"
|
||||
android:value="${cutdexNativeSurfacePreview}" />
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
|
||||
Reference in new issue
Block a user