kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
64 wiersze
2.0 KiB
Groovy
64 wiersze
2.0 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'com.google.gms.google-services'
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
buildToolsVersion "29.0.2"
|
|
defaultConfig {
|
|
applicationId "com.geeksville.meshutil"
|
|
minSdkVersion 21
|
|
targetSdkVersion 29
|
|
versionCode 1
|
|
versionName "1.0"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
// Enables Jetpack Compose for this module
|
|
compose true
|
|
}
|
|
|
|
// Set both the Java and Kotlin compilers to target Java 8.
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.core:core-ktx:1.1.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation 'com.google.android.material:material:1.0.0'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
|
|
|
// You also need to include the following Compose toolkit dependencies.
|
|
implementation 'androidx.ui:ui-tooling:0.1.0-dev02'
|
|
implementation 'androidx.ui:ui-layout:0.1.0-dev02'
|
|
implementation 'androidx.ui:ui-material:0.1.0-dev02'
|
|
|
|
// add the Firebase SDK for Google Analytics
|
|
|
|
// add SDKs for any other desired Firebase products
|
|
// https://firebase.google.com/docs/android/setup#available-libraries
|
|
|
|
implementation project(':geeksville-androidlib')
|
|
}
|