2019-10-21 03:17:07 -07:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
2021-08-30 04:36:24 -07:00
|
|
|
apply plugin: 'kotlin-parcelize'
|
2019-10-21 03:17:07 -07:00
|
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
apply plugin: 'androidx.navigation.safeargs'
|
|
|
|
|
|
|
|
android {
|
2021-08-31 09:33:25 -07:00
|
|
|
ndkVersion project.property("ndkVersion")
|
|
|
|
compileSdkVersion Integer.parseInt(project.property("compileSdkVersion"))
|
2019-10-21 03:17:07 -07:00
|
|
|
defaultConfig {
|
2020-06-10 00:08:19 -07:00
|
|
|
applicationId "cash.z.ecc.android.sdk.demoapp"
|
2021-08-31 09:33:25 -07:00
|
|
|
minSdkVersion 21 // Different from the SDK min
|
|
|
|
targetSdkVersion Integer.parseInt(project.property("targetSdkVersion"))
|
2019-10-21 03:17:07 -07:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2020-02-25 23:43:27 -08:00
|
|
|
}
|
2021-08-30 04:36:24 -07:00
|
|
|
buildFeatures {
|
|
|
|
viewBinding true
|
|
|
|
}
|
2020-02-25 23:43:27 -08:00
|
|
|
flavorDimensions 'network'
|
|
|
|
productFlavors {
|
|
|
|
// would rather name them "testnet" and "mainnet" but product flavor names cannot start with the word "test"
|
|
|
|
zcashtestnet {
|
|
|
|
dimension 'network'
|
2020-06-10 00:08:19 -07:00
|
|
|
applicationId 'cash.z.ecc.android.sdk.demoapp.testnet'
|
2020-02-25 23:43:27 -08:00
|
|
|
matchingFallbacks = ['zcashtestnet', 'debug']
|
|
|
|
}
|
|
|
|
|
|
|
|
zcashmainnet {
|
|
|
|
dimension 'network'
|
2020-06-10 00:08:19 -07:00
|
|
|
applicationId 'cash.z.ecc.android.sdk.demoapp.mainnet'
|
2020-02-25 23:43:27 -08:00
|
|
|
matchingFallbacks = ['zcashmainnet', 'release']
|
|
|
|
}
|
2019-10-21 03:17:07 -07:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2019-11-01 13:25:28 -07:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility 1.8
|
|
|
|
targetCompatibility 1.8
|
|
|
|
}
|
2019-11-22 23:18:20 -08:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
2021-08-31 08:44:59 -07:00
|
|
|
lintOptions {
|
|
|
|
baseline file("lint-baseline.xml")
|
|
|
|
}
|
2019-10-21 03:17:07 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// SDK
|
2020-11-23 21:58:14 -08:00
|
|
|
zcashmainnetImplementation 'cash.z.ecc.android:zcash-android-sdk-mainnet:1.2.1-beta02'
|
|
|
|
zcashtestnetImplementation 'cash.z.ecc.android:zcash-android-sdk-testnet:1.2.1-beta02'
|
2020-02-25 23:43:27 -08:00
|
|
|
|
|
|
|
// sample mnemonic plugin
|
2020-06-10 00:08:19 -07:00
|
|
|
implementation 'com.github.zcash:zcash-android-wallet-plugins:1.0.1'
|
2020-10-16 11:03:54 -07:00
|
|
|
implementation 'cash.z.ecc.android:kotlin-bip39:1.0.1'
|
2019-10-21 03:17:07 -07:00
|
|
|
|
|
|
|
// Android
|
2020-10-16 11:03:54 -07:00
|
|
|
implementation 'androidx.core:core-ktx:1.3.2'
|
2020-11-23 21:58:14 -08:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
2020-10-16 11:03:54 -07:00
|
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.1'
|
|
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.3.1'
|
|
|
|
implementation "com.google.android.material:material:1.3.0-alpha03"
|
2020-06-10 00:08:19 -07:00
|
|
|
testImplementation 'junit:junit:4.13'
|
2020-09-11 00:16:46 -07:00
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
2019-10-21 03:17:07 -07:00
|
|
|
}
|