2022-01-14 13:02:10 +01:00
|
|
|
plugins {
|
|
|
|
id 'com.android.application'
|
|
|
|
}
|
|
|
|
|
2023-04-22 17:28:16 +02:00
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-14 13:02:10 +01:00
|
|
|
android {
|
2022-09-29 00:23:00 +02:00
|
|
|
compileSdk 33
|
2022-01-14 13:02:10 +01:00
|
|
|
defaultConfig {
|
2023-04-09 15:46:30 +02:00
|
|
|
manifestPlaceholders = [oAuthScheme:"moshidon-android-auth"]
|
2022-12-07 01:49:46 +01:00
|
|
|
archivesBaseName = "moshidon"
|
2022-12-06 17:03:26 +01:00
|
|
|
applicationId "org.joinmastodon.android.moshinda"
|
2022-01-14 13:02:10 +01:00
|
|
|
minSdk 23
|
2022-09-29 00:23:00 +02:00
|
|
|
targetSdk 33
|
2023-12-08 18:59:46 +01:00
|
|
|
versionCode 103
|
|
|
|
versionName "2.1.4+fork.103.moshinda"
|
2022-04-13 03:39:14 +02:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2023-04-22 16:49:42 +02:00
|
|
|
resourceConfigurations += ['ar-rSA', 'ar-rDZ', 'be-rBY', 'bn-rBD', 'bs-rBA', 'ca-rES', 'cs-rCZ', 'da-rDK', 'de-rDE', 'el-rGR', 'es-rES', 'eu-rES', 'fa-rIR', 'fi-rFI', 'fil-rPH', 'fr-rFR', 'ga-rIE', 'gd-rGB', 'gl-rES', 'hi-rIN', 'hr-rHR', 'hu-rHU', 'hy-rAM', 'ig-rNG', 'in-rID', 'is-rIS', 'it-rIT', 'iw-rIL', 'ja-rJP', 'kab', 'ko-rKR', 'my-rMM', 'nl-rNL', 'no-rNO', 'oc-rFR', 'pl-rPL', 'pt-rBR', 'pt-rPT', 'ro-rRO', 'ru-rRU', 'si-rLK', 'sl-rSI', 'sv-rSE', 'th-rTH', 'tr-rTR', 'uk-rUA', 'ur-rIN', 'vi-rVN', 'zh-rCN', 'zh-rTW']
|
|
|
|
}
|
2022-01-14 13:02:10 +01:00
|
|
|
|
2023-04-02 02:00:30 +02:00
|
|
|
signingConfigs {
|
|
|
|
nightly{
|
2023-04-02 17:26:19 +02:00
|
|
|
storeFile = file("keystore/nightly_keystore.jks")
|
2023-04-02 02:00:30 +02:00
|
|
|
storePassword System.getenv("SIGNING_STORE_PASSWORD")
|
2023-04-08 00:13:06 +02:00
|
|
|
if (storePassword == null) {
|
|
|
|
Properties properties = new Properties()
|
|
|
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
|
|
storePassword = properties.getProperty('SIGNING_STORE_PASSWORD')
|
|
|
|
}
|
2023-04-02 02:00:30 +02:00
|
|
|
keyAlias System.getenv("SIGNING_KEY_ALIAS")
|
2023-04-08 00:13:06 +02:00
|
|
|
if (keyAlias == null) {
|
|
|
|
Properties properties = new Properties()
|
|
|
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
|
|
keyAlias = properties.getProperty('SIGNING_KEY_ALIAS')
|
|
|
|
}
|
2023-04-02 02:00:30 +02:00
|
|
|
keyPassword System.getenv("SIGNING_KEY_PASSWORD")
|
2023-04-08 00:13:06 +02:00
|
|
|
if (keyPassword == null) {
|
|
|
|
Properties properties = new Properties()
|
|
|
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
|
|
keyPassword = properties.getProperty('SIGNING_KEY_PASSWORD')
|
|
|
|
}
|
2023-04-02 02:00:30 +02:00
|
|
|
}
|
2023-12-15 17:04:06 +01:00
|
|
|
|
2023-12-15 22:17:21 +01:00
|
|
|
// release{
|
|
|
|
// storeFile = file("keystore/release_keystore.jks")
|
|
|
|
// storePassword System.getenv("RELEASE_SIGNING_STORE_PASSWORD")
|
|
|
|
// if (storePassword == null) {
|
|
|
|
// Properties properties = new Properties()
|
|
|
|
// properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
|
|
// storePassword = properties.getProperty('RELEASE_SIGNING_STORE_PASSWORD')
|
|
|
|
// }
|
|
|
|
// keyAlias System.getenv("RELEASE_SIGNING_KEY_ALIAS")
|
|
|
|
// if (keyAlias == null) {
|
|
|
|
// Properties properties = new Properties()
|
|
|
|
// properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
|
|
// keyAlias = properties.getProperty('RELEASE_SIGNING_KEY_ALIAS')
|
|
|
|
// }
|
|
|
|
// keyPassword System.getenv("RELEASE_SIGNING_KEY_PASSWORD")
|
|
|
|
// if (keyPassword == null) {
|
|
|
|
// Properties properties = new Properties()
|
|
|
|
// properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
|
|
// keyPassword = properties.getProperty('RELEASE_SIGNING_KEY_PASSWORD')
|
|
|
|
// }
|
|
|
|
// }
|
2023-04-02 02:00:30 +02:00
|
|
|
}
|
|
|
|
|
2022-01-14 13:02:10 +01:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2023-04-15 00:17:13 +02:00
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
2022-03-29 09:38:38 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2022-01-14 13:02:10 +01:00
|
|
|
}
|
2022-02-15 21:09:39 +01:00
|
|
|
debug{
|
|
|
|
debuggable true
|
2022-11-20 16:09:42 +01:00
|
|
|
versionNameSuffix '-debug'
|
2022-11-24 20:36:26 +01:00
|
|
|
applicationIdSuffix '.debug'
|
2023-04-09 15:46:30 +02:00
|
|
|
manifestPlaceholders = [oAuthScheme:"moshidon-android-debug-auth"]
|
2022-02-15 21:09:39 +01:00
|
|
|
}
|
2022-10-31 07:26:17 +01:00
|
|
|
githubRelease{
|
|
|
|
initWith release
|
|
|
|
}
|
2023-03-30 19:20:10 +02:00
|
|
|
nightly{
|
2023-04-09 01:58:23 +02:00
|
|
|
if(System.getenv("CURRENT_DATE") != null){
|
|
|
|
versionNameSuffix '-nightly+@' + System.getenv("CURRENT_DATE")
|
|
|
|
} else {
|
|
|
|
Properties properties = new Properties()
|
|
|
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
2023-04-09 02:09:43 +02:00
|
|
|
versionNameSuffix '-nightly+@' + properties.getProperty('CURRENT_DATE')
|
2023-04-09 01:58:23 +02:00
|
|
|
}
|
2023-03-30 19:20:10 +02:00
|
|
|
applicationIdSuffix '.nightly'
|
2023-06-09 23:09:23 +02:00
|
|
|
|
2023-04-02 02:06:46 +02:00
|
|
|
signingConfig signingConfigs.nightly
|
2023-04-09 15:46:30 +02:00
|
|
|
manifestPlaceholders = [oAuthScheme:"moshidon-android-nightly-auth"]
|
2023-03-30 19:20:10 +02:00
|
|
|
}
|
2022-11-29 19:24:49 +01:00
|
|
|
playRelease{
|
2022-11-28 17:50:26 +01:00
|
|
|
initWith release
|
2022-11-29 18:29:13 +01:00
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
2022-11-29 19:24:49 +01:00
|
|
|
versionNameSuffix '-play'
|
2022-11-28 17:50:26 +01:00
|
|
|
}
|
2023-08-20 16:53:29 +02:00
|
|
|
githubRelease { initWith release }
|
2023-12-15 17:04:06 +01:00
|
|
|
fdroidRelease {
|
|
|
|
initWith release
|
2023-12-15 22:17:21 +01:00
|
|
|
// signingConfig signingConfigs.release
|
2023-12-15 17:04:06 +01:00
|
|
|
}
|
2022-01-14 13:02:10 +01:00
|
|
|
}
|
|
|
|
compileOptions {
|
2022-04-18 11:14:55 +02:00
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2022-01-14 13:02:10 +01:00
|
|
|
coreLibraryDesugaringEnabled true
|
|
|
|
}
|
2022-02-15 21:09:39 +01:00
|
|
|
sourceSets{
|
2022-10-31 07:26:17 +01:00
|
|
|
githubRelease{
|
|
|
|
setRoot "src/github"
|
|
|
|
}
|
2022-11-01 23:27:50 +01:00
|
|
|
debug {
|
2023-04-29 21:38:14 +02:00
|
|
|
setRoot "src/debug"
|
2022-11-01 23:27:50 +01:00
|
|
|
}
|
2022-02-15 21:09:39 +01:00
|
|
|
}
|
2023-04-20 16:03:57 +02:00
|
|
|
namespace 'org.joinmastodon.android'
|
|
|
|
lint {
|
2022-09-02 10:21:28 +02:00
|
|
|
abortOnError false
|
2023-04-20 16:03:57 +02:00
|
|
|
checkReleaseBuilds false
|
2022-09-02 10:21:28 +02:00
|
|
|
}
|
2023-04-22 17:28:16 +02:00
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
buildConfig true
|
2022-09-02 10:21:28 +02:00
|
|
|
}
|
2022-01-14 13:02:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-04-22 17:28:16 +02:00
|
|
|
api 'androidx.annotation:annotation:1.6.0'
|
2022-01-14 13:02:10 +01:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:3.14.9'
|
2022-02-07 13:07:12 +01:00
|
|
|
implementation 'me.grishka.litex:recyclerview:1.2.1.1'
|
2022-03-12 20:02:51 +01:00
|
|
|
implementation 'me.grishka.litex:swiperefreshlayout:1.1.0.1'
|
2022-01-14 13:02:10 +01:00
|
|
|
implementation 'me.grishka.litex:browser:1.4.0'
|
2022-01-22 20:34:05 +01:00
|
|
|
implementation 'me.grishka.litex:dynamicanimation:1.1.0-alpha03'
|
2022-02-07 13:07:12 +01:00
|
|
|
implementation 'me.grishka.litex:viewpager:1.0.0'
|
2022-01-22 20:34:05 +01:00
|
|
|
implementation 'me.grishka.litex:viewpager2:1.0.0'
|
2023-08-20 16:53:29 +02:00
|
|
|
implementation 'me.grishka.litex:palette:1.0.0'
|
2023-09-29 21:21:21 +02:00
|
|
|
implementation 'me.grishka.appkit:appkit:1.2.14'
|
2023-09-28 20:31:31 +02:00
|
|
|
implementation 'com.google.code.gson:gson:2.9.0'
|
2022-01-17 11:27:34 +01:00
|
|
|
implementation 'org.jsoup:jsoup:1.14.3'
|
2022-01-17 19:50:48 +01:00
|
|
|
implementation 'com.squareup:otto:1.3.8'
|
|
|
|
implementation 'de.psdev:async-otto:1.0.3'
|
2022-01-18 20:49:14 +01:00
|
|
|
implementation 'org.parceler:parceler-api:1.1.12'
|
2023-02-07 22:25:46 +01:00
|
|
|
implementation 'com.github.bottom-software-foundation:bottom-java:2.1.0'
|
2022-01-18 20:49:14 +01:00
|
|
|
annotationProcessor 'org.parceler:parceler:1.1.12'
|
2023-06-27 09:40:59 +02:00
|
|
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
|
2023-08-20 16:53:29 +02:00
|
|
|
implementation 'com.github.UnifiedPush:android-connector:2.1.1'
|
2022-02-15 21:09:39 +01:00
|
|
|
|
2023-08-20 16:53:29 +02:00
|
|
|
androidTestImplementation 'androidx.test:core:1.5.0'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
|
|
androidTestImplementation 'androidx.test:runner:1.5.2'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
2022-12-15 17:41:38 +01:00
|
|
|
}
|