diff --git a/core-kotlin/src/main/java/com/amplifyframework/kotlin/core/Amplify.kt b/core-kotlin/src/main/java/com/amplifyframework/kotlin/core/Amplify.kt index a1aaf94c2..fe10e4d22 100644 --- a/core-kotlin/src/main/java/com/amplifyframework/kotlin/core/Amplify.kt +++ b/core-kotlin/src/main/java/com/amplifyframework/kotlin/core/Amplify.kt @@ -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() diff --git a/rxbindings/src/main/java/com/amplifyframework/rx/RxAmplify.java b/rxbindings/src/main/java/com/amplifyframework/rx/RxAmplify.java index b475f8894..3e153e9eb 100644 --- a/rxbindings/src/main/java/com/amplifyframework/rx/RxAmplify.java +++ b/rxbindings/src/main/java/com/amplifyframework/rx/RxAmplify.java @@ -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();