|
| 1 | +import com.android.build.OutputFile |
| 2 | + |
1 | 3 | plugins {
|
2 | 4 | id "com.android.application"
|
3 | 5 | id "kotlin-android"
|
@@ -39,6 +41,14 @@ android {
|
39 | 41 | versionName flutterVersionName
|
40 | 42 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
41 | 43 | multiDexEnabled = true
|
| 44 | + |
| 45 | + ndk { |
| 46 | + abiFilters "armeabi-v7a", "arm64-v8a", "x86_64" |
| 47 | + } |
| 48 | + } |
| 49 | + |
| 50 | + buildFeatures { |
| 51 | + flavorDimensions = ["deploy"] |
42 | 52 | }
|
43 | 53 |
|
44 | 54 | compileOptions {
|
@@ -68,21 +78,51 @@ android {
|
68 | 78 | }
|
69 | 79 | }
|
70 | 80 |
|
| 81 | + productFlavors { |
| 82 | + base { |
| 83 | + dimension "deploy" |
| 84 | + } |
| 85 | + fdroid { |
| 86 | + dimension "deploy" |
| 87 | + } |
| 88 | + } |
| 89 | + |
71 | 90 | buildTypes {
|
72 | 91 | release {
|
73 | 92 | signingConfig signingConfigs.release
|
74 | 93 | }
|
| 94 | + debug { |
| 95 | + signingConfig signingConfigs.debug |
| 96 | + } |
| 97 | + } |
| 98 | + |
| 99 | + splits { |
| 100 | + abi { |
| 101 | + enable true |
| 102 | + reset() |
| 103 | + include "armeabi-v7a", "arm64-v8a", "x86_64" |
| 104 | + universalApk true |
| 105 | + } |
| 106 | + } |
| 107 | + |
| 108 | + project.ext.versionCodes = ['armeabi-v7a': 1, 'arm64-v8a': 2, 'x86_64': 3] |
| 109 | + def baseCode = 5000 |
| 110 | + applicationVariants.configureEach { variant -> |
| 111 | + outputs.configureEach { output -> |
| 112 | + versionCodeOverride = |
| 113 | + baseCode + versionCode * 10 + project.ext.versionCodes.get(output.getFilter(OutputFile.ABI), 0) |
| 114 | + } |
75 | 115 | }
|
76 | 116 | }
|
77 | 117 |
|
78 | 118 | flutter {
|
79 | 119 | source '../..'
|
80 | 120 | }
|
81 | 121 |
|
82 |
| -def acraVersion = '5.11.3' |
| 122 | +def acraVersion = '5.11.4' |
83 | 123 |
|
84 | 124 | dependencies {
|
85 |
| - coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.1") |
| 125 | + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.2") |
86 | 126 |
|
87 | 127 | testImplementation 'junit:junit:4.13.2'
|
88 | 128 | testImplementation 'org.mockito:mockito-core:5.2.0'
|
|
0 commit comments