Skip to content

Commit d4c5173

Browse files
committed
Metro hints
Don't include generated Metro hints in the API dump. We exclude these hints for kotlin-inject as well, because they don't provide any value.
1 parent 498515c commit d4c5173

File tree

7 files changed

+2
-49
lines changed

7 files changed

+2
-49
lines changed

buildSrc/src/main/kotlin/software/amazon/app/platform/gradle/buildsrc/SdkPlugin.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ internal object SdkPlugin {
6464

6565
// These packages only contain generated code that is picked up by compiler plugins.
6666
// They don't need to be part of the API dumps.
67-
apiValidation.ignoredPackages += setOf("app.platform.inject", "amazon.lastmile.inject")
67+
apiValidation.ignoredPackages +=
68+
setOf("app.platform.inject", "amazon.lastmile.inject", "metro.hints")
6869
}
6970

7071
private fun Project.configureExplicitApi() {

metro/impl/api/android/impl.api

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
public final class metro/hints/SoftwareAmazonAppPlatformPresenterMetroPresenterCoroutineScopeGraphAppScopeKt {
2-
public static final fun AppScope (Lsoftware/amazon/app/platform/presenter/metro/PresenterCoroutineScopeGraph;)V
3-
}
4-
5-
public final class metro/hints/SoftwareAmazonAppPlatformScopeCoroutineMetroAppScopeCoroutineScopeGraphAppScopeKt {
6-
public static final fun AppScope (Lsoftware/amazon/app/platform/scope/coroutine/metro/AppScopeCoroutineScopeGraph;)V
7-
}
8-
9-
public final class metro/hints/SoftwareAmazonAppPlatformScopeCoroutineMetroCoroutineDispatcherGraphAppScopeKt {
10-
public static final fun AppScope (Lsoftware/amazon/app/platform/scope/coroutine/metro/CoroutineDispatcherGraph;)V
11-
}
12-
131
public abstract interface class software/amazon/app/platform/presenter/metro/PresenterCoroutineScopeGraph {
142
public fun providePresenterCoroutineScope (Lkotlinx/coroutines/CoroutineScope;Lkotlinx/coroutines/CoroutineDispatcher;)Lkotlinx/coroutines/CoroutineScope;
153
}

metro/impl/api/desktop/impl.api

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
public final class metro/hints/SoftwareAmazonAppPlatformPresenterMetroPresenterCoroutineScopeGraphAppScopeKt {
2-
public static final fun AppScope (Lsoftware/amazon/app/platform/presenter/metro/PresenterCoroutineScopeGraph;)V
3-
}
4-
5-
public final class metro/hints/SoftwareAmazonAppPlatformScopeCoroutineMetroAppScopeCoroutineScopeGraphAppScopeKt {
6-
public static final fun AppScope (Lsoftware/amazon/app/platform/scope/coroutine/metro/AppScopeCoroutineScopeGraph;)V
7-
}
8-
9-
public final class metro/hints/SoftwareAmazonAppPlatformScopeCoroutineMetroCoroutineDispatcherGraphAppScopeKt {
10-
public static final fun AppScope (Lsoftware/amazon/app/platform/scope/coroutine/metro/CoroutineDispatcherGraph;)V
11-
}
12-
131
public abstract interface class software/amazon/app/platform/presenter/metro/PresenterCoroutineScopeGraph {
142
public fun providePresenterCoroutineScope (Lkotlinx/coroutines/CoroutineScope;Lkotlinx/coroutines/CoroutineDispatcher;)Lkotlinx/coroutines/CoroutineScope;
153
}

presenter-molecule/impl/api/android/impl.api

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
public final class metro/hints/SoftwareAmazonAppPlatformPresenterMoleculeAndroidMoleculeScopeFactoryGraphAppScopeKt {
2-
public static final fun AppScope (Lsoftware/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph;)V
3-
}
4-
5-
public final class metro/hints/SoftwareAmazonAppPlatformPresenterMoleculeBackgestureDefaultBackGestureDispatcherPresenterGraphAppScopeKt {
6-
public static final fun AppScope (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph;)V
7-
}
8-
91
public final class software/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactory : software/amazon/app/platform/presenter/molecule/MoleculeScopeFactory {
102
public static final field $stable I
113
public fun <init> (Lkotlin/jvm/functions/Function0;)V

presenter-molecule/impl/api/desktop/impl.api

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
public final class metro/hints/SoftwareAmazonAppPlatformPresenterMoleculeBackgestureDefaultBackGestureDispatcherPresenterGraphAppScopeKt {
2-
public static final fun AppScope (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph;)V
3-
}
4-
5-
public final class metro/hints/SoftwareAmazonAppPlatformPresenterMoleculeDesktopMoleculeScopeFactoryGraphAppScopeKt {
6-
public static final fun AppScope (Lsoftware/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph;)V
7-
}
8-
91
public final class software/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactory : software/amazon/app/platform/presenter/molecule/MoleculeScopeFactory {
102
public static final field $stable I
113
public fun <init> (Lkotlin/jvm/functions/Function0;)V

renderer/public/api/android/public.api

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
public final class metro/hints/SoftwareAmazonAppPlatformRendererRendererGraphFactoryAppScopeKt {
2-
public static final fun AppScope (Lsoftware/amazon/app/platform/renderer/RendererGraph$Factory;)V
3-
}
4-
51
public class software/amazon/app/platform/renderer/BaseRendererFactory : software/amazon/app/platform/renderer/RendererFactory {
62
public fun <init> (Lsoftware/amazon/app/platform/scope/RootScopeProvider;)V
73
public fun createRenderer (Lkotlin/reflect/KClass;)Lsoftware/amazon/app/platform/renderer/Renderer;

renderer/public/api/desktop/public.api

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
public final class metro/hints/SoftwareAmazonAppPlatformRendererRendererGraphFactoryAppScopeKt {
2-
public static final fun AppScope (Lsoftware/amazon/app/platform/renderer/RendererGraph$Factory;)V
3-
}
4-
51
public class software/amazon/app/platform/renderer/BaseRendererFactory : software/amazon/app/platform/renderer/RendererFactory {
62
public fun <init> (Lsoftware/amazon/app/platform/scope/RootScopeProvider;)V
73
public fun createRenderer (Lkotlin/reflect/KClass;)Lsoftware/amazon/app/platform/renderer/Renderer;

0 commit comments

Comments
 (0)