710549b30a
Change-Id: I9d6b6090e261685ec0a7c0d62bccb3bef596aae7 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86126 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
77 lines
2.8 KiB
Groovy
77 lines
2.8 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
// buildhost settings - paths and the like
|
|
apply from: 'appSettings.gradle'
|
|
|
|
android {
|
|
compileSdkVersion 28
|
|
|
|
defaultConfig {
|
|
// applicationId, versionCode and versionName are defined in appSettings.gradle
|
|
minSdkVersion 21
|
|
targetSdkVersion 28
|
|
}
|
|
|
|
lintOptions {
|
|
disable 'MissingTranslation'
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
resValue "string", "app_name", "${liboAppName} Debug"
|
|
resValue "string", "vendor", "${liboVendor}"
|
|
resValue "string", "info_url", "${liboInfoURL}"
|
|
manifestPlaceholders = [ appIcon: "${liboLauncherIcon}" ]
|
|
buildConfigField "boolean", "APP_HAS_BRANDING", "${liboHasBranding}"
|
|
ndk {
|
|
abiFilters = []
|
|
abiFilters.addAll("${liboAndroidAbi}".split(' ').collect{it as String})
|
|
}
|
|
applicationIdSuffix '.debug'
|
|
versionNameSuffix '-debug'
|
|
debuggable true
|
|
}
|
|
release {
|
|
resValue "string", "app_name", "${liboAppName}"
|
|
resValue "string", "vendor", "${liboVendor}"
|
|
resValue "string", "info_url", "${liboInfoURL}"
|
|
manifestPlaceholders = [ appIcon: "${liboLauncherIcon}" ]
|
|
buildConfigField "boolean", "APP_HAS_BRANDING", "${liboHasBranding}"
|
|
ndk {
|
|
abiFilters = []
|
|
abiFilters.addAll("${liboAndroidAbi}".split(' ').collect{it as String})
|
|
}
|
|
minifyEnabled false // FIXME disabled before we get a good proguardRules for callFakeWebsocketOnMessage calling from C++
|
|
shrinkResources false // FIXME cannot be enabled when minifyEnabled is turned off
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'),
|
|
'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url "https://jitpack.io"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'androidx.appcompat:appcompat:1.0.2'
|
|
implementation 'androidx.core:core:1.0.2'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation 'androidx.recyclerview:recyclerview:1.0.0'
|
|
implementation 'com.google.android.material:material:1.1.0-alpha04'
|
|
|
|
implementation 'com.github.nextcloud:android-library:-SNAPSHOT'
|
|
implementation "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
|
|
|
|
//before changing the version please see https://issuetracker.google.com/issues/111662669
|
|
implementation 'androidx.preference:preference:1.1.0-alpha01'
|
|
implementation project(path: ':lib')
|
|
}
|