Skip to content

Commit 61630c1

Browse files
committed
update config
1 parent dc99d1a commit 61630c1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

app/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 27
5-
buildToolsVersion "26.0.2"
4+
compileSdkVersion 28
5+
buildToolsVersion "28.0.3"
66
defaultConfig {
77
applicationId "com.example.jingbin.webviewstudy"
88
minSdkVersion 14
9-
targetSdkVersion 27
9+
targetSdkVersion 28
1010
versionCode 6
1111
versionName "2.6.0"
1212
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -43,7 +43,7 @@ dependencies {
4343
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
4444
exclude group: 'com.android.support', module: 'support-annotations'
4545
})
46-
implementation 'com.android.support:appcompat-v7:27.1.1'
46+
implementation 'com.android.support:appcompat-v7:28.0.0'
4747
testImplementation 'junit:junit:4.12'
4848
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.1'
4949
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private void initWebView() {
174174
// 排版适应屏幕
175175
ws.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);
176176
// WebView是否新窗口打开(加了后可能打不开网页)
177-
ws.setSupportMultipleWindows(true);
177+
// ws.setSupportMultipleWindows(true);
178178

179179
// webview从5.0开始默认不允许混合模式,https中不能加载http资源,需要设置开启。
180180
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
jcenter()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.0.1'
9+
classpath 'com.android.tools.build:gradle:3.3.1'
1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files
1212
}
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Tue May 22 10:43:23 CST 2018
1+
#Fri Mar 01 11:29:01 CST 2019
22
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-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

0 commit comments

Comments
 (0)