diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts
index c22ff04..b5a76b7 100644
--- a/android/app/build.gradle.kts
+++ b/android/app/build.gradle.kts
@@ -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"
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index eddaafc..e260d65 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -3,6 +3,10 @@
android:label="@string/app_name"
android:name="${applicationName}"
android:icon="@mipmap/cutdex_launcher">
+
+
{
+ 'status': 'running',
+ 'source': source,
+ 'sourceBytes': before.size,
+ 'buildMode': const bool.fromEnvironment('dart.vm.product')
+ ? 'release'
+ : const bool.fromEnvironment('dart.vm.profile')
+ ? 'profile'
+ : 'debug',
+ 'scope': 'Production EditorWorkspace, Projects, preview and real touch ruler input; isolated project/database',
+ 'measurement': 'Native queued-frame counters and content timestamp, not physical display scanout',
+ 'switches':