mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-24 01:44:23 +01:00
61 lines
2.1 KiB
Groovy
61 lines
2.1 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
compileSdkVersion 27
|
|
buildToolsVersion '26.0.2'
|
|
|
|
defaultConfig {
|
|
applicationId "no.nordicsemi.android.nrftoolbox"
|
|
minSdkVersion 18
|
|
targetSdkVersion 27
|
|
versionCode 65
|
|
versionName "2.5.3"
|
|
resConfigs "en"
|
|
}
|
|
buildTypes {
|
|
debug {
|
|
minifyEnabled true
|
|
useProguard false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
release {
|
|
minifyEnabled true
|
|
useProguard true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':common')
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
wearApp project(path: ':wear')
|
|
|
|
// nRF Toolbox is using Play Service 10.2.0 in order to make the app working in China:
|
|
// https://developer.android.com/training/wearables/apps/creating-app-china.html
|
|
//noinspection GradleDependency
|
|
implementation 'com.google.android.gms:play-services-wearable:10.2.0'
|
|
|
|
//noinspection GradleDependency
|
|
implementation 'com.android.support:appcompat-v7:27.0.2'
|
|
//noinspection GradleDependency
|
|
implementation 'com.android.support:design:27.0.2'
|
|
|
|
implementation 'no.nordicsemi.android:log:2.1.1'
|
|
implementation 'no.nordicsemi.android.support.v18:scanner:1.0.0'
|
|
|
|
// The DFU Library is imported automatically from jcenter:
|
|
implementation 'no.nordicsemi.android:dfu:1.6.1'
|
|
// if you desire to build the DFU Library, clone the https://github.com/NordicSemiconductor/Android-DFU-Library project into DFULibrary folder,
|
|
// add it as a module into the project structure and uncomment the following line (and also the according lines in the settings.gradle):
|
|
// implementation project(':dfu')
|
|
|
|
implementation('org.simpleframework:simple-xml:2.7.1') {
|
|
exclude group: 'stax', module: 'stax-api'
|
|
exclude group: 'xpp3', module: 'xpp3'
|
|
}
|
|
} |