From dac9db97fe72db8fbaa23860e48908f42afd77c9 Mon Sep 17 00:00:00 2001 From: tjroach Date: Wed, 15 May 2024 16:15:03 -0400 Subject: [PATCH] Add missing JvmStatic annotations --- aws-api/api/aws-api.api | 8 ++++---- .../api/graphql/model/ModelSubscription.kt | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/aws-api/api/aws-api.api b/aws-api/api/aws-api.api index 48776670f9..bfd34be952 100644 --- a/aws-api/api/aws-api.api +++ b/aws-api/api/aws-api.api @@ -262,13 +262,13 @@ public final class com/amplifyframework/api/graphql/model/ModelQuery { public final class com/amplifyframework/api/graphql/model/ModelSubscription { public static final field INSTANCE Lcom/amplifyframework/api/graphql/model/ModelSubscription; - public final fun of (Ljava/lang/Class;Lcom/amplifyframework/api/graphql/SubscriptionType;)Lcom/amplifyframework/api/graphql/GraphQLRequest; - public final fun of (Ljava/lang/Class;Lcom/amplifyframework/api/graphql/SubscriptionType;Lkotlin/jvm/functions/Function1;)Lcom/amplifyframework/api/graphql/GraphQLRequest; + public static final fun of (Ljava/lang/Class;Lcom/amplifyframework/api/graphql/SubscriptionType;)Lcom/amplifyframework/api/graphql/GraphQLRequest; + public static final fun of (Ljava/lang/Class;Lcom/amplifyframework/api/graphql/SubscriptionType;Lkotlin/jvm/functions/Function1;)Lcom/amplifyframework/api/graphql/GraphQLRequest; public static final fun onCreate (Ljava/lang/Class;)Lcom/amplifyframework/api/graphql/GraphQLRequest; public static final fun onCreate (Ljava/lang/Class;Lkotlin/jvm/functions/Function1;)Lcom/amplifyframework/api/graphql/GraphQLRequest; - public final fun onDelete (Ljava/lang/Class;)Lcom/amplifyframework/api/graphql/GraphQLRequest; + public static final fun onDelete (Ljava/lang/Class;)Lcom/amplifyframework/api/graphql/GraphQLRequest; public static final fun onDelete (Ljava/lang/Class;Lkotlin/jvm/functions/Function1;)Lcom/amplifyframework/api/graphql/GraphQLRequest; - public final fun onUpdate (Ljava/lang/Class;)Lcom/amplifyframework/api/graphql/GraphQLRequest; + public static final fun onUpdate (Ljava/lang/Class;)Lcom/amplifyframework/api/graphql/GraphQLRequest; public static final fun onUpdate (Ljava/lang/Class;Lkotlin/jvm/functions/Function1;)Lcom/amplifyframework/api/graphql/GraphQLRequest; } diff --git a/aws-api/src/main/java/com/amplifyframework/api/graphql/model/ModelSubscription.kt b/aws-api/src/main/java/com/amplifyframework/api/graphql/model/ModelSubscription.kt index c5d883c0e7..b897bf4b7f 100644 --- a/aws-api/src/main/java/com/amplifyframework/api/graphql/model/ModelSubscription.kt +++ b/aws-api/src/main/java/com/amplifyframework/api/graphql/model/ModelSubscription.kt @@ -33,6 +33,7 @@ object ModelSubscription { * @param the concrete type of the model. * @return a valid [GraphQLRequest] instance. */ + @JvmStatic fun of( modelType: Class, type: SubscriptionType, @@ -49,6 +50,7 @@ object ModelSubscription { * @param

the concrete model path for the M model type * @return a valid [GraphQLRequest] instance. */ + @JvmStatic fun > of( modelType: Class, type: SubscriptionType, @@ -93,6 +95,7 @@ object ModelSubscription { * @return a valid [GraphQLRequest] instance. * @see .of */ + @JvmStatic fun onDelete(modelType: Class): GraphQLRequest { return of(modelType, SubscriptionType.ON_DELETE) } @@ -121,6 +124,7 @@ object ModelSubscription { * @return a valid [GraphQLRequest] instance. * @see .of */ + @JvmStatic fun onUpdate(modelType: Class): GraphQLRequest { return of(modelType, SubscriptionType.ON_UPDATE) }