Skip to content

Commit

Permalink
fix(analytics): Fix accessing the Analytics category from RxAmplify o…
Browse files Browse the repository at this point in the history
…r Kotlin Facade (#2944)
  • Loading branch information
mattcreaser authored Nov 15, 2024
1 parent d198fc5 commit 7199b84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ import com.amplifyframework.logging.LoggingCategory
@Suppress("unused")
class Amplify {
companion object {
val Analytics = AnalyticsCategory()
val Analytics: AnalyticsCategory = delegate.Analytics
val API = KotlinApiFacade()
val Auth = KotlinAuthFacade()
val Geo = KotlinGeoFacade()
val Logging = LoggingCategory()
val Logging: LoggingCategory = delegate.Logging
val Storage = KotlinStorageFacade()
val Hub = KotlinHubFacade()
val DataStore = KotlinDataStoreFacade()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public final class RxAmplify {
private RxAmplify() {}

// Breaking the rules, here. Don't look.
@SuppressWarnings({"checkstyle:all"}) public static final AnalyticsCategory Analytics = new AnalyticsCategory();
@SuppressWarnings({"checkstyle:all"}) public static final AnalyticsCategory Analytics = Amplify.Analytics;
@SuppressWarnings({"checkstyle:all"}) public static final RxApiCategoryBehavior API = new RxApiBinding();
@SuppressWarnings({"checkstyle:all"}) public static final RxAuthCategoryBehavior Auth = new RxAuthBinding();
@SuppressWarnings({"checkstyle:all"}) public static final LoggingCategory Logging = new LoggingCategory();
@SuppressWarnings({"checkstyle:all"}) public static final LoggingCategory Logging = Amplify.Logging;
@SuppressWarnings({"checkstyle:all"}) public static final RxStorageCategoryBehavior Storage = new RxStorageBinding();
@SuppressWarnings({"checkstyle:all"}) public static final RxHubCategoryBehavior Hub = new RxHubBinding();
@SuppressWarnings({"checkstyle:all"}) public static final RxDataStoreCategoryBehavior DataStore = new RxDataStoreBinding();
Expand Down

0 comments on commit 7199b84

Please sign in to comment.