Commit 0793ce16 by Kazuyuki Hida

Android Gradle Pluginのバージョンを7.4.2に上げた時の差分

parent 03a5b402
......@@ -7,7 +7,7 @@ version = '1.0'
dependencies {
testImplementation 'junit:junit:4.11'
implementation 'commons-codec:commons-codec:1.10'
implementation 'commons-codec:commons-codec:1.11'
implementation 'net.lingala.zip4j:zip4j:1.3.2'
implementation files('libs/java_websocket_0.8.jar')
}
......
buildscript {
repositories {
jcenter()
google()
mavenCentral()
}
dependencies {
classpath 'org.ajoberstar:gradle-git:0.12+'
classpath 'com.google.gms:google-services:4.0.1'
classpath 'org.ajoberstar:gradle-git:0.12.0'
classpath 'com.google.gms:google-services:4.3.15'
}
}
......@@ -13,15 +14,15 @@ apply plugin: 'com.google.gms.google-services'
dependencies {
implementation project(':ABVJE_UI_Android')
implementation 'androidx.multidex:multidex:2.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
}
android {
compileSdkVersion 31
compileSdkVersion 33
defaultConfig {
minSdkVersion 23
targetSdkVersion 31
targetSdkVersion 33
multiDexEnabled true
// from gradle.properties
......@@ -61,10 +62,10 @@ android {
assets.srcDirs = ['assets']
}
}
lintOptions {
quiet true
checkReleaseBuilds false
abortOnError false
packagingOptions {
resources {
excludes += ['values/attrs.xml', 'values/dimens.xml']
}
}
buildTypes {
......@@ -73,10 +74,6 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
packagingOptions {
exclude 'values/attrs.xml'
exclude 'values/dimens.xml'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
......@@ -130,6 +127,11 @@ android {
}
}
}
lint {
abortOnError false
checkReleaseBuilds false
quiet true
}
}
import org.ajoberstar.grgit.*
......
......@@ -6,11 +6,11 @@ buildscript {
apply plugin: 'com.android.library'
android {
compileSdkVersion 31
compileSdkVersion 33
defaultConfig {
minSdkVersion 23
targetSdkVersion 31
targetSdkVersion 33
//abvEnvironments
resValue("string", "acms_address", "${acms_address}")
resValue("string", "download_server_address", "${download_server_address}")
......@@ -75,7 +75,7 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
lintOptions {
lint {
abortOnError false
}
}
buildscript {
repositories {
jcenter()
google()
mavenCentral()
}
}
......@@ -8,17 +9,17 @@ apply plugin: 'com.android.library'
dependencies {
implementation 'androidx.multidex:multidex:2.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
implementation project(':ABVJE_BL')
implementation project(':ABVJE_Res_Default_Android')
implementation files('libs/ozrv_android.jar')
api 'com.google.firebase:firebase-core:21.1.1'
api 'com.google.firebase:firebase-messaging:23.0.8'
api 'androidx.appcompat:appcompat:1.0.0'
api 'com.google.firebase:firebase-messaging:23.1.1'
api 'androidx.appcompat:appcompat:1.6.1'
implementation 'commons-codec:commons-codec:1.10'
implementation 'commons-codec:commons-codec:1.11'
implementation 'net.lingala.zip4j:zip4j:1.3.2'
implementation 'com.google.guava:guava:18.0'
// implementation 'com.google.guava:guava:18.0'
implementation 'com.google.zxing:core:3.2.1'
implementation 'org.jsoup:jsoup:1.9.2'
implementation project(':xwalk_core_library')
......@@ -26,11 +27,11 @@ dependencies {
}
android {
compileSdkVersion 31
compileSdkVersion 33
defaultConfig {
minSdkVersion 23
targetSdkVersion 31
targetSdkVersion 33
multiDexEnabled true
}
sourceSets {
......@@ -45,11 +46,6 @@ android {
jniLibs.srcDirs = ['libs', 'xwalk_core_library/src/main/jniLibs']
}
}
lintOptions {
quiet true
checkReleaseBuilds false
abortOnError false
}
buildTypes {
release {
......@@ -59,6 +55,11 @@ android {
}
useLibrary 'org.apache.http.legacy'
lint {
abortOnError false
checkReleaseBuilds false
quiet true
}
}
gradle.projectsEvaluated {
......
......@@ -96,10 +96,10 @@ public class ABVCachedWebView extends WebView {
@SuppressLint("JavascriptInterface")
public void initSetting() {
Logger.d(TAG, "[initSetting]");
getSettings().setAppCacheEnabled(true);
// getSettings().setAppCacheEnabled(true);
getSettings().setAllowFileAccess(true);
getSettings().setAppCacheMaxSize(8 * 1024 * 1024);
// getSettings().setAppCacheMaxSize(8 * 1024 * 1024);
//jacascriptを許可する
getSettings().setJavaScriptEnabled(true);
addJavascriptInterface(new _JavascriptInterface(), "ABVCachedWebView");
......
......@@ -191,7 +191,7 @@ public class OperationListActivity extends ABVUIActivity {
}
WebSettings settings = mCheckWebView.getSettings();
settings.setJavaScriptEnabled(true); //Javascriptを有効にする。
settings.setAppCacheEnabled(true);
// settings.setAppCacheEnabled(true);
settings.setCacheMode(WebSettings.LOAD_DEFAULT);
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
......
......@@ -37,7 +37,7 @@ public class ChatWebView extends WebView {
addJavascriptInterface(this, "android");
WebSettings settings = getSettings();
settings.setJavaScriptEnabled(true); //Javascriptを有効にする。
settings.setAppCacheEnabled(true);
// settings.setAppCacheEnabled(true);
settings.setCacheMode(WebSettings.LOAD_NO_CACHE);
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
......
......@@ -135,7 +135,7 @@ public class EnqueteWebViewActivity extends ABVContentViewActivity {
//noinspection deprecation(API18から非推奨になった。無視)
settings.setPluginState(PluginState.ON); // 「EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.」のエラー対応(あまり効果ない?)
settings.setDomStorageEnabled(true); // WebStorage有効化
settings.setAppCacheEnabled(false);
// settings.setAppCacheEnabled(false);
settings.setCacheMode(WebSettings.LOAD_NO_CACHE);
// webView.loadDataWithBaseURL("", url2, "text/html", "UTF-8", "");
//ターゲットバージョン30以上からデフォルトがfalseに設定されている問題対応
......
......@@ -124,7 +124,7 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
//noinspection deprecation(API18から非推奨になった。無視)
settings.setPluginState(PluginState.ON); // 「EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.」のエラー対応(あまり効果ない?)
settings.setDomStorageEnabled(true); // WebStorage有効化
settings.setAppCacheEnabled(false);
// settings.setAppCacheEnabled(false);
settings.setCacheMode(WebSettings.LOAD_NO_CACHE);
// webView.loadDataWithBaseURL("", url2, "text/html", "UTF-8", "");
settings.setAllowFileAccessFromFileURLs(true); //Android7利用で警告ダイヤログ表示問題対応
......
......@@ -111,7 +111,7 @@ public class OnlineHTMLWebViewActivity extends ABVContentViewActivity {
settings.setUseWideViewPort(true); // 画面の横幅にページの横幅を合わせる
settings.setPluginState(WebSettings.PluginState.ON); // 「EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.」のエラー対応(あまり効果ない?)
settings.setDomStorageEnabled(true); // WebStorage有効化
settings.setAppCacheEnabled(false);
// settings.setAppCacheEnabled(false);
settings.setCacheMode(WebSettings.LOAD_NO_CACHE);
settings.setAllowFileAccessFromFileURLs(true); //Android7利用で警告ダイヤログ表示問題対応
//ターゲットバージョン30以上からデフォルトがfalseに設定されている問題対応
......
......@@ -124,7 +124,7 @@ public class EnqueteLayout extends RelativeLayout {
//noinspection deprecation(API18から非推奨になった。無視)
settings.setPluginState(WebSettings.PluginState.ON); // 「EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.」のエラー対応(あまり効果ない?)
settings.setDomStorageEnabled(true); // WebStorage有効化
settings.setAppCacheEnabled(false);
// settings.setAppCacheEnabled(false);
settings.setCacheMode(WebSettings.LOAD_NO_CACHE);
}
//ターゲットバージョン30以上からデフォルトがfalseに設定されている問題対応
......
......@@ -104,7 +104,7 @@ public class OperationTaskLayout extends RelativeLayout {
//noinspection deprecation(API18から非推奨になった。無視)
settings.setPluginState(WebSettings.PluginState.ON); // 「EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.」のエラー対応(あまり効果ない?)
settings.setDomStorageEnabled(true); // WebStorage有効化
settings.setAppCacheEnabled(false);
// settings.setAppCacheEnabled(false);
settings.setCacheMode(WebSettings.LOAD_NO_CACHE);
// mWebView.loadDataWithBaseURL("", url2, "text/html", "UTF-8", "");
settings.setAllowFileAccessFromFileURLs(true); //Android7利用で警告ダイヤログ表示問題対応
......
......@@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.4'
classpath 'com.android.tools.build:gradle:7.4.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
......@@ -14,7 +14,7 @@ buildscript {
allprojects {
repositories {
jcenter()
google()
mavenCentral()
}
}
......@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
apply plugin: 'com.android.library'
android {
compileSdkVersion 31
compileSdkVersion 33
defaultConfig {
minSdkVersion 23
targetSdkVersion 31
targetSdkVersion 33
}
buildTypes {
......@@ -14,7 +14,8 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
lintOptions {
namespace 'org.xwalk.core'
lint {
abortOnError false
}
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.xwalk.core"
android:versionCode="1"
android:versionName="1.0" >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment