2025-03-22 02:16:54 +01:00
|
|
|
plugins {
|
|
|
|
id "com.android.application"
|
|
|
|
id "kotlin-android"
|
|
|
|
id "dev.flutter.flutter-gradle-plugin"
|
|
|
|
}
|
|
|
|
|
2020-01-04 21:31:52 +02:00
|
|
|
def localProperties = new Properties()
|
|
|
|
def localPropertiesFile = rootProject.file('local.properties')
|
|
|
|
if (localPropertiesFile.exists()) {
|
|
|
|
localPropertiesFile.withReader('UTF-8') { reader ->
|
|
|
|
localProperties.load(reader)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
|
|
|
if (flutterVersionCode == null) {
|
|
|
|
flutterVersionCode = '1'
|
|
|
|
}
|
|
|
|
|
|
|
|
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
|
|
|
if (flutterVersionName == null) {
|
|
|
|
flutterVersionName = '1.0'
|
|
|
|
}
|
|
|
|
|
|
|
|
def keystoreProperties = new Properties()
|
|
|
|
def keystorePropertiesFile = rootProject.file('key.properties')
|
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
}
|
|
|
|
|
2022-01-11 19:23:59 +02:00
|
|
|
def appProperties = new Properties()
|
|
|
|
def appPropertiesFile = rootProject.file('app.properties')
|
|
|
|
if (appPropertiesFile.exists()) {
|
2022-01-11 21:47:45 +02:00
|
|
|
appProperties.load(new FileInputStream(appPropertiesFile))
|
2022-01-11 19:23:59 +02:00
|
|
|
}
|
|
|
|
|
2020-01-04 21:31:52 +02:00
|
|
|
android {
|
2025-03-21 18:22:00 +01:00
|
|
|
compileSdkVersion 35
|
2025-03-22 02:16:54 +01:00
|
|
|
buildToolsVersion "35.0.0"
|
2020-01-04 21:31:52 +02:00
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
disable 'InvalidPackage'
|
|
|
|
}
|
|
|
|
|
2024-12-03 21:29:40 +03:00
|
|
|
namespace "com.cakewallet.cake_wallet"
|
2024-11-25 15:08:30 +01:00
|
|
|
|
2020-01-04 21:31:52 +02:00
|
|
|
defaultConfig {
|
2022-01-11 19:23:59 +02:00
|
|
|
applicationId appProperties['id']
|
2023-08-01 14:52:03 +02:00
|
|
|
minSdkVersion 24
|
2024-07-21 03:46:43 +03:00
|
|
|
targetSdkVersion 34
|
2020-01-04 21:31:52 +02:00
|
|
|
versionCode flutterVersionCode.toInteger()
|
|
|
|
versionName flutterVersionName
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2022-01-11 19:23:59 +02:00
|
|
|
manifestPlaceholders = [APP_NAME: appProperties['name']]
|
2020-01-04 21:31:52 +02:00
|
|
|
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
cppFlags "-std=c++11"
|
|
|
|
arguments '-DANDROID_STL=c++_shared', '-DBUILD_TESTING=OFF'
|
|
|
|
version "3.10.2"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
|
2021-04-21 20:05:38 +03:00
|
|
|
shrinkResources false
|
|
|
|
minifyEnabled false
|
2020-01-04 21:31:52 +02:00
|
|
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
2025-03-21 18:22:00 +01:00
|
|
|
debug {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
2020-01-04 21:31:52 +02:00
|
|
|
}
|
2022-10-14 21:37:00 +02:00
|
|
|
|
2024-11-25 15:08:30 +01:00
|
|
|
ndkVersion "27.0.12077973"
|
2020-01-04 21:31:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
flutter {
|
|
|
|
source '../..'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation 'junit:junit:4.12'
|
2021-04-20 20:49:53 +03:00
|
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
2020-01-04 21:31:52 +02:00
|
|
|
}
|
2024-11-09 19:59:47 +01:00
|
|
|
configurations {
|
|
|
|
implementation.exclude module:'proto-google-common-protos'
|
|
|
|
implementation.exclude module:'protolite-well-known-types'
|
|
|
|
implementation.exclude module:'protobuf-javalite'
|
2024-12-14 00:32:36 +01:00
|
|
|
}
|