android-snapshot-publisher v2.0.0 Release Notes

Release Date: 2019-10-15 // over 4 years ago
  • ๐Ÿ”„ Changes

    Firebase app distribution migration

    ๐Ÿ—„ Google deprecated and migrated Fabric Craslytics Beta to Firebase app distribution.
    ๐Ÿ“š The documentation specifies the required changes to use the new tool.

    Migration:

    ๐Ÿ”„ Change plugin dependency setup:

    • ๐Ÿ”– Version 1x:

      buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } maven { url 'https://maven.fabric.io/public' } // Remove it } dependencies { classpath "com.xmartlabs:snapshot-publisher:1.0.4" // Replace version } }

    • ๐Ÿ”– Version 2x:

      buildscript { repositories { gradlePluginPortal() google() // Add it } dependencies { classpath "com.xmartlabs:snapshot-publisher:2.0.0" // Replace version } }

    ๐Ÿ”„ Change the previous fabric block to the new firebaseAppDistribution block:

    • ๐Ÿ”– Version 1x:

      snapshotPublisher { fabric { distributionEmails = "[email protected]" distributionGroupAliases = "tester-group" distributionNotifications = true // Must be deleted } // ...}

    • ๐Ÿ”– Version 2x:

      snapshotPublisher { firebaseAppDistribution { distributionEmails ="[email protected]" distributionGroupAliases = "tester-group" appId = null // New parameter serviceAccountCredentials = "/path/to/your-service-account-key.json" // new parameter } // ...}

    • appId: Your app's Firebase App ID.
      ๐Ÿ”Œ Required only if you don't have the google services gradle plugin installed.
      You can find the App ID in the google-services.json file or in the Firebase console on the General Settings page.
      ๐Ÿ— The value in your build.gradle file overrides the value output from the google-services gradle plugin.

    • serviceAccountCredentials: The path to your service account private key JSON file.
      ๐Ÿš€ To release to Firebase you must create a Google service account with Firebase Quality Admin role.
      If you don't have a service account, you can create one following this guide.

    ๐Ÿ’ฅ Breaking changes

    • ๐Ÿšš Fabric Craslytics Beta integration was removed
    • Google Play's service credential account file path was changed to a credential file path.

    Migration:

    • ๐Ÿ”– Version 1x:

      snapshotPublisher { googlePlay { serviceAccountCredentials = file("/path/to/your-service-account-key.json") } // ...}

    • ๐Ÿ”– version 2x:

      snapshotPublisher { googlePlay { serviceAccountCredentials = "/path/to/your-service-account-key.json" } // ...}