Skip to content

Commit 3819b9d

Browse files
committed
MoleculePresenter bindings for Metro
Provide default bindings for `MoleculePresenter` integrations for Metro. See #119
1 parent bd36ecf commit 3819b9d

File tree

12 files changed

+422
-77
lines changed

12 files changed

+422
-77
lines changed
Lines changed: 79 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,89 @@
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+
19
public final class software/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactory : software/amazon/app/platform/presenter/molecule/MoleculeScopeFactory {
210
public static final field $stable I
311
public fun <init> (Lkotlin/jvm/functions/Function0;)V
412
public fun createMoleculeScope ()Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScope;
513
public fun createMoleculeScopeFromCoroutineScope (Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScope;
614
}
715

8-
public final class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenter : software/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter {
16+
public abstract interface class software/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryComponent {
17+
public fun provideAndroidMoleculeScopeFactory (Lkotlin/jvm/functions/Function0;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
18+
}
19+
20+
public final class software/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryComponent$DefaultImpls {
21+
public static fun provideAndroidMoleculeScopeFactory (Lsoftware/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryComponent;Lkotlin/jvm/functions/Function0;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
22+
}
23+
24+
public abstract interface class software/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph {
25+
public fun provideAndroidMoleculeScopeFactory (Ldev/zacsweers/metro/Provider;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
26+
}
27+
28+
public abstract interface class software/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph$$$MetroContributionToMetroAppScope : software/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph {
29+
}
30+
31+
public final class software/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph$$$MetroContributionToMetroAppScope$DefaultImpls {
32+
public static fun provideAndroidMoleculeScopeFactory (Lsoftware/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph$$$MetroContributionToMetroAppScope;Ldev/zacsweers/metro/Provider;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
33+
}
34+
35+
public final class software/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph$DefaultImpls {
36+
public static fun provideAndroidMoleculeScopeFactory (Lsoftware/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph;Ldev/zacsweers/metro/Provider;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
37+
}
38+
39+
public final class software/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph$ProvideAndroidMoleculeScopeFactory$$MetroFactory : dev/zacsweers/metro/internal/Factory {
940
public static final field $stable I
10-
public fun <init> ()V
11-
public fun PredictiveBackHandlerPresenter (ZLkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V
12-
public fun getListenersCount ()Lkotlinx/coroutines/flow/StateFlow;
13-
public fun onPredictiveBack (Lkotlinx/coroutines/flow/Flow;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
41+
public static final field Companion Lsoftware/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph$ProvideAndroidMoleculeScopeFactory$$MetroFactory$Companion;
42+
public synthetic fun <init> (Lsoftware/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph;Ldev/zacsweers/metro/Provider;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
43+
public synthetic fun invoke ()Ljava/lang/Object;
44+
public final fun invoke ()Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
45+
public final fun mirrorFunction (Ldev/zacsweers/metro/Provider;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
46+
}
47+
48+
public final class software/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph$ProvideAndroidMoleculeScopeFactory$$MetroFactory$Companion {
49+
public final fun create (Lsoftware/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph;Ldev/zacsweers/metro/Provider;)Ldev/zacsweers/metro/internal/Factory;
50+
public final fun provideAndroidMoleculeScopeFactory (Lsoftware/amazon/app/platform/presenter/molecule/AndroidMoleculeScopeFactoryGraph;Ldev/zacsweers/metro/Provider;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
51+
}
52+
53+
public abstract interface class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterComponent {
54+
public fun provideDefaultBackGestureDispatcherPresenter ()Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
55+
}
56+
57+
public final class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterComponent$DefaultImpls {
58+
public static fun provideDefaultBackGestureDispatcherPresenter (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterComponent;)Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
59+
}
60+
61+
public abstract interface class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph {
62+
public fun provideDefaultBackGestureDispatcherPresenter ()Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
63+
}
64+
65+
public abstract interface class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$$$MetroContributionToMetroAppScope : software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph {
66+
}
67+
68+
public final class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$$$MetroContributionToMetroAppScope$DefaultImpls {
69+
public static fun provideDefaultBackGestureDispatcherPresenter (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$$$MetroContributionToMetroAppScope;)Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
70+
}
71+
72+
public final class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$DefaultImpls {
73+
public static fun provideDefaultBackGestureDispatcherPresenter (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph;)Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
74+
}
75+
76+
public final class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$ProvideDefaultBackGestureDispatcherPresenter$$MetroFactory : dev/zacsweers/metro/internal/Factory {
77+
public static final field $stable I
78+
public static final field Companion Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$ProvideDefaultBackGestureDispatcherPresenter$$MetroFactory$Companion;
79+
public synthetic fun <init> (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
80+
public synthetic fun invoke ()Ljava/lang/Object;
81+
public final fun invoke ()Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
82+
public final fun mirrorFunction ()Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
83+
}
84+
85+
public final class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$ProvideDefaultBackGestureDispatcherPresenter$$MetroFactory$Companion {
86+
public final fun create (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph;)Ldev/zacsweers/metro/internal/Factory;
87+
public final fun provideDefaultBackGestureDispatcherPresenter (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph;)Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
1488
}
1589

Lines changed: 79 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,89 @@
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+
19
public final class software/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactory : software/amazon/app/platform/presenter/molecule/MoleculeScopeFactory {
210
public static final field $stable I
311
public fun <init> (Lkotlin/jvm/functions/Function0;)V
412
public fun createMoleculeScope ()Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScope;
513
public fun createMoleculeScopeFromCoroutineScope (Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScope;
614
}
715

8-
public final class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenter : software/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter {
16+
public abstract interface class software/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryComponent {
17+
public fun provideDesktopMoleculeScopeFactory (Lkotlin/jvm/functions/Function0;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
18+
}
19+
20+
public final class software/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryComponent$DefaultImpls {
21+
public static fun provideDesktopMoleculeScopeFactory (Lsoftware/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryComponent;Lkotlin/jvm/functions/Function0;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
22+
}
23+
24+
public abstract interface class software/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph {
25+
public fun provideDesktopMoleculeScopeFactory (Ldev/zacsweers/metro/Provider;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
26+
}
27+
28+
public abstract interface class software/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph$$$MetroContributionToMetroAppScope : software/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph {
29+
}
30+
31+
public final class software/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph$$$MetroContributionToMetroAppScope$DefaultImpls {
32+
public static fun provideDesktopMoleculeScopeFactory (Lsoftware/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph$$$MetroContributionToMetroAppScope;Ldev/zacsweers/metro/Provider;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
33+
}
34+
35+
public final class software/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph$DefaultImpls {
36+
public static fun provideDesktopMoleculeScopeFactory (Lsoftware/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph;Ldev/zacsweers/metro/Provider;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
37+
}
38+
39+
public final class software/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph$ProvideDesktopMoleculeScopeFactory$$MetroFactory : dev/zacsweers/metro/internal/Factory {
940
public static final field $stable I
10-
public fun <init> ()V
11-
public fun PredictiveBackHandlerPresenter (ZLkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V
12-
public fun getListenersCount ()Lkotlinx/coroutines/flow/StateFlow;
13-
public fun onPredictiveBack (Lkotlinx/coroutines/flow/Flow;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
41+
public static final field Companion Lsoftware/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph$ProvideDesktopMoleculeScopeFactory$$MetroFactory$Companion;
42+
public synthetic fun <init> (Lsoftware/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph;Ldev/zacsweers/metro/Provider;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
43+
public synthetic fun invoke ()Ljava/lang/Object;
44+
public final fun invoke ()Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
45+
public final fun mirrorFunction (Ldev/zacsweers/metro/Provider;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
46+
}
47+
48+
public final class software/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph$ProvideDesktopMoleculeScopeFactory$$MetroFactory$Companion {
49+
public final fun create (Lsoftware/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph;Ldev/zacsweers/metro/Provider;)Ldev/zacsweers/metro/internal/Factory;
50+
public final fun provideDesktopMoleculeScopeFactory (Lsoftware/amazon/app/platform/presenter/molecule/DesktopMoleculeScopeFactoryGraph;Ldev/zacsweers/metro/Provider;)Lsoftware/amazon/app/platform/presenter/molecule/MoleculeScopeFactory;
51+
}
52+
53+
public abstract interface class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterComponent {
54+
public fun provideDefaultBackGestureDispatcherPresenter ()Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
55+
}
56+
57+
public final class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterComponent$DefaultImpls {
58+
public static fun provideDefaultBackGestureDispatcherPresenter (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterComponent;)Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
59+
}
60+
61+
public abstract interface class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph {
62+
public fun provideDefaultBackGestureDispatcherPresenter ()Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
63+
}
64+
65+
public abstract interface class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$$$MetroContributionToMetroAppScope : software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph {
66+
}
67+
68+
public final class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$$$MetroContributionToMetroAppScope$DefaultImpls {
69+
public static fun provideDefaultBackGestureDispatcherPresenter (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$$$MetroContributionToMetroAppScope;)Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
70+
}
71+
72+
public final class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$DefaultImpls {
73+
public static fun provideDefaultBackGestureDispatcherPresenter (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph;)Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
74+
}
75+
76+
public final class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$ProvideDefaultBackGestureDispatcherPresenter$$MetroFactory : dev/zacsweers/metro/internal/Factory {
77+
public static final field $stable I
78+
public static final field Companion Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$ProvideDefaultBackGestureDispatcherPresenter$$MetroFactory$Companion;
79+
public synthetic fun <init> (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
80+
public synthetic fun invoke ()Ljava/lang/Object;
81+
public final fun invoke ()Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
82+
public final fun mirrorFunction ()Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
83+
}
84+
85+
public final class software/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph$ProvideDefaultBackGestureDispatcherPresenter$$MetroFactory$Companion {
86+
public final fun create (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph;)Ldev/zacsweers/metro/internal/Factory;
87+
public final fun provideDefaultBackGestureDispatcherPresenter (Lsoftware/amazon/app/platform/presenter/molecule/backgesture/DefaultBackGestureDispatcherPresenterGraph;)Lsoftware/amazon/app/platform/presenter/molecule/backgesture/BackGestureDispatcherPresenter;
1488
}
1589

presenter-molecule/impl/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44

55
appPlatformBuildSrc {
66
enableKotlinInject true
7+
enableMetro true
78
enableMolecule true
89
enablePublishing true
910

0 commit comments

Comments
 (0)