1.9.0.1 and Later

Changes

Moved features in seperate module

Some features were moved out in seperate libraries. That allows to skip not used features and its dependencies. For now Google Analytics, Google SignIn and Google Cloud Messaging are optional and has to be explicitly installed and configured.

Migration

Remove TapkeyServiceFactoryBuilder parameter

The TapkeyServiceFactory does not use Push Notifications by default anymore, so there is an API change on TapkeyServiceFactoryBuilder. The required gcmSenderId parameter was removed from TapkeyServiceFactoryBuilder:build()

...
         TapkeyServiceFactoryBuilder b =
                    // replace
                new TapkeyServiceFactoryBuilder("[YOUR_GCM_SENDER_ID]")
                // with
                new TapkeyServiceFactoryBuilder()
...

Configure Push Notification (OPTIONAL)

When the consuming app should not use Google Cloud Messaging skip this step.

For default, no Cloud Messaging is enabled. To keep using Google Cloud Messaging, there must be some code added.

Therefore add the module net.tpky:Tapkey.Gcmto the dependencies section of the build.gradle file:

...

dependencies {

    ...

    /*
     * Add Tapkey.MobileLib to dependencies
     */
    implementation 'net.tpky:Tapkey.MobileLib:x.x.x.x'

    /*
     * To use Google Cloud Messaging for push notification add Tapkey.Gcm to dependencies
     */
    implementation 'net.tpky:Tapkey.Gcm:x.x.x.x'

    ...

}

...

Then a CloudMessagingManagerImpl must be created and registered to TapkeyServiceFactoryBuilder;

        TapkeyServiceFactoryBuilder b =
                new TapkeyServiceFactoryBuilder()

                // Set the CloudMessagingManager to enable push notification via google cloud
                // messaging.
                //
                // The library net.tpky:Tapkey.Gcm must be loaded as dependency
                .setCloudMessagingManager(new CloudMessagingManagerImpl(this, "[YOUR_GCM_SENDER_ID]"))