File tree Expand file tree Collapse file tree 5 files changed +21
-7
lines changed
java/cn/hx/plugin/junkcode/demo Expand file tree Collapse file tree 5 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ android {
12
12
targetSdkVersion 29
13
13
versionCode 1
14
14
versionName " 1.0"
15
-
15
+ multiDexEnabled true
16
16
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
17
17
}
18
18
@@ -33,8 +33,8 @@ android.applicationVariants.all { variant ->
33
33
packageCount = 30
34
34
activityCountPerPackage = 3
35
35
otherCountPerPackage = 10
36
- methodCountPerClass = 10
37
- resPrefix = " lite_junk_ "
36
+ methodCountPerClass = 20
37
+ resPrefix = " junk_ "
38
38
drawableCount = 30
39
39
stringCount = 30
40
40
})
@@ -45,6 +45,7 @@ android.applicationVariants.all { variant ->
45
45
dependencies {
46
46
implementation fileTree(dir : " libs" , include : [" *.jar" ])
47
47
implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
48
+ implementation ' androidx.multidex:multidex:2.0.1'
48
49
implementation ' androidx.core:core-ktx:1.3.0'
49
50
implementation ' androidx.appcompat:appcompat:1.1.0'
50
51
implementation ' androidx.constraintlayout:constraintlayout:1.1.3'
Original file line number Diff line number Diff line change 3
3
package =" cn.hx.plugin.junkcode.demo" >
4
4
5
5
<application
6
+ android : name =" .AppApplication"
6
7
android : allowBackup =" true"
7
8
android : icon =" @mipmap/ic_launcher"
8
9
android : label =" @string/app_name"
Original file line number Diff line number Diff line change
1
+ package cn.hx.plugin.junkcode.demo
2
+
3
+ import android.app.Application
4
+ import android.content.Context
5
+ import androidx.multidex.MultiDex
6
+
7
+ class AppApplication : Application () {
8
+ override fun attachBaseContext (base : Context ? ) {
9
+ super .attachBaseContext(base)
10
+ MultiDex .install(this )
11
+ }
12
+ }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ if (projectPropertiesFile.exists()) {
25
25
def projectName = properties. getProperty(" project.name" )
26
26
def projectGroupId = properties. getProperty(" project.groupId" )
27
27
def projectArtifactId = properties. getProperty(" project.artifactId" )
28
- def projectArtifactName = properties. getProperty(" project.artifactVersion" )
28
+ def projectArtifactVersion = properties. getProperty(" project.artifactVersion" )
29
29
def projectSiteUrl = properties. getProperty(" project.siteUrl" )
30
30
def projectGitUrl = properties. getProperty(" project.gitUrl" )
31
31
def projectDesc = properties. getProperty(" project.desc" )
@@ -43,7 +43,7 @@ publish {
43
43
website = projectSiteUrl
44
44
repository = projectGitUrl
45
45
desc = projectDesc
46
- publishVersion = projectArtifactName
46
+ publishVersion = projectArtifactVersion
47
47
userOrg = bintray_Org
48
48
bintrayUser = bintray_User
49
49
bintrayKey = bintrayApikey
@@ -57,7 +57,7 @@ uploadArchives {
57
57
// authentication(userName: mavenUserName, password: mavenUserPassword)
58
58
// }
59
59
repository(url : uri(" ../repo" ))
60
- pom. version = ' 1.0.1 '
60
+ pom. version = projectArtifactVersion
61
61
pom. artifactId = ' android-junk-code'
62
62
pom. groupId = ' cn.hx.plugin'
63
63
pom. project {
Original file line number Diff line number Diff line change 2
2
project.name =AndroidJunkCode
3
3
project.groupId =cn.hx.plugin
4
4
project.artifactId =android-junk-code
5
- project.artifactVersion =1.0.0
5
+ project.artifactVersion =1.0.1
6
6
project.siteUrl =https://github.com/qq549631030/AndroidJunkCode
7
7
project.gitUrl =https://github.com/qq549631030/AndroidJunkCode.git
8
8
project.desc =generate junk code for android
You can’t perform that action at this time.
0 commit comments