mastodon-app-ufficiale-android/mastodon/build.gradle

115 lines
3.2 KiB
Groovy
Raw Normal View History

2022-01-14 13:02:10 +01:00
plugins {
id 'com.android.application'
2022-02-15 21:09:39 +01:00
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
2022-01-14 13:02:10 +01:00
}
android {
androidResources {
generateLocaleConfig = true
}
2024-06-22 01:48:37 +02:00
compileSdk 34
2022-01-14 13:02:10 +01:00
defaultConfig {
applicationId "org.joinmastodon.android"
minSdk 23
2024-06-22 01:48:37 +02:00
targetSdk 34
2024-10-03 23:26:23 +02:00
versionCode 120
versionName "2.7.1"
2022-04-13 03:39:14 +02:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2022-01-14 13:02:10 +01:00
}
buildTypes {
release {
2022-03-29 09:38:38 +02:00
minifyEnabled true
shrinkResources true
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
}
appcenterPrivateBeta{
2022-02-19 01:04:04 +01:00
initWith release
minifyEnabled false
2022-03-29 09:38:38 +02:00
shrinkResources false
2022-02-15 21:09:39 +01:00
versionNameSuffix "-priv-beta"
}
appcenterPublicBeta{
initWith release
versionNameSuffix "-beta"
}
2022-10-31 07:26:17 +01:00
githubRelease{
initWith release
}
2023-06-04 01:04:55 +02:00
githubDebug{
initWith debug
}
2022-01-14 13:02:10 +01:00
}
compileOptions {
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{
appcenterPrivateBeta{
setRoot "src/appcenter"
}
appcenterPublicBeta{
setRoot "src/appcenter"
}
2022-10-31 07:26:17 +01:00
githubRelease{
setRoot "src/github"
}
2023-06-04 01:04:55 +02:00
githubDebug{
setRoot "src/github"
}
2022-02-15 21:09:39 +01:00
}
2022-09-02 10:21:28 +02:00
lintOptions{
checkReleaseBuilds false
abortOnError false
}
2024-02-22 19:35:46 +01:00
buildFeatures{
aidl true
buildConfig true
2024-02-22 19:35:46 +01:00
}
dependenciesInfo{
// Disables dependency metadata when building APKs.
includeInApk false
// Disables dependency metadata when building Android App Bundles.
includeInBundle false
}
namespace 'org.joinmastodon.android'
2022-01-14 13:02:10 +01:00
}
dependencies {
api 'androidx.annotation:annotation:1.3.0'
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-03-14 17:17:37 +01:00
implementation 'me.grishka.litex:palette:1.0.0'
2024-10-03 23:26:23 +02:00
implementation 'me.grishka.appkit:appkit:1.4.1'
2022-01-14 13:02:10 +01:00
implementation 'com.google.code.gson:gson:2.8.9'
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'
2024-02-22 19:35:46 +01:00
implementation 'com.google.zxing:core:3.5.3'
implementation 'org.microg:safe-parcel:1.5.0'
2022-01-18 20:49:14 +01:00
implementation 'org.parceler:parceler-api:1.1.12'
annotationProcessor 'org.parceler:parceler:1.1.12'
2023-06-04 01:04:55 +02:00
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
2022-02-15 21:09:39 +01:00
2024-06-25 16:18:40 +02:00
def appCenterSdkVersion = "5.0.4"
2022-02-15 21:09:39 +01:00
appcenterPrivateBetaImplementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"
appcenterPrivateBetaImplementation "com.microsoft.appcenter:appcenter-distribute:${appCenterSdkVersion}"
appcenterPublicBetaImplementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"
appcenterPublicBetaImplementation "com.microsoft.appcenter:appcenter-distribute:${appCenterSdkVersion}"
2022-04-13 03:39:14 +02:00
2023-06-29 21:17:59 +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
}