2020-06-24 15:26:54 -07:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
2020-07-12 20:51:54 -07:00
|
|
|
apply from: '../../android/dependencies.gradle'
|
|
|
|
|
2020-06-24 15:26:54 -07:00
|
|
|
android {
|
2023-06-18 07:40:40 -07:00
|
|
|
namespace "com.rusefi.app"
|
2020-07-12 15:53:53 -07:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
|
|
}
|
2020-07-03 10:03:11 -07:00
|
|
|
compileOptions {
|
2023-07-02 13:12:57 -07:00
|
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
|
|
targetCompatibility JavaVersion.VERSION_11
|
2020-07-03 10:03:11 -07:00
|
|
|
}
|
|
|
|
|
2023-07-02 08:42:16 -07:00
|
|
|
compileSdkVersion 31
|
2023-06-17 21:23:42 -07:00
|
|
|
buildToolsVersion "30.0.3"
|
2020-08-15 20:58:29 -07:00
|
|
|
project.archivesBaseName = "rusEFI";
|
2020-06-24 15:26:54 -07:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.rusefi.app"
|
2020-09-04 12:47:25 -07:00
|
|
|
// API level 19 = Android 4.4 () Samsung S4 is nicely rootable with KingRoot
|
|
|
|
// API level 21 = Android_5.0_Lollipop
|
|
|
|
minSdkVersion 19
|
2023-07-02 08:42:16 -07:00
|
|
|
targetSdkVersion 31
|
2020-06-24 15:26:54 -07:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
2020-08-16 12:42:47 -07:00
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
storeFile file("../certs/rusEFI.jks")
|
|
|
|
storePassword System.getenv("RUSEFI_ANDROID_KEYPASS")
|
|
|
|
keyAlias "key0"
|
|
|
|
keyPassword System.getenv("RUSEFI_ANDROID_KEYPASS")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-24 15:26:54 -07:00
|
|
|
buildTypes {
|
2022-10-15 15:13:04 -07:00
|
|
|
debug {
|
|
|
|
minifyEnabled false
|
|
|
|
}
|
2020-06-24 15:26:54 -07:00
|
|
|
release {
|
|
|
|
minifyEnabled false
|
2020-08-16 12:42:47 -07:00
|
|
|
signingConfig signingConfigs.release
|
2020-06-24 15:26:54 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-07-03 10:03:11 -07:00
|
|
|
implementation project(':ecu_io')
|
2020-07-05 11:29:59 -07:00
|
|
|
implementation project(':logging-api')
|
2020-08-15 17:46:52 -07:00
|
|
|
implementation project(':models')
|
2022-10-15 16:37:33 -07:00
|
|
|
implementation global_libs.annotations
|
2020-07-01 21:19:55 -07:00
|
|
|
|
2020-08-16 14:11:47 -07:00
|
|
|
def acraVersion = '5.7.0'
|
2020-08-16 13:17:45 -07:00
|
|
|
implementation "ch.acra:acra-http:$acraVersion"
|
|
|
|
implementation "ch.acra:acra-mail:$acraVersion"
|
|
|
|
implementation "ch.acra:acra-dialog:$acraVersion"
|
|
|
|
implementation "ch.acra:acra-toast:$acraVersion"
|
|
|
|
|
2020-06-28 22:41:39 -07:00
|
|
|
implementation files('lib/dfu_java.jar')
|
2021-10-13 18:49:53 -07:00
|
|
|
// implementation 'com.github.mik3y:usb-serial-for-android:v2.2.3'
|
|
|
|
implementation 'com.github.mik3y:usb-serial-for-android:v3.1.0'
|
2020-06-24 15:26:54 -07:00
|
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
|
|
implementation 'com.google.android.material:material:1.1.0'
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
|
|
implementation 'androidx.navigation:navigation-fragment:2.1.0'
|
|
|
|
implementation 'androidx.navigation:navigation-ui:2.1.0'
|
2020-08-15 18:49:39 -07:00
|
|
|
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'
|
2020-07-12 20:51:54 -07:00
|
|
|
|
2023-07-02 22:06:20 -07:00
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
2023-07-02 19:56:16 -07:00
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
2020-08-16 12:42:47 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
gradle.taskGraph.afterTask { task ->
|
|
|
|
project.logger.lifecycle("Password " + System.getenv('RUSEFI_ANDROID_KEYPASS'));
|
|
|
|
}
|
|
|
|
*/
|