Skip to content

Commit b7b7348

Browse files
committed
Support Android R version code
1 parent b0b7e78 commit b7b7348

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 29
4+
compileSdkVersion 30
55
buildToolsVersion '28.0.3'
66
defaultConfig {
77
applicationId "me.weishu.epic.samples"
88
minSdkVersion 18
9-
targetSdkVersion 29
9+
targetSdkVersion 30
1010
versionCode 1
1111
versionName "1.0"
1212
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 29
4+
compileSdkVersion 30
55
buildToolsVersion '28.0.3'
66

77
defaultConfig {

library/src/main/java/me/weishu/epic/art/method/Offset.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ private static void initFields() {
121121
ART_QUICK_CODE_OFFSET.setLength(Offset.BitWidth.QWORD);
122122
ART_JNI_ENTRY_OFFSET.setLength(BitWidth.QWORD);
123123
switch (apiLevel) {
124+
case Build.VERSION_CODES.R:
124125
case Build.VERSION_CODES.Q:
125126
case Build.VERSION_CODES.P:
126127
ART_QUICK_CODE_OFFSET.setOffset(32);

0 commit comments

Comments
 (0)