Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug模式下,android 10后台打开跨apk的activity的问题 #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions cc-settings-demo.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ project.apply plugin: 'cc-register'
//project.dependencies.add('api', project(':cc')) //用最新版
project.dependencies.add('api', "com.billy.android:cc:2.1.6") //用最新版

android {
signingConfigs {
releaseconfig {
storeFile rootProject.file('cc.keystore')
storePassword 'cc-demo'
keyAlias 'cc-demo'
keyPassword 'cc-demo'
}
}
buildTypes {

debug {
minifyEnabled false
debuggable true
signingConfig signingConfigs.releaseconfig
}
}
}
dependencies {
//其它apply当前gradle文件的module统一添加对demo_base的依赖
if (project.name != 'demo_base'){
Expand Down
24 changes: 24 additions & 0 deletions demo/src/main/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.billy.cc.demo"
android:sharedUserId="com.billy.cc">

<application android:name=".MyApp"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.billy.cc.demo.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".lifecycle.LifecycleActivity" />

</application>

</manifest>
3 changes: 2 additions & 1 deletion demo_component_a/src/main/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.billy.cc.demo.component.a" >
package="com.billy.cc.demo.component.a"
android:sharedUserId="com.billy.cc" >

<application
android:name="debug.MyApp"
Expand Down
3 changes: 2 additions & 1 deletion demo_component_b/src/main/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.billy.cc.demo.component.b" >
package="com.billy.cc.demo.component.b"
android:sharedUserId="com.billy.cc" >

<application
android:name="debug.MyApp"
Expand Down
3 changes: 2 additions & 1 deletion demo_component_jsbridge/src/main/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.billy.cc.demo.component.jsbridge">
package="com.billy.cc.demo.component.jsbridge"
android:sharedUserId="com.billy.cc">

<application
android:name="debug.jsbridge.MyApp"
Expand Down
3 changes: 2 additions & 1 deletion demo_component_kt/src/main/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.billy.cc.demo.component.kt">
package="com.billy.cc.demo.component.kt"
android:sharedUserId="com.billy.cc">

<application
android:name="debug.kt.MyApp"
Expand Down