2019-06-04 05:25:05 +08:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2020-09-26 21:55:30 +08:00
|
|
|
compileSdkVersion 30
|
2019-06-04 05:25:05 +08:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.mian.gitnex"
|
|
|
|
minSdkVersion 21
|
2020-09-26 21:55:30 +08:00
|
|
|
targetSdkVersion 30
|
2021-01-01 19:57:16 +08:00
|
|
|
versionCode 346
|
|
|
|
versionName "3.5.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
|
|
|
dexOptions {
|
|
|
|
javaMaxHeapSize "4g"
|
|
|
|
}
|
|
|
|
flavorDimensions "default"
|
|
|
|
productFlavors {
|
|
|
|
free {
|
|
|
|
applicationId "org.mian.gitnex"
|
|
|
|
}
|
|
|
|
pro {
|
|
|
|
applicationId "org.mian.gitnex.pro"
|
|
|
|
}
|
|
|
|
}
|
2020-07-09 14:55:05 +08:00
|
|
|
buildFeatures {
|
|
|
|
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
|
2019-06-04 05:25:05 +08:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
lintOptions {
|
|
|
|
//checkReleaseBuilds false
|
|
|
|
abortOnError false
|
|
|
|
}
|
2020-03-16 17:25:15 +08:00
|
|
|
compileOptions {
|
2020-11-09 02:58:47 +08:00
|
|
|
coreLibraryDesugaringEnabled true
|
|
|
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
2020-03-16 17:25:15 +08:00
|
|
|
}
|
2020-08-21 00:21:55 +08:00
|
|
|
defaultConfig{
|
|
|
|
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 {
|
2020-12-31 22:38:18 +08:00
|
|
|
def lifecycle_version = '2.3.0-rc01'
|
|
|
|
def markwon_version = '4.6.1'
|
2020-07-24 01:35:46 +08:00
|
|
|
def work_version = "2.4.0"
|
2020-11-02 23:17:00 +08:00
|
|
|
def acra = "5.7.0"
|
2019-06-04 05:25:05 +08:00
|
|
|
|
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
2020-09-04 22:33:59 +08:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
|
2020-10-06 00:29:19 +08:00
|
|
|
implementation 'com.google.android.material:material:1.3.0-alpha03'
|
2020-11-09 02:58:47 +08:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.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"
|
2020-10-21 02:09:07 +08:00
|
|
|
testImplementation 'junit:junit:4.13.1'
|
2020-09-04 22:33:59 +08:00
|
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
2020-09-26 21:55:30 +08:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
|
2020-03-16 17:25:15 +08:00
|
|
|
implementation "com.google.code.gson:gson:2.8.6"
|
2019-10-30 22:04:49 +08:00
|
|
|
implementation "com.squareup.picasso:picasso:2.71828"
|
|
|
|
implementation "com.amulyakhare:com.amulyakhare.textdrawable:1.0.1"
|
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'
|
2020-09-26 21:55:30 +08:00
|
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
|
2020-12-31 22:38:18 +08:00
|
|
|
implementation 'org.ocpsoft.prettytime:prettytime:5.0.0.Final'
|
2019-06-04 05:25:05 +08:00
|
|
|
implementation "com.pes.materialcolorpicker:library:1.2.5"
|
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"
|
|
|
|
implementation "io.noties.markwon:syntax-highlight:$markwon_version"
|
2020-11-02 23:17:00 +08:00
|
|
|
implementation "io.noties.markwon:image-picasso:$markwon_version"
|
|
|
|
implementation "io.noties:prism4j:2.0.0"
|
|
|
|
annotationProcessor "io.noties:prism4j-bundler:2.0.0"
|
2019-09-30 00:44:42 +08:00
|
|
|
implementation "com.caverock:androidsvg:1.4"
|
2020-11-02 23:17:00 +08:00
|
|
|
implementation "pl.droidsonroids.gif:android-gif-drawable:1.2.21"
|
2019-10-18 01:47:27 +08:00
|
|
|
implementation "com.github.HamidrezaAmz:BreadcrumbsView:0.2.9"
|
2020-03-16 17:25:15 +08:00
|
|
|
implementation "commons-io:commons-io:20030203.000550"
|
2020-08-05 04:50:04 +08:00
|
|
|
implementation 'org.apache.commons:commons-lang3:3.11'
|
2019-10-30 22:04:49 +08:00
|
|
|
implementation "com.github.chrisbanes:PhotoView:2.3.0"
|
2020-01-31 02:00:31 +08:00
|
|
|
implementation "com.github.barteksc:android-pdf-viewer:3.2.0-beta.1"
|
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"
|
2020-12-31 22:38:18 +08:00
|
|
|
implementation 'androidx.room:room-runtime:2.2.6'
|
|
|
|
annotationProcessor 'androidx.room:room-compiler:2.2.6'
|
2020-07-23 03:32:42 +08:00
|
|
|
implementation "androidx.work:work-runtime:$work_version"
|
2020-11-02 23:17:00 +08:00
|
|
|
implementation "com.eightbitlab:blurview:1.6.4"
|
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"
|
2020-11-18 15:25:34 +08:00
|
|
|
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.1"
|
2020-07-23 03:32:42 +08:00
|
|
|
|
2019-06-04 05:25:05 +08:00
|
|
|
}
|