@@ -22,13 +22,6 @@ android {
2222 }
2323 }
2424
25- buildTypes {
26- release {
27- minifyEnabled true
28- proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
29- }
30- }
31-
3225 compileOptions {
3326 coreLibraryDesugaringEnabled true
3427 sourceCompatibility JavaVersion . VERSION_17
@@ -41,28 +34,108 @@ android {
4134 def version = variant. versionName
4235 def buildNumber = variant. versionCode
4336 def variantName = variant. name
44- outputFileName = " ${ projectName} -v${ version} -build.${ buildNumber} .apk"
37+ outputFileName = " ${ projectName} -v${ version} -build-${ buildNumber} .apk"
38+ }
39+ }
40+ }
41+
42+ configurations. all {
43+ resolutionStrategy {
44+ force ' org.jetbrains:annotations:24.0.1'
45+ force ' org.jetbrains:annotations-java5:24.0.1'
46+ eachDependency { details ->
47+ if (details. requested. group == ' org.jetbrains' &&
48+ (details. requested. name == ' annotations' || details. requested. name == ' annotations-java5' )) {
49+ details. useVersion ' 24.0.1'
50+ }
4551 }
4652 }
4753}
4854
4955dependencies {
50- implementation " androidx.appcompat:appcompat:$app_compat "
56+ implementation(" androidx.appcompat:appcompat:$app_compat " ) {
57+ exclude group : ' org.jetbrains' , module : ' annotations'
58+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
59+ }
5160 implementation " androidx.multidex:multidex:$multidex "
5261 implementation " androidx.preference:preference:$preference "
5362 implementation " androidx.swiperefreshlayout:swiperefreshlayout:$swiperefreshlayout "
5463
5564 implementation " com.google.android.material:material:$material "
5665 implementation " com.google.code.gson:gson:$gson "
5766
58- implementation " io.github.Rosemoe.sora-editor:editor"
59- implementation " io.github.Rosemoe.sora-editor:language-textmate"
60- implementation " io.noties.markwon:core:${ markwonVersion} "
67+ implementation(" io.github.Rosemoe.sora-editor:editor" ) {
68+ exclude group : ' org.jetbrains' , module : ' annotations'
69+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
70+ }
71+ implementation(" io.github.Rosemoe.sora-editor:language-textmate" ) {
72+ exclude group : ' org.jetbrains' , module : ' annotations'
73+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
74+ }
75+
76+ implementation(" io.noties.markwon:core:${ markwonVersion} " ) {
77+ exclude group : ' org.jetbrains' , module : ' annotations'
78+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
79+ }
80+ implementation(" io.noties.markwon:ext-tables:${ markwonVersion} " ) {
81+ exclude group : ' org.jetbrains' , module : ' annotations'
82+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
83+ }
84+ implementation(" io.noties.markwon:ext-tasklist:${ markwonVersion} " ) {
85+ exclude group : ' org.jetbrains' , module : ' annotations'
86+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
87+ }
88+ implementation(" io.noties.markwon:html:${ markwonVersion} " ) {
89+ exclude group : ' org.jetbrains' , module : ' annotations'
90+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
91+ }
92+ implementation(" io.noties.markwon:image:${ markwonVersion} " ) {
93+ exclude group : ' org.jetbrains' , module : ' annotations'
94+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
95+ }
96+ implementation(" io.noties.markwon:image-coil:${ markwonVersion} " ) {
97+ exclude group : ' org.jetbrains' , module : ' annotations'
98+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
99+ }
100+ implementation(" io.noties.markwon:image-glide:${ markwonVersion} " ) {
101+ exclude group : ' org.jetbrains' , module : ' annotations'
102+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
103+ }
104+ implementation(" io.noties.markwon:image-picasso:${ markwonVersion} " ) {
105+ exclude group : ' org.jetbrains' , module : ' annotations'
106+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
107+ }
108+ implementation(" io.noties.markwon:inline-parser:${ markwonVersion} " ) {
109+ exclude group : ' org.jetbrains' , module : ' annotations'
110+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
111+ }
112+ implementation(" io.noties.markwon:linkify:${ markwonVersion} " ) {
113+ exclude group : ' org.jetbrains' , module : ' annotations'
114+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
115+ }
116+ implementation(" io.noties.markwon:recycler:${ markwonVersion} " ) {
117+ exclude group : ' org.jetbrains' , module : ' annotations'
118+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
119+ }
120+ implementation(" io.noties.markwon:recycler-table:${ markwonVersion} " ) {
121+ exclude group : ' org.jetbrains' , module : ' annotations'
122+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
123+ }
124+ implementation(" io.noties.markwon:simple-ext:${ markwonVersion} " ) {
125+ exclude group : ' org.jetbrains' , module : ' annotations'
126+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
127+ }
128+ implementation(" io.noties.markwon:syntax-highlight:${ markwonVersion} " ) {
129+ exclude group : ' org.jetbrains' , module : ' annotations'
130+ exclude group : ' org.jetbrains' , module : ' annotations-java5'
131+ }
61132
62133 implementation project(" :filetree" )
63134 implementation project(" :colorpicker" )
64135 implementation project(" :utils" )
65136 implementation platform(" io.github.Rosemoe.sora-editor:bom:$sora_editor " )
66137 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
67138 coreLibraryDesugaring " com.android.tools:desugar_jdk_libs:$desugar_jdk_libs "
139+
140+ implementation ' org.jetbrains:annotations:24.0.1'
68141}
0 commit comments