Skip to content

Delete utils module#1098

Merged
vegaro merged 5 commits into
mainfrom
cesar/sdk-3202-remove-utils-module
Jun 27, 2023
Merged

Delete utils module#1098
vegaro merged 5 commits into
mainfrom
cesar/sdk-3202-remove-utils-module

Conversation

@vegaro

@vegaro vegaro commented Jun 26, 2023

Copy link
Copy Markdown
Member

Based off #1097

Before:
image

After:
image

Note:

  • JSONObjectHelper and DateHelper live in public because they are used in that module and couldn't be moved to common

@vegaro vegaro requested a review from a team June 26, 2023 16:07
@codecov

codecov Bot commented Jun 26, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1098 (9306fbd) into main (b4434aa) will decrease coverage by 0.77%.
The diff coverage is 49.23%.

@@            Coverage Diff             @@
##             main    #1098      +/-   ##
==========================================
- Coverage   85.88%   85.12%   -0.77%     
==========================================
  Files         179      183       +4     
  Lines        6364     6493     +129     
  Branches      876      917      +41     
==========================================
+ Hits         5466     5527      +61     
- Misses        556      601      +45     
- Partials      342      365      +23     
Impacted Files Coverage Δ
.../java/com/revenuecat/purchases/utils/DateHelper.kt 100.00% <ø> (ø)
...a/com/revenuecat/purchases/utils/Iso8601Utils.java 62.28% <ø> (ø)
.../revenuecat/purchases/utils/JSONArrayExtensions.kt 75.00% <ø> (ø)
...revenuecat/purchases/utils/JSONObjectExtensions.kt 85.71% <ø> (ø)
...va/com/revenuecat/purchases/utils/MapExtensions.kt 100.00% <ø> (ø)
...main/java/com/revenuecat/purchases/utils/Result.kt 100.00% <ø> (ø)
...om/revenuecat/purchases/utils/TimestampProvider.kt 50.00% <ø> (ø)
...m/revenuecat/purchases/utils/JSONObjectParceler.kt 100.00% <ø> (ø)
...venuecat/purchases/utils/SerializationException.kt 0.00% <ø> (ø)
...com/revenuecat/purchases/utils/Iso8601UtilsDupe.kt 39.00% <39.00%> (ø)
... and 4 more

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to made some duplicates in this package because moving those files into the public module would expose them to everyone

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Converted this file to Kotlin using Android Studio so it can be made internal and we can hide it from developers

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests seem to be failing? Other than that, this looks good

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remember we need to make these internal in the original classes as well once we've joined the other modules into one

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably not the prettiest code... I've been thinking about simply rewriting this (note that once we join the modules we still need to make this internal), but maybe we can do that in a separate PR

Base automatically changed from cesar/sdk-3201-remove-strings-module to main June 27, 2023 12:17
@vegaro vegaro force-pushed the cesar/sdk-3202-remove-utils-module branch from c3d1280 to bd1dac8 Compare June 27, 2023 12:21
@vegaro vegaro requested a review from tonidero June 27, 2023 12:47
@vegaro

vegaro commented Jun 27, 2023

Copy link
Copy Markdown
Member Author

I believe the diff in the code coverage is due to the duplicated classes so I am going to merge anyways

@vegaro vegaro merged commit 0761727 into main Jun 27, 2023
@vegaro vegaro deleted the cesar/sdk-3202-remove-utils-module branch June 27, 2023 13:59
tonidero added a commit that referenced this pull request Jul 12, 2023
**This is an automatic release.**

### New Features
* `Trusted Entitlements`: made API stable (#1105) via NachoSoto
(@NachoSoto)

This new feature prevents MitM attacks between the SDK and the
RevenueCat server.
With verification enabled, the SDK ensures that the response created by
the server was not modified by a third-party, and the entitlements
received are exactly what was sent.
This is 100% opt-in. `EntitlementInfos` have a new `VerificationResult`
property, which will indicate the validity of the responses when this
feature is enabled.

```kotlin
fun configureRevenueCat() {
    val configuration = PurchasesConfiguration.Builder(context, apiKey)
        .entitlementVerificationMode(EntitlementVerificationMode.INFORMATIONAL)
        .build()
    Purchases.configure(configuration)
}
```
### Experimental features
* Add await offerings (#1096) via Cesar de la Vega (@vegaro)
### Bugfixes
* Fix issue updating customer info on app open (#1128) via Toni Rico
(@tonidero)
### Dependency Updates
* Bump fastlane-plugin-revenuecat_internal from `13773d2` to `b2108fb`
(#1095) via dependabot[bot] (@dependabot[bot])
### Other Changes
* [PurchaseTester] Add option to purchase an arbitrary product id
(#1099) via Mark Villacampa (@MarkVillacampa)
* Fix release path after module refactor (#1129) via Toni Rico
(@tonidero)
* Fix load shedder integration tests (#1125) via Toni Rico (@tonidero)
* Trusted entitlements: New trusted entitlements signature format
(#1117) via Toni Rico (@tonidero)
* Fix integration tests and change to a different project (#1123) via
Toni Rico (@tonidero)
* Move files into src/main/kotlin (#1122) via Cesar de la Vega (@vegaro)
* Remove public module (#1113) via Cesar de la Vega (@vegaro)
* Remove common module (#1106) via Cesar de la Vega (@vegaro)
* Fix flaky integration tests: Wait for coroutines to finish before
continuing (#1120) via Toni Rico (@tonidero)
* Move amazon module into purchases (#1112) via Cesar de la Vega
(@vegaro)
* Trusted entitlements: Add IntermediateSignatureHelper to handle
intermediate signature verification process (#1110) via Toni Rico
(@tonidero)
* Trusted entitlements: Add Signature type to process new signature
response format (#1109) via Toni Rico (@tonidero)
* [EXTERNAL] Add `awaitCustomerInfo` / coroutines tests to
`TrustedEntitlementsInformationalModeIntegrationTest` (#1077) via
@pablo-guardiola (#1107) via Toni Rico (@tonidero)
* Remove feature:google module (#1104) via Cesar de la Vega (@vegaro)
* Remove identity module (#1103) via Cesar de la Vega (@vegaro)
* Remove subscriber attributes module (#1102) via Cesar de la Vega
(@vegaro)
* Delete utils module (#1098) via Cesar de la Vega (@vegaro)
* Remove strings module (#1097) via Cesar de la Vega (@vegaro)
* Update CHANGELOG.md to include external contribution (#1100) via Cesar
de la Vega (@vegaro)
* [EXTERNAL] Add missing `fetchPolicy` parameter to `awaitCustomerInfo`
API (#1086) via @pablo-guardiola (#1090) via Toni Rico (@tonidero)

---------

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
Co-authored-by: Toni Rico <antonio.rico.diez@revenuecat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants