64 lines
2.1 KiB
Groovy
64 lines
2.1 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
}
|
|
|
|
android {
|
|
namespace 'com.example.sensortestingapp'
|
|
compileSdk 32
|
|
|
|
defaultConfig {
|
|
applicationId "com.example.sensortestingapp"
|
|
minSdk 29
|
|
targetSdk 32
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
def propsFile = rootProject.file('env.properties')
|
|
def props = new Properties()
|
|
props.load(new FileInputStream(propsFile))
|
|
|
|
buildConfigField "String", "API_BASE_URL", "\"${props['apiBaseUrl']}\""
|
|
buildConfigField "String", "API_KEY", "\"${props['apiKey']}\""
|
|
buildConfigField "String", "SERVICE_UUID", "\"6e400001-b5a3-f393-e1a9-e50e24dcac9e\""
|
|
buildConfigField "String", "CHAR_UUID", "\"6e400005-b5a3-f393-e1a9-e50e24dcac9e\""
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
buildConfig true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation 'androidx.core:core-ktx:1.8.0'
|
|
implementation 'androidx.appcompat:appcompat:1.4.1'
|
|
implementation 'com.google.android.material:material:1.5.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.5.2'
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.5.2'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
implementation 'androidx.recyclerview:recyclerview:1.2.0'
|
|
|
|
implementation group: 'commons-codec', name: 'commons-codec', version: '1.16.0'
|
|
|
|
implementation "com.android.volley:volley:1.2.1"
|
|
} |