Browse Source

@自优化@laijj@适配AS2021.1.1,targetSdk升级到26,去掉RePlugin的所有依赖

赖骏劼 3 years ago
parent
commit
c69a8f55ae

+ 2 - 2
superapp-client/build.gradle

@ -8,8 +8,8 @@ buildscript {
8 8
        }
9 9
    }
10 10
    dependencies {
11
        classpath 'com.android.tools.build:gradle:3.1.0'
12
        classpath "com.qihoo360.replugin:replugin-host-gradle:2.3.1"
11
        classpath 'com.android.tools.build:gradle:3.5.0'
12
        //classpath "com.qihoo360.replugin:replugin-host-gradle:2.3.1"
13 13
    }
14 14
}
15 15

+ 1 - 1
superapp-client/ipu-mobile-common/build.gradle

@ -25,5 +25,5 @@ android {
25 25
}
26 26
27 27
dependencies {
28
    compile fileTree(include: ['*.jar'], dir: 'libs')
28
    api fileTree(include: ['*.jar'], dir: 'libs')
29 29
}

+ 6 - 6
superapp-client/superappclient/build.gradle

@ -6,7 +6,7 @@ android {
6 6
    defaultConfig {
7 7
        applicationId "com.ai.ipu.superapp"
8 8
        minSdkVersion 16
9
        targetSdkVersion 23
9
        targetSdkVersion 26
10 10
        multiDexEnabled = true
11 11
        versionCode = 3
12 12
        versionName = "1.0"
@ -39,10 +39,10 @@ android {
39 39
    }
40 40
}
41 41
42
apply plugin: 'replugin-host-gradle'
43
repluginHostConfig {
44
    useAppCompat = true
45
}
42
//apply plugin: 'replugin-host-gradle'
43
//repluginHostConfig {
44
//    useAppCompat = true
45
//}
46 46
47 47
dependencies {
48 48
    implementation(name: 'ipu-mobile-framework', ext: 'aar')
@ -59,5 +59,5 @@ dependencies {
59 59
    implementation(name:'ipu-push-jpush-1.0', ext:'aar')
60 60
    implementation(name:'ipu-customcamera-1.0', ext:'aar')
61 61
    implementation 'com.android.support:appcompat-v7:23.0.1'
62
    implementation 'com.qihoo360.replugin:replugin-host-lib:2.3.1'
62
    //implementation 'com.qihoo360.replugin:replugin-host-lib:2.3.1'
63 63
}

+ 7 - 8
superapp-client/superappclient/src/main/assets/mobile-config.xml

@ -1,14 +1,14 @@
1 1
<?xml version="1.0" encoding="utf-8"?>
2 2
<configs>
3 3
    <!-- 请求主机名或请求地址。包括服务器的ip地址和端口 -->
4
<!--	<config name="request_host" value="http://www.aiipu.com:8083"/>-->
5
    <config name="request_host" value="http://121.42.183.206:9010" />
6
	<!-- <config name="request_host" value="http://10.13.10.57:8080"/> -->
7
	<!-- 必须。10.0.2.2为Android模拟器的保留ip地址。访问到本机电脑时使用 -->
8
	<!-- <config name="request_host" value="http://10.0.2.2:8080"/> -->
4
	<!--测试环境-->
5
	<config name="request_host" value="http://121.42.183.206:9010" />
6
	<!--生产环境-->
7
<!--	<config name="request_host" value="http://www.aiipu.com:18007"/>-->
8
	<!--演示环境-->
9
<!--	<config name="request_host" value="http://repro.aiipu.com:18007"/>-->
9 10
	<!-- 必须。容器应用名或请求根路径 -->
10
<!--	<config name="request_path" value="/superapp"/>-->
11
    <config name="request_path" value="/mobile" />
11
	<config name="request_path" value="/superapp"/>
12 12
	<!-- 必须。数据接口的servlet路径 -->
13 13
	<config name="request_servlet" value="/mobiledata"/>
14 14
	<!-- 非必须,默认应用名。sd卡上的应用根目录名字,解决应用中文名的问题 -->
@ -32,7 +32,6 @@
32 32
	<config name="check_md5_file" value=".js|.png"/>
33 33
    <!-- 修改字体 -->
34 34
    <config name="insertSnippet" value="true"/>
35
36 35
	<!-- RN页面动态调试开关,默认关闭 -->
37 36
	<config name="rn_dev_enable" value="true"/>
38 37
</configs>

+ 11 - 16
superapp-client/superappclient/src/main/java/com/ai/ipu/sa/App.java

@ -7,11 +7,6 @@ import android.util.Log;
7 7
8 8
import com.ai.ipu.mobile.dynamic.app.NativeMenuManager;
9 9
import com.ai.ipu.mobile.frame.IpuBasicApplication;
10
import com.qihoo360.mobilesafe.core.BuildConfig;
11
import com.qihoo360.replugin.RePlugin;
12
import com.qihoo360.replugin.RePluginCallbacks;
13
import com.qihoo360.replugin.RePluginConfig;
14
import com.qihoo360.replugin.RePluginEventCallbacks;
15 10
16 11
/**
17 12
 * Created by Administrator on 2016/12/5.
@ -21,32 +16,32 @@ public class App extends IpuBasicApplication {
21 16
    @Override
22 17
    public void onCreate() {
23 18
        super.onCreate();
24
        RePlugin.App.onCreate();
19
        //RePlugin.App.onCreate();
25 20
        NativeMenuManager.initPluginManager(this);
26 21
    }
27 22
28 23
    @Override
29 24
    protected void attachBaseContext(Context base) {
30 25
        super.attachBaseContext(base);
31
        RePlugin.App.attachBaseContext(this);
26
        //RePlugin.App.attachBaseContext(this);
32 27
    }
33 28
34 29
    @Override
35 30
    public void onLowMemory() {
36 31
        super.onLowMemory();
37
        RePlugin.App.onLowMemory();
32
        //RePlugin.App.onLowMemory();
38 33
    }
39 34
40 35
    @Override
41 36
    public void onTrimMemory(int level) {
42 37
        super.onTrimMemory(level);
43
        RePlugin.App.onTrimMemory(level);
38
        //RePlugin.App.onTrimMemory(level);
44 39
    }
45 40
46 41
    @Override
47 42
    public void onConfigurationChanged(Configuration newConfig) {
48 43
        super.onConfigurationChanged(newConfig);
49
        RePlugin.App.onConfigurationChanged(newConfig);
44
        //RePlugin.App.onConfigurationChanged(newConfig);
50 45
    }
51 46
52 47
    @Override
@ -54,10 +49,10 @@ public class App extends IpuBasicApplication {
54 49
        return super.createConfigurationContext(overrideConfiguration);
55 50
    }
56 51
57
    protected RePluginConfig createConfig() {
58
        RePluginConfig c = new RePluginConfig();
59
        // FIXME RePlugin默认会对安装的外置插件进行签名校验,这里先关掉,避免调试时出现签名错误
60
        c.setVerifySign(!BuildConfig.DEBUG);
61
        return new RePluginConfig();
62
    }
52
//    protected RePluginConfig createConfig() {
53
//        RePluginConfig c = new RePluginConfig();
54
//        // FIXME RePlugin默认会对安装的外置插件进行签名校验,这里先关掉,避免调试时出现签名错误
55
//        c.setVerifySign(!BuildConfig.DEBUG);
56
//        return new RePluginConfig();
57
//    }
63 58
}