Skip to content

Commit cbc40ef

Browse files
committed
兼容Gradle 3.2+
1 parent ff9d4eb commit cbc40ef

File tree

9 files changed

+142
-93
lines changed

9 files changed

+142
-93
lines changed

Diff for: DexKnifePlugin/app/build.gradle

+18-7
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,28 @@ apply plugin: 'com.android.application'
22
apply plugin: 'dexknifePlus'
33

44
android {
5-
compileSdkVersion Integer.parseInt(project.COMPILE_SDK_VER)
6-
buildToolsVersion project.BUILD_TOOLS_VER
5+
compileSdkVersion 23
6+
buildToolsVersion '23.0.3'
77

88
defaultConfig {
9-
minSdkVersion Integer.parseInt(project.MIN_SDK_VER)
10-
targetSdkVersion Integer.parseInt(project.TARGET_SDK_VERSION)
9+
minSdkVersion 14
10+
targetSdkVersion 23
1111
versionCode 1
1212
versionName "1.0"
1313

1414
multiDexEnabled true
1515
}
1616

17+
//签名
18+
signingConfigs {
19+
key {
20+
storeFile file('mutidex.jks')
21+
storePassword '123456'
22+
keyAlias 'king'
23+
keyPassword '123456'
24+
}
25+
}
26+
1727
productFlavors{
1828
dev{
1929

@@ -26,12 +36,13 @@ android {
2636

2737
buildTypes {
2838
release {
29-
minifyEnabled false
39+
minifyEnabled true
40+
signingConfig signingConfigs.key
3041
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3142
}
3243

3344
debug {
34-
// minifyEnabled true
45+
minifyEnabled false
3546
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3647
}
3748
}
@@ -48,7 +59,7 @@ dexKnife{
4859
//1.如果没有可选参数,将根据enabled决定是否分包。
4960
//2.如果有可选参数,需满足必选参数和可选参数的条件才允许分包
5061
productFlavor 'mock'
51-
buildType 'debug'
62+
//buildType 'debug'
5263

5364
/*
5465
*eg:当前productFlavors = dev,buildType = debug,

Diff for: DexKnifePlugin/app/mutidex.jks

2.15 KB
Binary file not shown.

Diff for: DexKnifePlugin/app/src/main/res/values/strings.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<resources>
2-
<string name="app_name">demo</string>
2+
<string name="app_name">MultiDexPluginApp</string>
33

44
<string name="hello_world">Hello world!</string>
55
<string name="action_settings">Settings</string>

Diff for: DexKnifePlugin/build.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
buildscript {
22
repositories {
3+
//maven { url uri('./repo') }
34
jcenter()
45
mavenCentral()
56
}
67

78
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.0'
9-
classpath 'com.library.tangxiaolv:dexknife-plus:1.0.1'
9+
classpath 'com.android.tools.build:gradle:2.2.3'
10+
classpath 'com.library.tangxiaolv:dexknife-plus:1.0.3'
1011
}
1112
}
1213

Diff for: DexKnifePlugin/dexknife-plus/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Gradle:groupId:libraryName:publicVersion
22
LOCAL_VERSION=0.0.5
3-
PUBLIC_VERSION=1.0.1
3+
PUBLIC_VERSION=1.0.3
44
GROUP_ID=com.library.tangxiaolv
55
#±ØÐë¸úModelÃûÒ»Ñù
66
LIBRARY_NAME=dexknife-plus

0 commit comments

Comments
 (0)