Skip to content

Commit a15cdb7

Browse files
committed
[1.7.0-feature] 代码优化
1 parent 4ab2958 commit a15cdb7

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

app/multidex-config.pro

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in D:\Android\sdkN/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
18+
-keep class androidx.startup.AppInitializer
19+
-keep class * extends androidx.startup.Initializer

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
}
1414
dependencies {
1515
//https://developer.android.com/studio/releases/gradle-plugin?hl=zh-cn
16-
classpath 'com.android.tools.build:gradle:4.1.3'
16+
classpath "com.android.tools.build:gradle:$agp_version"
1717
classpath Deps.kotlinPlugin
1818
//protocol buffer插件:https://github.com/google/protobuf-gradle-plugin
1919
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.17'

gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ android.enableJetifier=true
1919
compileDialogWithSource=true
2020
compileMVPager2WithSource=true
2121

22+
agp_version=4.1.3
23+
2224
# Blog: https://guolin.blog.csdn.net/article/details/119706565
2325
# Maven publish: https://s01.oss.sonatype.org/#stagingRepositories
2426
#----------------Mavenstart----------------

0 commit comments

Comments
 (0)