Skip to content

Commit 248b256

Browse files
committed
build:升级Gradle插件到7.0
1 parent d611d7f commit 248b256

File tree

7 files changed

+16
-25
lines changed

7 files changed

+16
-25
lines changed

LibEasyWebview/build.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
apply plugin: 'com.android.library'
2-
apply from: 'jitpack.gradle'
32

43
android {
5-
compileSdkVersion 28
6-
buildToolsVersion "28.0.3"
4+
compileSdkVersion 32
75

86
defaultConfig {
97
minSdkVersion 18
10-
targetSdkVersion 28
11-
versionCode 1
12-
versionName "1.0"
8+
targetSdkVersion 32
139

1410
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1511
// tencent x5
@@ -38,7 +34,7 @@ dependencies {
3834
testImplementation 'junit:junit:4.12'
3935
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
4036
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
41-
api 'com.tencent.tbs.tbssdk:sdk:43993'
37+
api 'com.tencent.tbs:tbssdk:44199'
4238
// api files('libs/tbs_sdk_thirdapp_v4.3.0.1072_43646_sharewithdownloadwithfile_withoutGame_obfs_20190429_175122.jar')
4339

4440
}

LibEasyWebview/jitpack.gradle

Lines changed: 0 additions & 3 deletions
This file was deleted.

app/build.gradle

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

33
android {
44
compileSdkVersion 28
5-
buildToolsVersion "28.0.3"
65
defaultConfig {
76
applicationId "me.bzcoder.easywebview.sample"
87
minSdkVersion 18
9-
targetSdkVersion 28
8+
targetSdkVersion 32
109
versionCode 6
1110
versionName "2.6.0"
1211
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
@@ -51,11 +50,11 @@ dependencies {
5150
})
5251
implementation 'androidx.appcompat:appcompat:1.0.0'
5352
testImplementation 'junit:junit:4.12'
54-
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.1'
53+
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
5554
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'
5655
implementation project(path: ':LibEasyWebview')
5756

58-
implementation 'com.github.BzCoder:EasyGlide:1.0.8'
57+
implementation 'com.github.BzCoder:EasyGlide:2.0.1'
5958
implementation 'com.github.BzCoder:BigImageViewPager:4_4.0.5'
6059

6160

app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,19 @@
2929
tools:ignore="UnusedAttribute">
3030
<activity
3131
android:name="me.bzcoder.webview.MainActivity"
32+
android:launchMode="singleTask"
3233
android:screenOrientation="portrait"
33-
android:launchMode="singleTask">
34+
android:exported="true">
3435
<intent-filter>
3536
<action android:name="android.intent.action.MAIN" />
3637
<category android:name="android.intent.category.LAUNCHER" />
3738
</intent-filter>
3839
</activity>
3940

4041
<!--用于DeepLink,html跳到此页面 scheme_Adr: 'will://link/testid',-->
41-
<activity android:name="me.bzcoder.webview.DeepLinkActivity">
42+
<activity
43+
android:name="me.bzcoder.webview.DeepLinkActivity"
44+
android:exported="true">
4245
<intent-filter>
4346
<action android:name="android.intent.action.VIEW" />
4447

@@ -57,6 +60,7 @@
5760
<activity
5861
android:name="me.bzcoder.webview.tencentx5.X5WebViewActivity"
5962
android:configChanges="orientation|screenSize|keyboardHidden"
63+
android:exported="true"
6064
android:hardwareAccelerated="true"
6165
android:launchMode="singleTask"
6266
android:screenOrientation="portrait"

app/src/main/java/me/bzcoder/webview/App.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import android.app.Application;
44
import android.util.Log;
55

6-
import com.squareup.leakcanary.LeakCanary;
76
import com.tencent.smtt.sdk.QbSdk;
87

98
/**
@@ -18,10 +17,6 @@ public class App extends Application {
1817
@Override
1918
public void onCreate() {
2019
super.onCreate();
21-
if (LeakCanary.isInAnalyzerProcess(this)) {
22-
return;
23-
}
24-
LeakCanary.install(this);
2520
app = this;
2621
initX5();
2722
}

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
buildscript {
44
repositories {
55
google()
6-
jcenter()
6+
mavenCentral()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.1.1'
9+
classpath 'com.android.tools.build:gradle:7.2.1'
1010
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1111
// NOTE: Do not place your application dependencies here; they belong
1212
// in the individual module build.gradle files
@@ -16,7 +16,7 @@ buildscript {
1616
allprojects {
1717
repositories {
1818
google()
19-
jcenter()
19+
mavenCentral()
2020
maven { url 'https://jitpack.io' }
2121
}
2222
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip

0 commit comments

Comments
 (0)