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