Skip to content

Commit 77c0797

Browse files
committed
update jitpack configuration
1 parent d2765c5 commit 77c0797

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

ByWebView/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
apply plugin: 'com.android.library'
22

3-
android {
4-
compileSdkVersion 29
5-
buildToolsVersion "29.0.3"
3+
apply plugin: 'com.github.dcendents.android-maven'
4+
group = 'com.github.youlookwhat'
65

6+
android {
7+
compileSdkVersion 30
78

89
defaultConfig {
910
minSdkVersion 14
10-
targetSdkVersion 29
11+
targetSdkVersion 30
1112
versionCode 1
1213
versionName "1.0"
1314

app/build.gradle

Lines changed: 3 additions & 3 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
5-
buildToolsVersion "29.0.3"
4+
compileSdkVersion 30
5+
66
defaultConfig {
77
applicationId "com.example.jingbin.webviewstudy"
88
minSdkVersion 14
9-
targetSdkVersion 29
9+
targetSdkVersion 30
1010
versionCode 15
1111
versionName "3.3.1"
1212
multiDexEnabled true

app/src/main/java/com/example/jingbin/webviewstudy/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void onCoreInitFinished() {
5555
QbSdk.initX5Environment(getApplicationContext(), cb);
5656

5757
// 在调用TBS初始化、创建WebView之前进行如下配置
58-
HashMap map = new HashMap();
58+
HashMap<String, Object> map = new HashMap<String, Object>();
5959
map.put(TbsCoreSettings.TBS_SETTINGS_USE_SPEEDY_CLASSLOADER, true);
6060
map.put(TbsCoreSettings.TBS_SETTINGS_USE_DEXLOADER_SERVICE, true);
6161
QbSdk.initTbsSettings(map);

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
buildscript {
44
repositories {
55
google()
6-
jcenter()
6+
mavenCentral()
77
}
88
dependencies {
99
classpath 'com.android.tools.build:gradle:3.4.2'
10+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files
1213
}
@@ -15,7 +16,7 @@ buildscript {
1516
allprojects {
1617
repositories {
1718
google()
18-
jcenter()
19+
mavenCentral()
1920
maven { url 'https://jitpack.io' }
2021
}
2122
}

0 commit comments

Comments
 (0)