2020-01-04 19:31:52 +00:00
|
|
|
def localProperties = new Properties()
|
|
|
|
def localPropertiesFile = rootProject.file('local.properties')
|
|
|
|
if (localPropertiesFile.exists()) {
|
|
|
|
localPropertiesFile.withReader('UTF-8') { reader ->
|
|
|
|
localProperties.load(reader)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
|
|
|
if (flutterRoot == null) {
|
|
|
|
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
|
|
|
}
|
|
|
|
|
|
|
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
|
|
|
if (flutterVersionCode == null) {
|
|
|
|
flutterVersionCode = '1'
|
|
|
|
}
|
|
|
|
|
|
|
|
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
|
|
|
if (flutterVersionName == null) {
|
|
|
|
flutterVersionName = '1.0'
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
|
|
|
|
|
|
def keystoreProperties = new Properties()
|
|
|
|
def keystorePropertiesFile = rootProject.file('key.properties')
|
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
}
|
|
|
|
|
2022-01-11 17:23:59 +00:00
|
|
|
def appProperties = new Properties()
|
|
|
|
def appPropertiesFile = rootProject.file('app.properties')
|
|
|
|
if (appPropertiesFile.exists()) {
|
2022-01-11 19:47:45 +00:00
|
|
|
appProperties.load(new FileInputStream(appPropertiesFile))
|
2022-01-11 17:23:59 +00:00
|
|
|
}
|
|
|
|
|
2020-01-04 19:31:52 +00:00
|
|
|
android {
|
2024-01-08 14:03:46 +00:00
|
|
|
compileSdkVersion 34
|
2024-11-25 14:08:30 +00:00
|
|
|
buildToolsVersion "34.0.0"
|
2020-01-04 19:31:52 +00:00
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
disable 'InvalidPackage'
|
|
|
|
}
|
|
|
|
|
2024-12-03 18:29:40 +00:00
|
|
|
namespace "com.cakewallet.cake_wallet"
|
2024-11-25 14:08:30 +00:00
|
|
|
|
2020-01-04 19:31:52 +00:00
|
|
|
defaultConfig {
|
2022-01-11 17:23:59 +00:00
|
|
|
applicationId appProperties['id']
|
2023-08-01 12:52:03 +00:00
|
|
|
minSdkVersion 24
|
2024-07-21 00:46:43 +00:00
|
|
|
targetSdkVersion 34
|
2020-01-04 19:31:52 +00:00
|
|
|
versionCode flutterVersionCode.toInteger()
|
|
|
|
versionName flutterVersionName
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2022-01-11 17:23:59 +00:00
|
|
|
manifestPlaceholders = [APP_NAME: appProperties['name']]
|
2020-01-04 19:31:52 +00: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 17:05:38 +00:00
|
|
|
shrinkResources false
|
|
|
|
minifyEnabled false
|
2020-01-04 19:31:52 +00:00
|
|
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2022-10-14 19:37:00 +00:00
|
|
|
|
2024-11-25 14:08:30 +00:00
|
|
|
ndkVersion "27.0.12077973"
|
2020-01-04 19:31:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
flutter {
|
|
|
|
source '../..'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation 'junit:junit:4.12'
|
2021-04-20 17:49:53 +00:00
|
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
2020-01-04 19:31:52 +00:00
|
|
|
}
|
2024-11-09 18:59:47 +00:00
|
|
|
configurations {
|
|
|
|
implementation.exclude module:'proto-google-common-protos'
|
|
|
|
implementation.exclude module:'protolite-well-known-types'
|
|
|
|
implementation.exclude module:'protobuf-javalite'
|
2024-12-13 23:32:36 +00:00
|
|
|
}
|