mirror of
https://github.com/dzeiocom/OpenHealth.git
synced 2025-04-23 03:12:14 +00:00
146 lines
3.9 KiB
Groovy
146 lines
3.9 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'kotlin-kapt'
|
|
id 'dagger.hilt.android.plugin'
|
|
|
|
// Safe Navigation
|
|
id 'androidx.navigation.safeargs'
|
|
}
|
|
|
|
android {
|
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
def keystorePropertiesFile = rootProject.file("./keystore.properties")
|
|
def keystoreProperties = new Properties()
|
|
try {
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
} catch (FileNotFoundException ignored) {
|
|
keystoreProperties = null
|
|
}
|
|
|
|
if (keystoreProperties != null) {
|
|
storePassword keystoreProperties["storePassword"]
|
|
keyPassword keystoreProperties["keyPassword"]
|
|
keyAlias keystoreProperties["keyAlias"]
|
|
storeFile file(keystoreProperties["storeFile"])
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileSdk 31
|
|
|
|
defaultConfig {
|
|
// App ID
|
|
applicationId "com.dzeio.openhealth"
|
|
|
|
// Android 5 Lollipop
|
|
minSdk 21
|
|
|
|
// Android 12
|
|
targetSdk 31
|
|
|
|
versionCode 1
|
|
|
|
// Semantic Versioning
|
|
versionName "1.0.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.release
|
|
}
|
|
|
|
debug {
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
applicationIdSuffix ".dev"
|
|
versionNameSuffix '-dev'
|
|
debuggable true
|
|
|
|
// make it debuggable
|
|
renderscriptDebuggable true
|
|
|
|
// Optimization Level
|
|
renderscriptOptimLevel 0
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding true
|
|
dataBinding true
|
|
}
|
|
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.core:core-ktx:1.7.0'
|
|
implementation 'androidx.appcompat:appcompat:1.4.0'
|
|
implementation 'javax.inject:javax.inject:1'
|
|
implementation 'com.google.android.material:material:1.6.0-alpha01'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
|
|
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.0'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0'
|
|
|
|
// Settings
|
|
implementation "androidx.preference:preference-ktx:1.1.1"
|
|
|
|
// DataStore
|
|
implementation "androidx.datastore:datastore:1.0.0"
|
|
|
|
// Navigation
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
|
|
|
|
// Services
|
|
implementation 'androidx.work:work-runtime-ktx:2.7.1'
|
|
|
|
// Tests
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
|
|
// Graph
|
|
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
|
|
|
|
// Hilt
|
|
implementation "com.google.dagger:hilt-android:2.40.5"
|
|
kapt "com.google.dagger:hilt-compiler:2.40.5"
|
|
|
|
// Google Fit
|
|
implementation "com.google.android.gms:play-services-fitness:21.0.0"
|
|
implementation "com.google.android.gms:play-services-auth:20.0.0"
|
|
|
|
// Samsung Health
|
|
implementation files('libs/samsung-health-data-1.5.0.aar')
|
|
implementation "com.google.code.gson:gson:2.8.9"
|
|
|
|
// ROOM
|
|
def room_version = "2.4.0"
|
|
|
|
implementation "androidx.room:room-runtime:$room_version"
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
implementation "androidx.room:room-ktx:$room_version"
|
|
testImplementation "androidx.room:room-testing:$room_version"
|
|
|
|
|
|
} |