version:1.6

fix:修复浏览器更新
add:
This commit is contained in:
2021-12-10 14:29:55 +08:00
parent 34fa9fcdb7
commit 5f3b3f51a0
6 changed files with 35 additions and 21 deletions

View File

@@ -9,19 +9,20 @@ def releaseTime() {
} }
android { android {
gradle.projectsEvaluated { //Android Studio 4.0 之后使用这个但是会把jar打包进apk
tasks.withType(JavaCompile) { // gradle.projectsEvaluated {
Set<File> fileSet = options.bootstrapClasspath.getFiles() // tasks.withType(JavaCompile) {
List<File> newFileList = new ArrayList<>(); // Set<File> fileSet = options.bootstrapClasspath.getFiles()
//JAVA语法可连续调用输入参数建议为相对路径 // List<File> newFileList = new ArrayList<>();
newFileList.add(new File("libs/framework.jar")) // //JAVA语法可连续调用输入参数建议为相对路径
//最后将原始参数添加 // newFileList.add(new File("libs/framework.jar"))
newFileList.addAll(fileSet) // //最后将原始参数添加
options.bootstrapClasspath = files( // newFileList.addAll(fileSet)
newFileList.toArray() // options.bootstrapClasspath = files(
) // newFileList.toArray()
} // )
} // }
// }
compileSdkVersion 29 compileSdkVersion 29
buildToolsVersion "30.0.3" buildToolsVersion "30.0.3"
@@ -58,8 +59,8 @@ android {
//新平台正式 //新平台正式
newly { newly {
flavorDimensions "default" flavorDimensions "default"
versionCode 5 versionCode 7
versionName "1.4" versionName "1.6"
/*********************************极光推送************************************/ /*********************************极光推送************************************/
manifestPlaceholders = [ manifestPlaceholders = [
JPUSH_PKGNAME: "com.aoleyun.sn", JPUSH_PKGNAME: "com.aoleyun.sn",
@@ -280,7 +281,7 @@ android {
} }
dependencies { dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"]) // implementation fileTree(dir: "libs", include: ["*.jar"])
compileOnly files('libs/framework.jar') compileOnly files('libs/framework.jar')
implementation 'androidx.appcompat:appcompat:1.3.1' implementation 'androidx.appcompat:appcompat:1.3.1'

View File

@@ -101,7 +101,19 @@ public class SplashActivity extends AppCompatActivity {
} }
private void debugTest() { private void debugTest() {
if (!BuildConfig.DEBUG) return; // if (!BuildConfig.DEBUG) return;
// File file = new File("/system/media/bootanimation2.zip");
// if (file.exists()){
// Log.e(TAG, "debugTest: "+"file.exists" );
// }else {
// Log.e(TAG, "debugTest: "+"file not exists" );
// }
// if (file.delete()){
// Log.e(TAG, "debugTest: "+"file.delete" );
// }else {
// Log.e(TAG, "debugTest: "+"file delete failed" );
// }
// Utils.getHardware(this); // Utils.getHardware(this);
// setWebView(); // setWebView();
// hideStatusBar(); // hideStatusBar();
@@ -111,7 +123,7 @@ public class SplashActivity extends AppCompatActivity {
String only_jgy_shortcut_list = Settings.System.getString(getContentResolver(), JGYActions.ACTION_JGY_SHORTCUTLIST); String only_jgy_shortcut_list = Settings.System.getString(getContentResolver(), JGYActions.ACTION_JGY_SHORTCUTLIST);
Log.i(TAG, "debugTest: only_jgy_shortcut_list:" + only_jgy_shortcut_list); Log.i(TAG, "debugTest: only_jgy_shortcut_list:" + only_jgy_shortcut_list);
String qch_app_forbid = Settings.System.getString(getContentResolver(), "qch_app_forbid"); String qch_app_forbid = Settings.System.getString(getContentResolver(), "qch_app_forbid");
Settings.System.putString(getContentResolver(), "qch_app_forbid", qch_app_forbid + ",com.uiui.browser"); Settings.System.putString(getContentResolver(), "qch_app_forbid", qch_app_forbid + ",com.aoleyun.browser");
Log.e(TAG, "debugTest: qch_app_forbid:" + qch_app_forbid); Log.e(TAG, "debugTest: qch_app_forbid:" + qch_app_forbid);
Log.i(TAG, "debugTest: ip = " + JGYUtils.getInstance().getIPAddress()); Log.i(TAG, "debugTest: ip = " + JGYUtils.getInstance().getIPAddress());
Log.i(TAG, "debugTest: getPackage = " + Utils.getPackage()); Log.i(TAG, "debugTest: getPackage = " + Utils.getPackage());

View File

@@ -16,7 +16,7 @@ public class PackageNames {
public static final String APPSTORE = "com.aoleyun.appstore"; public static final String APPSTORE = "com.aoleyun.appstore";
public static final String DESKTOP = "com.aoleyun.os"; public static final String DESKTOP = "com.aoleyun.os";
public static final String NOTIFICATIONS = "com.aoleyun.info"; public static final String NOTIFICATIONS = "com.aoleyun.info";
public static final String BROWSER = "com.uiui.browser"; public static final String BROWSER = "com.aoleyun.browser";
public static final String APP_STORE_BOOTRECEIVER = "com.aoleyun.appstore.receiver.BootReceiver"; public static final String APP_STORE_BOOTRECEIVER = "com.aoleyun.appstore.receiver.BootReceiver";
} }

View File

@@ -767,7 +767,7 @@ public class ApkUtils {
this.add("com.aoleyun.sn"); this.add("com.aoleyun.sn");
this.add("com.aoleyun.info"); this.add("com.aoleyun.info");
this.add("com.aoleyun.os"); this.add("com.aoleyun.os");
this.add("com.uiui.browser"); this.add("com.aoleyun.browser");
}}; }};
//出厂自带的app //出厂自带的app

View File

@@ -931,6 +931,7 @@ public class JGYUtils {
this.add("com.uiuios.jgy1"); this.add("com.uiuios.jgy1");
this.add("com.uiuios.jgy2"); this.add("com.uiuios.jgy2");
this.add("com.tt.ttutils"); this.add("com.tt.ttutils");
this.add("com.aoleyun.browser");
this.add("com.uiui.browser"); this.add("com.uiui.browser");
this.add("com.android.uiuios"); this.add("com.android.uiuios");
this.add("com.aoleyun.os"); this.add("com.aoleyun.os");

View File

@@ -28,7 +28,7 @@ allprojects {
} }
gradle.projectsEvaluated { gradle.projectsEvaluated {
tasks.withType(JavaCompile) { tasks.withType(JavaCompile) {
options.compilerArgs.add('-Xbootclasspath/p:libs/framework.jar') options.compilerArgs.add('-Xbootclasspath/p:app/libs/framework.jar')
} }
} }
} }