File tree Expand file tree Collapse file tree 13 files changed +24
-19
lines changed
java/com/google/android/samples/dynamicfeatures
java/com/google/android/samples/dynamicfeatures/ondemand
java/com/google/android/samples/dynamicfeatures/ondemand
java/com/google/android/samples/dynamicfeatures/ondemand Expand file tree Collapse file tree 13 files changed +24
-19
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ android {
23
23
buildToolsVersion ' 28.0.0-rc1'
24
24
25
25
defaultConfig {
26
- applicationId " com.google.android.samples.dynamicapps .ondemand"
26
+ applicationId " com.google.android.samples.dynamicfeatures .ondemand"
27
27
minSdkVersion 21
28
28
targetSdkVersion 27
29
29
versionCode 1
Original file line number Diff line number Diff line change 16
16
-->
17
17
18
18
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
19
- package =" com.google.android.samples.dynamicapps " >
19
+ package =" com.google.android.samples.dynamicfeatures " >
20
20
21
21
<application android : name =" com.google.android.play.core.splitcompat.SplitCompatApplication"
22
22
android : allowBackup =" true"
25
25
android : roundIcon =" @mipmap/ic_launcher_round"
26
26
android : supportsRtl =" true"
27
27
android : theme =" @style/AppTheme" >
28
- <activity android : name =" .MainActivity" >
28
+ <activity android : name =" com.google.android.samples.dynamicfeatures .MainActivity" >
29
29
<intent-filter >
30
30
<action android : name =" android.intent.action.MAIN" />
31
31
<action android : name =" android.intent.action.VIEW" />
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- package com.google.android.samples.dynamicapps
17
+ package com.google.android.samples.dynamicfeatures
18
18
19
19
import android.content.Context
20
20
import android.content.Intent
@@ -35,7 +35,7 @@ import com.google.android.play.core.splitinstall.SplitInstallStateUpdatedListene
35
35
import com.google.android.play.core.splitinstall.model.SplitInstallSessionStatus
36
36
37
37
38
- private const val packageName = " com.google.android.samples.dynamicapps .ondemand"
38
+ private const val packageName = " com.google.android.samples.dynamicfeatures .ondemand"
39
39
40
40
private const val kotlinSampleClassname = " $packageName .KotlinSampleActivity"
41
41
@@ -70,6 +70,9 @@ class MainActivity : AppCompatActivity() {
70
70
}
71
71
72
72
SplitInstallSessionStatus .INSTALLING -> displayLoadingState(state, " Installing $name " )
73
+ SplitInstallSessionStatus .FAILED -> {
74
+ Log .e(TAG , " Error: ${state.errorCode()} for module ${state.moduleNames()} " )
75
+ }
73
76
}
74
77
}
75
78
}
@@ -282,5 +285,7 @@ class MainActivity : AppCompatActivity() {
282
285
283
286
fun Context.toastAndLog (text : String ) {
284
287
Toast .makeText(this , text, Toast .LENGTH_LONG ).show()
285
- Log .d(" DynamicFeatures" , text)
286
- }
288
+ Log .d(TAG , text)
289
+ }
290
+
291
+ private const val TAG = " DynamicFeatures"
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ buildscript {
23
23
jcenter()
24
24
}
25
25
dependencies {
26
- classpath ' com.android.tools.build:gradle:3.2.0-alpha14 '
26
+ classpath ' com.android.tools.build:gradle:3.2.0-alpha15 '
27
27
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
28
28
29
29
// NOTE: Do not place your application dependencies here; they belong
Original file line number Diff line number Diff line change 18
18
<!-- This feature module only contains a single assets file relevant to the Android app. -->
19
19
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
20
20
xmlns : dist =" http://schemas.android.com/apk/distribution"
21
- package =" com.google.android.samples.dynamicapps .ondemand"
21
+ package =" com.google.android.samples.dynamicfeatures .ondemand"
22
22
split =" assets" >
23
23
24
24
<dist : module
Original file line number Diff line number Diff line change 17
17
18
18
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
19
19
xmlns : dist =" http://schemas.android.com/apk/distribution"
20
- package =" com.google.android.samples.dynamicapps .ondemand"
20
+ package =" com.google.android.samples.dynamicfeatures .ondemand"
21
21
split =" java" >
22
22
23
23
<dist : module
27
27
</dist : module >
28
28
29
29
<application >
30
- <activity android : name =" .JavaSampleActivity" >
30
+ <activity android : name =" com.google.android.samples.dynamicfeatures.ondemand .JavaSampleActivity" >
31
31
<intent-filter >
32
32
<action android : name =" android.intent.action.VIEW" />
33
33
</intent-filter >
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- package com .google .android .samples .dynamicapps .ondemand ;
17
+ package com .google .android .samples .dynamicfeatures .ondemand ;
18
18
19
19
import android .os .Bundle ;
20
20
import android .support .annotation .Nullable ;
Original file line number Diff line number Diff line change 17
17
18
18
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
19
19
xmlns : dist =" http://schemas.android.com/apk/distribution"
20
- package =" com.google.android.samples.dynamicapps .ondemand"
20
+ package =" com.google.android.samples.dynamicfeatures .ondemand"
21
21
split =" kotlin" >
22
22
23
23
<dist : module
27
27
</dist : module >
28
28
29
29
<application >
30
- <activity android : name =" .KotlinSampleActivity" >
30
+ <activity android : name =" com.google.android.samples.dynamicfeatures.ondemand .KotlinSampleActivity" >
31
31
<intent-filter >
32
32
<action android : name =" android.intent.action.VIEW" />
33
33
</intent-filter >
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- package com.google.android.samples.dynamicapps .ondemand
17
+ package com.google.android.samples.dynamicfeatures .ondemand
18
18
19
19
import android.os.Bundle
20
20
import android.support.v7.app.AppCompatActivity
Original file line number Diff line number Diff line change 17
17
18
18
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
19
19
xmlns : dist =" http://schemas.android.com/apk/distribution"
20
- package =" com.google.android.samples.dynamicapps .ondemand"
20
+ package =" com.google.android.samples.dynamicfeatures .ondemand"
21
21
split =" native" >
22
22
23
23
<dist : module
27
27
</dist : module >
28
28
29
29
<application >
30
- <activity android : name =" .NativeSampleActivity" >
30
+ <activity android : name =" com.google.android.samples.dynamicfeatures.ondemand .NativeSampleActivity" >
31
31
<intent-filter >
32
32
<action android : name =" android.intent.action.VIEW" />
33
33
</intent-filter >
Original file line number Diff line number Diff line change 24
24
* app/src/main/java/com/example/kotlin/KotlinJni.kt
25
25
*/
26
26
JNIEXPORT jstring JNICALL
27
- Java_com_google_android_samples_dynamicapps_ondemand_NativeSampleActivity_stringFromJNI ( JNIEnv * env ,
27
+ Java_com_google_android_samples_dynamicfeatures_ondemand_NativeSampleActivity_stringFromJNI ( JNIEnv * env ,
28
28
jobject thiz )
29
29
{
30
30
#if defined(__arm__ )
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- package com.google.android.samples.dynamicapps .ondemand
17
+ package com.google.android.samples.dynamicfeatures .ondemand
18
18
19
19
import android.support.v7.app.AppCompatActivity
20
20
import android.os.Bundle
You can’t perform that action at this time.
0 commit comments