Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e95d3ad

Browse files
feat(app): upgrade tinkerPatchPlugin to 1.0.4 which is based on tinker 1.7.7
1 parent 6798c58 commit e95d3ad

File tree

3 files changed

+32
-24
lines changed

3 files changed

+32
-24
lines changed

‎app/src/main/java/tinker/sample/android/app/SampleApplicationLike.java‎

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
import android.app.Application;
3030
import android.content.Context;
3131
import android.content.Intent;
32-
import android.content.res.AssetManager;
33-
import android.content.res.Resources;
3432
import android.os.Build;
3533
import android.support.multidex.MultiDex;
3634
import android.util.Log;
@@ -81,27 +79,20 @@
8179
public class SampleApplicationLike extends DefaultApplicationLike {
8280
private static final String TAG = "Tinker.SampleAppLike";
8381

84-
public SampleApplicationLike(
85-
Application application,
86-
int tinkerFlags,
87-
boolean tinkerLoadVerifyFlag,
88-
long applicationStartElapsedTime,
89-
long applicationStartMillisTime,
90-
Intent tinkerResultIntent,
91-
Resources[] resources,
92-
ClassLoader[] classLoader,
93-
AssetManager[] assetManager
82+
public SampleApplicationLike(Application application,
83+
int tinkerFlags,
84+
boolean tinkerLoadVerifyFlag,
85+
long applicationStartElapsedTime,
86+
long applicationStartMillisTime,
87+
Intent tinkerResultIntent
9488
) {
9589
super(
9690
application,
9791
tinkerFlags,
9892
tinkerLoadVerifyFlag,
9993
applicationStartElapsedTime,
10094
applicationStartMillisTime,
101-
tinkerResultIntent,
102-
resources,
103-
classLoader,
104-
assetManager
95+
tinkerResultIntent
10596
);
10697
}
10798

‎app/tinkerpatch.gradle‎

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'tinkerpatch-support'
22

33
def bakPath = file("${buildDir}/bakApk/")
44

5-
def appName = "app-1.0.0-1223-13-41-43"
5+
def appName = "app-1.0.0.release-0111年05月31日-56"
66

77
/**
88
* 对于插件各参数的详细解析请参考
@@ -11,13 +11,30 @@ def appName = "app-1.0.0-1223-13-41-43"
1111
tinkerpatchSupport {
1212
tinkerEnable = true
1313
appKey = "f828475486f91936"
14-
appVersion = "1.0.0"
15-
1614
autoBackupApkPath = "${bakPath}"
1715

18-
baseApkFile = "${bakPath}/${appName}/app-debug.apk"
19-
baseProguardMappingFile = "${bakPath}/${appName}/app-debug-mapping.txt"
20-
baseResourceRFile = "${bakPath}/${appName}/app-debug-R.txt"
16+
baseApkInfos {
17+
item {
18+
variantName = "debug"
19+
appVersion = "1.0.0.debug"
20+
21+
def pathPrefix = "${bakPath}/${appName}/${variantName}/"
22+
def name = "app-debug"
23+
baseApkFile = "${pathPrefix}/${name}.apk"
24+
baseProguardMappingFile = "${pathPrefix}/${name}-mapping.txt"
25+
baseResourceRFile = "${pathPrefix}/${name}-R.txt"
26+
}
27+
item {
28+
variantName = "release"
29+
appVersion = "1.0.0.release"
30+
31+
def pathPrefix = "${bakPath}/${appName}/${variantName}/"
32+
def name = "app-release"
33+
baseApkFile = "${pathPrefix}/${name}.apk"
34+
baseProguardMappingFile = "${pathPrefix}/${name}-mapping.txt"
35+
baseResourceRFile = "${pathPrefix}/${name}-R.txt"
36+
}
37+
}
2138
}
2239

2340
/**

‎gradle.properties‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# org.gradle.parallel=true
1515
#Thu Dec 08 22:20:28 CST 2016
1616

17-
TINKER_VERSION=1.7.6
18-
TINKERPATCH_VERSION=1.0.1
17+
TINKER_VERSION=1.7.7
18+
TINKERPATCH_VERSION=1.0.4

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /