Skip to content

Commit 715e434

Browse files
authored
Update split install listener to high priority. (#2228)
1 parent c75caee commit 715e434

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

firebase-components/firebase-dynamic-module-support/firebase-dynamic-module-support.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ plugins {
1616
id 'firebase-library'
1717
}
1818

19+
group = 'com.google.firebase'
20+
1921
firebaseLibrary {
2022
testLab.enabled = false
2123
publishSources = true
@@ -43,5 +45,5 @@ android {
4345
dependencies {
4446
implementation project(':firebase-common')
4547
implementation project(':firebase-components')
46-
implementation 'com.google.android.play:core:1.8.2'
48+
implementation 'com.google.android.play:core:1.9.0'
4749
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2020 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
version=0.1.0

firebase-components/firebase-dynamic-module-support/src/main/java/com/google/firebase/dynamicloading/DynamicLoadingSupport.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
package com.google.firebase.dynamicloading;
1616

1717
import android.content.Context;
18-
import com.google.android.play.core.splitinstall.SplitInstallManagerFactory;
18+
import com.google.android.play.core.splitinstall.InternalFrameworkListenerExtensions;
1919
import com.google.android.play.core.splitinstall.SplitInstallSessionState;
2020
import com.google.android.play.core.splitinstall.SplitInstallStateUpdatedListener;
2121
import com.google.android.play.core.splitinstall.model.SplitInstallSessionStatus;
@@ -26,9 +26,7 @@ class DynamicLoadingSupport implements SplitInstallStateUpdatedListener {
2626

2727
DynamicLoadingSupport(Context applicationContext, ComponentLoader loader) {
2828
this.loader = loader;
29-
// TODO(vkryachko): make sure this listener runs before any developers' listeners.
30-
// TODO(vkryachko): we should probably postpone this via Handler#post(Runnable).
31-
SplitInstallManagerFactory.create(applicationContext).registerListener(this);
29+
InternalFrameworkListenerExtensions.registerFrameworkListener(applicationContext, this);
3230
}
3331

3432
@Override

0 commit comments

Comments
 (0)