Skip to content

Commit

Permalink
simplify StartupUnit
Browse files Browse the repository at this point in the history
94ef23d768ffa6986c2274a0443f25abb005b75d
  • Loading branch information
alexklints committed Apr 25, 2024
1 parent a52bc88 commit 2ef9e43
Show file tree
Hide file tree
Showing 22 changed files with 1,515 additions and 1,511 deletions.
18 changes: 10 additions & 8 deletions .mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,8 @@
"analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupResultListener.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupResultListener.java",
"analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupState.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupState.kt",
"analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupStateModel.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupStateModel.java",
"analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupUnit.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupUnit.java",
"analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupUnit.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupUnit.kt",
"analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupUnitComponents.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupUnitComponents.kt",
"analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupUpdateConfig.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/main/java/io/appmetrica/analytics/impl/startup/StartupUpdateConfig.kt",
"analytics/src/main/java/io/appmetrica/analytics/impl/startup/StatSending.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/main/java/io/appmetrica/analytics/impl/startup/StatSending.java",
"analytics/src/main/java/io/appmetrica/analytics/impl/startup/executor/ComponentStartupExecutorFactory.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/main/java/io/appmetrica/analytics/impl/startup/executor/ComponentStartupExecutorFactory.java",
Expand Down Expand Up @@ -1835,13 +1836,14 @@
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupStateModelTest.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupStateModelTest.java",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupStateStorageTest.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupStateStorageTest.kt",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupStateTest.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupStateTest.kt",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitBaseTest.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitBaseTest.java",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitClidsFromStartupTest.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitClidsFromStartupTest.java",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitGeneralTest.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitGeneralTest.java",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitIdentifiersGeneratingTest.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitIdentifiersGeneratingTest.java",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitIsStartupRequiredTest.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitIsStartupRequiredTest.java",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitListenerNotificationTest.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitListenerNotificationTest.java",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitStartupDidNotOverrideClidsTest.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitStartupDidNotOverrideClidsTest.java",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitBaseTest.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitBaseTest.kt",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitClidsFromStartupTest.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitClidsFromStartupTest.kt",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitComponentsTest.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitComponentsTest.kt",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitGeneralTest.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitGeneralTest.kt",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitIdentifiersGeneratingTest.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitIdentifiersGeneratingTest.kt",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitIsStartupRequiredTest.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitIsStartupRequiredTest.kt",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitListenerNotificationTest.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitListenerNotificationTest.kt",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitStartupDidNotOverrideClidsTest.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/StartupUnitStartupDidNotOverrideClidsTest.kt",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/executor/ExecutorFactoryTest.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/executor/ExecutorFactoryTest.java",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/executor/RegularStartupExecutorTest.kt":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/executor/RegularStartupExecutorTest.kt",
"analytics/src/test/java/io/appmetrica/analytics/impl/startup/executor/StubbedStartupExecutorTest.java":"mobile/metrika/android/appmetrica/appmetrica-sdk/analytics/src/test/java/io/appmetrica/analytics/impl/startup/executor/StubbedStartupExecutorTest.java",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,16 @@ StartupUnit createStartupUnit(@NonNull Context context,
@NonNull ComponentId componentId,
@NonNull StartupRequestConfig.Arguments arguments) {
YLogger.d("%s createStartupUnit for component %s", TAG, componentId);
return new StartupUnit(
StartupUnit startupUnit = new StartupUnit(
new StartupUnitComponents(
context,
componentId.getPackage(),
arguments,
mResultListener
)
);
startupUnit.init();
return startupUnit;
}

public void registerStartupListener(@NonNull ComponentId componentId,
Expand Down
Loading

0 comments on commit 2ef9e43

Please sign in to comment.