Skip to content

Commit

Permalink
update jitpack configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
youlookwhat committed Aug 29, 2022
1 parent d2765c5 commit 77c0797
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
9 changes: 5 additions & 4 deletions ByWebView/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
apply plugin: 'com.android.library'

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

android {
compileSdkVersion 30

defaultConfig {
minSdkVersion 14
targetSdkVersion 29
targetSdkVersion 30
versionCode 1
versionName "1.0"

Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
compileSdkVersion 30

defaultConfig {
applicationId "com.example.jingbin.webviewstudy"
minSdkVersion 14
targetSdkVersion 29
targetSdkVersion 30
versionCode 15
versionName "3.3.1"
multiDexEnabled true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void onCoreInitFinished() {
QbSdk.initX5Environment(getApplicationContext(), cb);

// 在调用TBS初始化、创建WebView之前进行如下配置
HashMap map = new HashMap();
HashMap<String, Object> map = new HashMap<String, Object>();
map.put(TbsCoreSettings.TBS_SETTINGS_USE_SPEEDY_CLASSLOADER, true);
map.put(TbsCoreSettings.TBS_SETTINGS_USE_DEXLOADER_SERVICE, true);
QbSdk.initTbsSettings(map);
Expand Down
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -15,7 +16,7 @@ buildscript {
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Expand Down

0 comments on commit 77c0797

Please sign in to comment.