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

DexKnifePlugin/app/build.gradle

Lines changed: 18 additions & 7 deletions
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,

DexKnifePlugin/app/mutidex.jks

2.15 KB
Binary file not shown.

DexKnifePlugin/app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
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>

DexKnifePlugin/build.gradle

Lines changed: 3 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy