zcash-android-wallet-sdk/build.gradle

90 lines
2.6 KiB
Groovy
Raw Normal View History

buildscript {
2018-11-20 23:04:53 -08:00
ext.buildConfig = [
'compileSdkVersion': 28,
'minSdkVersion': 16,
'targetSdkVersion': 28
]
ext.versions = [
2018-11-28 15:15:36 -08:00
'kotlin': '1.3.10',
2018-11-27 22:43:36 -08:00
'architectureComponents': '2.0.0'
2018-11-20 23:04:53 -08:00
]
repositories {
google()
jcenter()
}
dependencies {
2018-11-28 15:15:36 -08:00
classpath 'com.android.tools.build:gradle:3.4.0-alpha05'
2018-11-20 23:04:53 -08:00
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "com.github.ben-manes:gradle-versions-plugin:0.20.0"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}
2018-11-20 23:04:53 -08:00
apply from: 'custom-tasks.gradle'
apply plugin: 'com.android.library'
apply plugin: "kotlin-android-extensions"
apply plugin: "kotlin-android"
2018-11-27 22:43:36 -08:00
apply plugin: 'kotlin-kapt'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'com.github.dcendents.android-maven'
group = 'cash.z.android.wallet'
2018-11-28 15:15:36 -08:00
version = '1.2.0'
2018-11-20 23:04:53 -08:00
repositories {
google()
2018-11-20 23:04:53 -08:00
jcenter()
}
android {
2018-11-20 23:04:53 -08:00
compileSdkVersion 28
defaultConfig {
2018-11-20 23:04:53 -08:00
minSdkVersion 16
targetSdkVersion 28
2018-11-28 15:15:36 -08:00
versionCode = 1_02_00
versionName = "1.2.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
2018-11-20 23:04:53 -08:00
release {
minifyEnabled false
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
}
}
sourceSets {
main {
java {
srcDirs "build/generated/source/wire"
2018-11-20 23:04:53 -08:00
}
}
}
}
dependencies {
2018-11-27 22:43:36 -08:00
// Square
2018-11-20 23:04:53 -08:00
api "com.squareup.wire:wire-runtime:2.2.0"
2018-11-27 22:43:36 -08:00
// Architecture components
implementation "androidx.lifecycle:lifecycle-runtime:${versions.architectureComponents}"
implementation "androidx.lifecycle:lifecycle-extensions:${versions.architectureComponents}"
implementation "androidx.room:room-runtime:${versions.architectureComponents}"
kapt "androidx.lifecycle:lifecycle-compiler:${versions.architectureComponents}"
kapt "androidx.room:room-compiler:${versions.architectureComponents}"
2018-11-28 15:15:36 -08:00
// Other
2018-11-20 23:04:53 -08:00
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
implementation "com.android.support:appcompat-v7:28.0.0"
2018-11-28 15:15:36 -08:00
// Tests
2018-11-20 23:04:53 -08:00
testImplementation "junit:junit:4.12"
2018-11-27 22:43:36 -08:00
androidTestImplementation "androidx.test:runner:1.1.0"
androidTestImplementation "androidx.test.espresso:espresso-core:3.1.0"
androidTestImplementation "androidx.test:core:1.0.0"
2018-11-27 22:43:36 -08:00
androidTestImplementation "androidx.arch.core:core-testing:${versions.architectureComponents}"
}
2018-11-20 23:04:53 -08:00
preBuild.dependsOn generateProtobufClasses
preBuild.dependsOn copyAllJniLibs