Skip to content

Commit

Permalink
Changes order of parameters in configure
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed May 14, 2019
1 parent 9a4b251 commit d6e2e98
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -916,10 +916,10 @@ class Purchases @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE) intern
* @param appUserID Optional user identifier. Use this if your app has an account system.
* If `null` `[Purchases] will generate a unique identifier for the current device and persist
* it the SharedPreferences. This also affects the behavior of [restorePurchases].
* @param service Optional [ExecutorService] to use for the backend calls.
* @param observerMode Optional boolean set to FALSE by default. Set to TRUE if you are using your own
* subscription system and you want to use RevenueCat's backend only. If set to TRUE, you should be consuming
* transactions outside of the Purchases SDK.
* @param service Optional [ExecutorService] to use for the backend calls.
* @return An instantiated `[Purchases] object that has been set as a singleton.
*/
@JvmOverloads
Expand All @@ -928,8 +928,8 @@ class Purchases @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE) intern
context: Context,
apiKey: String,
appUserID: String? = null,
service: ExecutorService = createDefaultExecutor(),
observerMode: Boolean = false
observerMode: Boolean = false,
service: ExecutorService = createDefaultExecutor()
): Purchases {
if (!context.hasPermission(Manifest.permission.INTERNET))
throw IllegalArgumentException("Purchases requires INTERNET permission.")
Expand Down

0 comments on commit d6e2e98

Please sign in to comment.