Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): Add missing JvmStatic annotations #2823

Merged
merged 3 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions aws-api/api/aws-api.api
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ object ModelSubscription {
* @param <M> the concrete type of the model.
* @return a valid [GraphQLRequest] instance.
</M> */
@JvmStatic
fun <M : Model> of(
modelType: Class<M>,
type: SubscriptionType,
Expand All @@ -49,6 +50,7 @@ object ModelSubscription {
* @param <P> the concrete model path for the M model type
* @return a valid [GraphQLRequest] instance.
</M> */
@JvmStatic
fun <M : Model, P : ModelPath<M>> of(
modelType: Class<M>,
type: SubscriptionType,
Expand Down Expand Up @@ -93,6 +95,7 @@ object ModelSubscription {
* @return a valid [GraphQLRequest] instance.
* @see .of
</M> */
@JvmStatic
fun <M : Model> onDelete(modelType: Class<M>): GraphQLRequest<M> {
return of(modelType, SubscriptionType.ON_DELETE)
}
Expand Down Expand Up @@ -121,6 +124,7 @@ object ModelSubscription {
* @return a valid [GraphQLRequest] instance.
* @see .of
</M> */
@JvmStatic
fun <M : Model> onUpdate(modelType: Class<M>): GraphQLRequest<M> {
return of(modelType, SubscriptionType.ON_UPDATE)
}
Expand Down
Loading