2022-09-21 07:43:00 +02:00
|
|
|
plugins {
|
|
|
|
id "com.diffplug.spotless" version "6.11.0"
|
|
|
|
}
|
2019-06-03 23:25:05 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.mian.gitnex"
|
2022-05-01 12:00:02 +02:00
|
|
|
minSdkVersion 23
|
2023-07-18 20:32:32 +02:00
|
|
|
targetSdkVersion 34
|
2024-02-22 16:00:06 +01:00
|
|
|
versionCode 530
|
|
|
|
versionName "5.3.0"
|
2020-09-26 17:05:51 +02:00
|
|
|
multiDexEnabled true
|
2019-06-03 23:25:05 +02:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2024-02-11 14:20:23 +01:00
|
|
|
compileSdk 34
|
2019-06-03 23:25:05 +02:00
|
|
|
}
|
2024-02-11 14:20:23 +01:00
|
|
|
flavorDimensions = ["default"]
|
2020-09-26 17:05:51 +02:00
|
|
|
productFlavors {
|
|
|
|
free {
|
|
|
|
applicationId "org.mian.gitnex"
|
|
|
|
}
|
|
|
|
pro {
|
|
|
|
applicationId "org.mian.gitnex.pro"
|
|
|
|
}
|
|
|
|
}
|
2020-07-09 08:55:05 +02:00
|
|
|
buildFeatures {
|
2021-08-03 09:41:40 +02:00
|
|
|
viewBinding true
|
2020-05-22 00:49:09 +02:00
|
|
|
}
|
2019-06-03 23:25:05 +02:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2020-04-17 12:10:32 +02:00
|
|
|
minifyEnabled false
|
|
|
|
shrinkResources false
|
2021-03-21 16:56:54 +01:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
2019-06-03 23:25:05 +02:00
|
|
|
}
|
|
|
|
}
|
2020-03-16 10:25:15 +01:00
|
|
|
compileOptions {
|
2020-11-08 19:58:47 +01:00
|
|
|
coreLibraryDesugaringEnabled true
|
|
|
|
|
2022-03-28 16:37:36 +02:00
|
|
|
sourceCompatibility JavaVersion.VERSION_11
|
2023-07-18 20:32:32 +02:00
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2020-03-16 10:25:15 +01:00
|
|
|
}
|
2022-04-18 09:10:54 +02:00
|
|
|
lint {
|
|
|
|
abortOnError false
|
|
|
|
}
|
2023-01-19 12:55:19 +01:00
|
|
|
namespace 'org.mian.gitnex'
|
2022-08-15 16:26:02 +02:00
|
|
|
defaultConfig {
|
2020-08-20 18:21:55 +02:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
}
|
2020-03-16 10:25:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
cleanedAnnotations
|
2020-04-14 22:55:04 +02:00
|
|
|
compile.exclude group: 'org.jetbrains', module: 'annotations'
|
2019-06-03 23:25:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
2023-03-10 19:50:15 +01:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
2024-02-11 14:20:23 +01:00
|
|
|
implementation 'com.google.android.material:material:1.11.0'
|
|
|
|
implementation 'androidx.compose.material3:material3:1.2.0-beta02'
|
|
|
|
implementation 'androidx.compose.material3:material3-window-size-class:1.2.0-beta02'
|
2023-07-18 20:32:32 +02:00
|
|
|
implementation 'androidx.viewpager2:viewpager2:1.1.0-beta02'
|
2022-06-26 09:16:35 +02:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
2019-10-30 15:04:49 +01:00
|
|
|
implementation "androidx.legacy:legacy-support-v4:1.0.0"
|
2024-02-11 14:20:23 +01:00
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel:2.7.0"
|
2021-03-21 16:56:54 +01:00
|
|
|
testImplementation 'junit:junit:4.13.2'
|
2023-02-03 08:30:15 +01:00
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
2021-03-21 16:56:54 +01:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2'
|
2023-02-03 08:30:15 +01:00
|
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
2019-10-30 15:04:49 +01:00
|
|
|
implementation "com.squareup.picasso:picasso:2.71828"
|
2022-04-04 09:32:03 +02:00
|
|
|
implementation 'com.github.ramseth001:TextDrawable:1.1.3'
|
2020-06-30 20:59:11 +02:00
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
|
|
implementation 'com.squareup.retrofit2:converter-scalars:2.9.0'
|
2021-03-21 16:56:54 +01:00
|
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.2'
|
2023-07-18 20:32:32 +02:00
|
|
|
implementation 'org.ocpsoft.prettytime:prettytime:5.0.7.Final'
|
2024-02-11 14:20:23 +01:00
|
|
|
implementation "com.github.skydoves:colorpickerview:2.3.0"
|
2023-09-26 09:33:27 +02:00
|
|
|
implementation "io.noties.markwon:core:4.6.2"
|
|
|
|
implementation "io.noties.markwon:ext-latex:4.6.2"
|
|
|
|
implementation "io.noties.markwon:ext-strikethrough:4.6.2"
|
|
|
|
implementation "io.noties.markwon:ext-tables:4.6.2"
|
|
|
|
implementation "io.noties.markwon:ext-tasklist:4.6.2"
|
|
|
|
implementation "io.noties.markwon:html:4.6.2"
|
|
|
|
implementation "io.noties.markwon:image:4.6.2"
|
|
|
|
implementation "io.noties.markwon:image-picasso:4.6.2"
|
|
|
|
implementation "io.noties.markwon:linkify:4.6.2"
|
|
|
|
implementation "io.noties.markwon:recycler:4.6.2"
|
|
|
|
implementation "io.noties.markwon:recycler-table:4.6.2"
|
|
|
|
implementation "io.noties.markwon:simple-ext:4.6.2"
|
|
|
|
implementation 'com.google.guava:guava:32.1.2-jre'
|
|
|
|
implementation "io.noties.markwon:image-picasso:4.6.2"
|
2019-10-17 19:47:27 +02:00
|
|
|
implementation "com.github.HamidrezaAmz:BreadcrumbsView:0.2.9"
|
2022-03-27 20:41:20 +02:00
|
|
|
//noinspection GradleDependency
|
2023-02-04 20:41:03 +01:00
|
|
|
implementation 'commons-io:commons-io:2.5'
|
2023-09-26 09:33:27 +02:00
|
|
|
implementation 'org.apache.commons:commons-lang3:3.13.0'
|
2019-10-30 15:04:49 +01:00
|
|
|
implementation "com.github.chrisbanes:PhotoView:2.3.0"
|
2023-09-26 09:33:27 +02:00
|
|
|
implementation 'ch.acra:acra-mail:5.11.2'
|
|
|
|
implementation 'ch.acra:acra-limiter:5.11.2'
|
|
|
|
implementation 'ch.acra:acra-notification:5.11.2'
|
2024-02-11 14:20:23 +01:00
|
|
|
implementation 'androidx.room:room-runtime:2.6.1'
|
|
|
|
annotationProcessor 'androidx.room:room-compiler:2.6.1'
|
|
|
|
implementation "androidx.work:work-runtime:2.9.0"
|
2020-06-30 16:43:27 +02:00
|
|
|
implementation "io.mikael:urlbuilder:2.0.9"
|
2020-11-08 23:57:33 +01:00
|
|
|
implementation "org.codeberg.gitnex-garage:emoji-java:v5.1.2"
|
2023-09-26 09:33:27 +02:00
|
|
|
//noinspection GradleDependency
|
2022-08-07 22:03:17 +02:00
|
|
|
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5"
|
2021-03-09 22:15:42 +01:00
|
|
|
implementation 'androidx.biometric:biometric:1.1.0'
|
2021-08-02 20:04:33 +02:00
|
|
|
implementation 'com.github.chrisvest:stormpot:2.4.2'
|
2024-02-11 14:20:23 +01:00
|
|
|
implementation 'androidx.browser:browser:1.7.0'
|
2022-03-18 09:56:49 +01:00
|
|
|
implementation 'com.google.android.flexbox:flexbox:3.0.0'
|
2024-02-11 14:20:23 +01:00
|
|
|
implementation('org.codeberg.gitnex:tea4j-autodeploy:4646f53557') {
|
2022-04-18 09:10:54 +02:00
|
|
|
exclude module: 'org.apache.oltu.oauth2.common'
|
|
|
|
}
|
2023-07-18 20:32:32 +02:00
|
|
|
implementation 'io.github.amrdeveloper:codeview:1.3.8'
|
2023-02-03 08:30:15 +01:00
|
|
|
|
|
|
|
constraints {
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0")
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0")
|
|
|
|
}
|
2019-06-03 23:25:05 +02:00
|
|
|
}
|
2022-09-21 07:43:00 +02:00
|
|
|
|
|
|
|
spotless {
|
|
|
|
java {
|
|
|
|
target 'src/**/*.java'
|
|
|
|
|
|
|
|
importOrder('android', 'androidx', 'com', 'junit', 'net', 'org', 'java', 'javax', '', '\\#')
|
|
|
|
|
2022-11-02 13:50:03 +01:00
|
|
|
removeUnusedImports()
|
2022-09-21 07:43:00 +02:00
|
|
|
googleJavaFormat().aosp()
|
|
|
|
indentWithTabs()
|
|
|
|
formatAnnotations()
|
|
|
|
}
|
|
|
|
}
|