From d3633cef60ab22cdb437552e70cfc8f16a2a787f Mon Sep 17 00:00:00 2001 From: RevenueCat Git Bot <72824662+RCGitBot@users.noreply.github.com> Date: Mon, 24 Jul 2023 22:09:01 +0200 Subject: [PATCH] [AUTOMATIC] Release/6.8.0 (#1170) **This is an automatic release.** ### New Features Introduced Custom Entitlements Computation mode. This is new library intended for apps that will do their own entitlement computation separate from RevenueCat. It's distributed as a separate artifact in Maven. Apps using this mode rely on webhooks to signal their backends to refresh entitlements with RevenueCat. See the [demo app for an example and usage instructions](https://github.com/RevenueCat/purchases-android/tree/main/examples/CustomEntitlementComputationSample). * Custom entitlements: add README and other improvements (#1167) via Andy Boedo (@aboedo) * Update Custom Entitlements Sample app (#1166) via Andy Boedo (@aboedo) * purchase coroutine (#1142) via Andy Boedo (@aboedo) * Add switchUser (#1156) via Cesar de la Vega (@vegaro) * CustomEntitlementsComputation: disable first listener callback when set (#1152) via Andy Boedo (@aboedo) * CustomEntitlementsComputation: Prevent posting subscriber attributes in post receipt (#1151) via Andy Boedo (@aboedo) * Fix `customEntitlementComputation` library deployment (#1169) via Toni Rico (@tonidero) * CustomEntitlementComputation: Configure method for customEntitlementComputation mode (#1168) via Toni Rico (@tonidero) * Add publish system for customEntitlementComputation package (#1149) via Cesar de la Vega (@vegaro) * Use purchase coroutine in CustomEntitlementComputationSample (#1162) via Cesar de la Vega (@vegaro) * Adds CustomEntitlementComputationSample (#1160) via Cesar de la Vega (@vegaro) * Fix tests in customEntitlementComputation after merges (#1161) via Toni Rico (@tonidero) * CustomEntitlementComputation: Remove custom entitlement computation flavor for amazon module (#1158) via Toni Rico (@tonidero) * CustomEntitlementComputation: Generate dokka docs only for defaults flavor (#1159) via Toni Rico (@tonidero) * CustomEntitlementComputation: Create different PurchasesConfiguration that requires an appUserId parameter (#1154) via Toni Rico (@tonidero) * CustomEntitlementComputation: New Purchases class (#1153) via Toni Rico (@tonidero) * CustomEntitlementComputation: Disable automatic cache refresh (#1157) via Toni Rico (@tonidero) * Add `customEntitlementComputation` flavor (#1147) via Toni Rico (@tonidero) * Make `customEntitlementComputation` singular (#1148) via Toni Rico (@tonidero) * Disable offline entitlements in custom entitlements computation mode (#1146) via Toni Rico (@tonidero) * Remove integration test flavor (#1143) via Toni Rico (@tonidero) * Add header to requests when in custom entitlement computation mode (#1145) via Toni Rico (@tonidero) * Add internal customEntitlementsComputation mode to app config (#1141) via Toni Rico (@tonidero) ### New Coroutines * `awaitPurchase` is available as a coroutine-friendly alternative to `purchase()`. (#1142) via Andy Boedo (@aboedo) ### Dependency Updates * Bump fastlane from 2.213.0 to 2.214.0 (#1140) via dependabot[bot] (@dependabot[bot]) ### Other changes * CI: make all Codecov jobs informational (#1155) via Cesar de la Vega (@vegaro) * Creates PurchasesOrchestrator (#1144) via Cesar de la Vega (@vegaro) --------- Co-authored-by: revenuecat-ops Co-authored-by: Andy Boedo --- .circleci/config.yml | 2 +- .version | 2 +- CHANGELOG.latest.md | 45 ++++++++++++++++-- CHANGELOG.md | 46 +++++++++++++++++++ docs/index.html | 2 +- gradle.properties | 2 +- library.gradle | 2 +- .../com/revenuecat/purchases/common/Config.kt | 2 +- 8 files changed, 94 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1ae2396ac..dbed71373 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -209,7 +209,7 @@ jobs: command: sudo pip install awscli - run: name: Deploy to S3 - command: aws s3 sync ~/project/docs/6.8.0-SNAPSHOT s3://purchases-docs/android/6.8.0-SNAPSHOT --delete + command: aws s3 sync ~/project/docs/6.8.0 s3://purchases-docs/android/6.8.0 --delete - run: name: Update index.html command: aws s3 cp ~/project/docs/index.html s3://purchases-docs/android/index.html diff --git a/.version b/.version index eaab157f0..e029aa99b 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -6.8.0-SNAPSHOT +6.8.0 diff --git a/CHANGELOG.latest.md b/CHANGELOG.latest.md index 9105a50db..c8ccc79e3 100644 --- a/CHANGELOG.latest.md +++ b/CHANGELOG.latest.md @@ -1,4 +1,43 @@ ### New Features -* Diagnostics: Add diagnostics for FEATURE_NOT_SUPPORTED error (#1137) via Mark Villacampa (@MarkVillacampa) -### Other Changes -* Trusted entitlements: Support post params hash header (#1136) via Toni Rico (@tonidero) + +Introduced Custom Entitlements Computation mode. + +This is new library intended for apps that will do their own entitlement computation separate from RevenueCat. It's distributed as a separate artifact in Maven. + +Apps using this mode rely on webhooks to signal their backends to refresh entitlements with RevenueCat. + +See the [demo app for an example and usage instructions](https://github.com/RevenueCat/purchases-android/tree/main/examples/CustomEntitlementComputationSample). + +* Custom entitlements: add README and other improvements (#1167) via Andy Boedo (@aboedo) +* Update Custom Entitlements Sample app (#1166) via Andy Boedo (@aboedo) +* purchase coroutine (#1142) via Andy Boedo (@aboedo) +* Add switchUser (#1156) via Cesar de la Vega (@vegaro) +* CustomEntitlementsComputation: disable first listener callback when set (#1152) via Andy Boedo (@aboedo) +* CustomEntitlementsComputation: Prevent posting subscriber attributes in post receipt (#1151) via Andy Boedo (@aboedo) +* Fix `customEntitlementComputation` library deployment (#1169) via Toni Rico (@tonidero) +* CustomEntitlementComputation: Configure method for customEntitlementComputation mode (#1168) via Toni Rico (@tonidero) +* Add publish system for customEntitlementComputation package (#1149) via Cesar de la Vega (@vegaro) +* Use purchase coroutine in CustomEntitlementComputationSample (#1162) via Cesar de la Vega (@vegaro) +* Adds CustomEntitlementComputationSample (#1160) via Cesar de la Vega (@vegaro) +* Fix tests in customEntitlementComputation after merges (#1161) via Toni Rico (@tonidero) +* CustomEntitlementComputation: Remove custom entitlement computation flavor for amazon module (#1158) via Toni Rico (@tonidero) +* CustomEntitlementComputation: Generate dokka docs only for defaults flavor (#1159) via Toni Rico (@tonidero) +* CustomEntitlementComputation: Create different PurchasesConfiguration that requires an appUserId parameter (#1154) via Toni Rico (@tonidero) +* CustomEntitlementComputation: New Purchases class (#1153) via Toni Rico (@tonidero) +* CustomEntitlementComputation: Disable automatic cache refresh (#1157) via Toni Rico (@tonidero) +* Add `customEntitlementComputation` flavor (#1147) via Toni Rico (@tonidero) +* Make `customEntitlementComputation` singular (#1148) via Toni Rico (@tonidero) +* Disable offline entitlements in custom entitlements computation mode (#1146) via Toni Rico (@tonidero) +* Remove integration test flavor (#1143) via Toni Rico (@tonidero) +* Add header to requests when in custom entitlement computation mode (#1145) via Toni Rico (@tonidero) +* Add internal customEntitlementsComputation mode to app config (#1141) via Toni Rico (@tonidero) + +### New Coroutines +* `awaitPurchase` is available as a coroutine-friendly alternative to `purchase()`. (#1142) via Andy Boedo (@aboedo) + +### Dependency Updates +* Bump fastlane from 2.213.0 to 2.214.0 (#1140) via dependabot[bot] (@dependabot[bot]) + +### Other changes +* CI: make all Codecov jobs informational (#1155) via Cesar de la Vega (@vegaro) +* Creates PurchasesOrchestrator (#1144) via Cesar de la Vega (@vegaro) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f50250a1..635bc1ef6 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,49 @@ +## 6.8.0 + +### New Features + +Introduced Custom Entitlements Computation mode. + +This is new library intended for apps that will do their own entitlement computation separate from RevenueCat. It's distributed as a separate artifact in Maven. + +Apps using this mode rely on webhooks to signal their backends to refresh entitlements with RevenueCat. + +See the [demo app for an example and usage instructions](https://github.com/RevenueCat/purchases-android/tree/main/examples/CustomEntitlementComputationSample). + +* Custom entitlements: add README and other improvements (#1167) via Andy Boedo (@aboedo) +* Update Custom Entitlements Sample app (#1166) via Andy Boedo (@aboedo) +* purchase coroutine (#1142) via Andy Boedo (@aboedo) +* Add switchUser (#1156) via Cesar de la Vega (@vegaro) +* CustomEntitlementsComputation: disable first listener callback when set (#1152) via Andy Boedo (@aboedo) +* CustomEntitlementsComputation: Prevent posting subscriber attributes in post receipt (#1151) via Andy Boedo (@aboedo) +* Fix `customEntitlementComputation` library deployment (#1169) via Toni Rico (@tonidero) +* CustomEntitlementComputation: Configure method for customEntitlementComputation mode (#1168) via Toni Rico (@tonidero) +* Add publish system for customEntitlementComputation package (#1149) via Cesar de la Vega (@vegaro) +* Use purchase coroutine in CustomEntitlementComputationSample (#1162) via Cesar de la Vega (@vegaro) +* Adds CustomEntitlementComputationSample (#1160) via Cesar de la Vega (@vegaro) +* Fix tests in customEntitlementComputation after merges (#1161) via Toni Rico (@tonidero) +* CustomEntitlementComputation: Remove custom entitlement computation flavor for amazon module (#1158) via Toni Rico (@tonidero) +* CustomEntitlementComputation: Generate dokka docs only for defaults flavor (#1159) via Toni Rico (@tonidero) +* CustomEntitlementComputation: Create different PurchasesConfiguration that requires an appUserId parameter (#1154) via Toni Rico (@tonidero) +* CustomEntitlementComputation: New Purchases class (#1153) via Toni Rico (@tonidero) +* CustomEntitlementComputation: Disable automatic cache refresh (#1157) via Toni Rico (@tonidero) +* Add `customEntitlementComputation` flavor (#1147) via Toni Rico (@tonidero) +* Make `customEntitlementComputation` singular (#1148) via Toni Rico (@tonidero) +* Disable offline entitlements in custom entitlements computation mode (#1146) via Toni Rico (@tonidero) +* Remove integration test flavor (#1143) via Toni Rico (@tonidero) +* Add header to requests when in custom entitlement computation mode (#1145) via Toni Rico (@tonidero) +* Add internal customEntitlementsComputation mode to app config (#1141) via Toni Rico (@tonidero) + +### New Coroutines +* `awaitPurchase` is available as a coroutine-friendly alternative to `purchase()`. (#1142) via Andy Boedo (@aboedo) + +### Dependency Updates +* Bump fastlane from 2.213.0 to 2.214.0 (#1140) via dependabot[bot] (@dependabot[bot]) + +### Other changes +* CI: make all Codecov jobs informational (#1155) via Cesar de la Vega (@vegaro) +* Creates PurchasesOrchestrator (#1144) via Cesar de la Vega (@vegaro) + ## 6.7.0 ### New Features * Diagnostics: Add diagnostics for FEATURE_NOT_SUPPORTED error (#1137) via Mark Villacampa (@MarkVillacampa) diff --git a/docs/index.html b/docs/index.html index f4049761b..029fd1e8c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,7 +1,7 @@ - + diff --git a/gradle.properties b/gradle.properties index b0b9ef17f..13361cbfa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ #Fri Mar 31 10:31:20 PDT 2023 GROUP=com.revenuecat.purchases -VERSION_NAME=6.8.0-SNAPSHOT +VERSION_NAME=6.8.0 POM_DESCRIPTION=Mobile subscriptions in hours, not months. POM_URL=https://github.com/RevenueCat/purchases-android diff --git a/library.gradle b/library.gradle index 16cf5c6b7..ad7595ad1 100644 --- a/library.gradle +++ b/library.gradle @@ -16,7 +16,7 @@ android { minSdkVersion obtainMinSdkVersion() targetSdkVersion compileVersion versionCode 1 - versionName "6.8.0-SNAPSHOT" + versionName "6.8.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } diff --git a/purchases/src/main/kotlin/com/revenuecat/purchases/common/Config.kt b/purchases/src/main/kotlin/com/revenuecat/purchases/common/Config.kt index c38f09a35..e15c82973 100644 --- a/purchases/src/main/kotlin/com/revenuecat/purchases/common/Config.kt +++ b/purchases/src/main/kotlin/com/revenuecat/purchases/common/Config.kt @@ -6,5 +6,5 @@ import com.revenuecat.purchases.api.BuildConfig internal object Config { var logLevel = LogLevel.debugLogsEnabled(BuildConfig.DEBUG) - const val frameworkVersion = "6.8.0-SNAPSHOT" + const val frameworkVersion = "6.8.0" }