86 lines
2.8 KiB
Groovy
86 lines
2.8 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
def playStore = false
|
|
def materialVersion = '1.6.1'
|
|
|
|
android {
|
|
namespace 'org.exbin.bined.editor.android'
|
|
compileSdk {
|
|
version = release(35)
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId "org.exbin.bined.editor.android"
|
|
|
|
if (playStore) {
|
|
minSdk 24
|
|
materialVersion = '1.13.0'
|
|
} else {
|
|
minSdk 14
|
|
multiDexEnabled true
|
|
}
|
|
|
|
targetSdk 35
|
|
versionCode 18
|
|
versionName "0.2.9-SNAPSHOT"
|
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
|
vectorDrawables.generatedDensities = []
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
// shrinkResources false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs += 'libsrc'
|
|
}
|
|
|
|
compileOptions {
|
|
// Flag to enable support for the new language APIs
|
|
// coreLibraryDesugaringEnabled true
|
|
|
|
// sourceCompatibility JavaVersion.VERSION_1_8
|
|
// targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
lint {
|
|
checkReleaseBuilds false
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
// implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
implementation 'com.google.android.flexbox:flexbox:3.0.0'
|
|
compileOnly group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
|
|
implementation "com.google.android.material:material:${materialVersion}"
|
|
// coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
|
|
implementation 'androidx.preference:preference:1.2.1'
|
|
implementation 'net.java.dev.jna:jna:5.18.1@aar'
|
|
implementation project(':file_picker')
|
|
// implementation 'org.exbin.bined:bined-core:0.3.0-SNAPSHOT'
|
|
// implementation 'org.exbin.bined:bined-operation:0.3.0-SNAPSHOT'
|
|
// implementation 'org.exbin.auxiliary:binary_data:0.2.1'
|
|
// implementation 'org.exbin.auxiliary:binary_data-array:0.2.1'
|
|
// implementation 'org.exbin.auxiliary:binary_data-delta:0.2.1'
|
|
|
|
testCompileOnly group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
testImplementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
testImplementation 'androidx.test:core:1.7.0'
|
|
testImplementation 'androidx.test.ext:junit:1.3.0'
|
|
testImplementation "androidx.test.espresso:espresso-core:3.7.0";
|
|
androidTestImplementation 'androidx.test.ext:junit:1.3.0'
|
|
androidTestImplementation "androidx.test:runner:1.7.0";
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'
|
|
}
|