Skip to content

Commit

Permalink
Fix typo in transactions mapping (#55)
Browse files Browse the repository at this point in the history
* updated revenuecatId -> revenueCatId in android

* bump version number and update changelog

* updated mapping in test
  • Loading branch information
aboedo authored Sep 22, 2020
1 parent d5197f0 commit 095a091
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 1.4.2

- Fixes a typo in the `Transaction` mapper in Android.
https://github.com/RevenueCat/purchases-hybrid-common/pull/55

### 1.4.1

- Fixes an issue where `setFBAnonymousID` would set the `appsflyerID` instead.
Expand Down
2 changes: 1 addition & 1 deletion PurchasesHybridCommon.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "PurchasesHybridCommon"
s.version = "1.4.1"
s.version = "1.4.2"
s.summary = "Common files for hybrid SDKs for RevenueCat's Subscription and in-app-purchase backend service."

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ android {
minSdkVersion 14
targetSdkVersion 29
versionCode 1
versionName "1.4.1"
versionName "1.4.2"

consumerProguardFiles 'consumer-rules.pro'
}
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ kotlin.code.style=official

# Maven
GROUP=com.revenuecat.purchases
VERSION_NAME=1.4.1
VERSION_NAME=1.4.2
POM_NAME=purchases-hybrid-common
POM_PACKAGING=aar
POM_ARTIFACT_ID=purchases-hybrid-common
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.revenuecat.purchases.models.Transaction

fun Transaction.map(): Map<String, Any?> =
mapOf(
"revenuecatId" to this.revenuecatId,
"revenueCatId" to this.revenuecatId,
"productId" to this.productId,
"purchaseDateMillis" to this.purchaseDate.toMillis(),
"purchaseDate" to this.purchaseDate.toIso8601()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object PurchaserInfoMappersTests : Spek({
assertThat(mappedNonSubscriptionTransactions).isNotEmpty

val transactionDictionary = mappedNonSubscriptionTransactions[0] as Map<*, *>
assertThat(transactionDictionary["revenuecatId"]).isEqualTo(transaction.revenuecatId)
assertThat(transactionDictionary["revenueCatId"]).isEqualTo(transaction.revenuecatId)
assertThat(transactionDictionary["productId"]).isEqualTo(transaction.productId)
assertThat(transactionDictionary["purchaseDateMillis"]).isEqualTo(transaction.purchaseDate.toMillis())
assertThat(transactionDictionary["purchaseDate"]).isEqualTo(transaction.purchaseDate.toIso8601())
Expand Down
2 changes: 1 addition & 1 deletion ios/PurchasesHybridCommon/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.4.1</string>
<string>1.4.2</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.4.1</string>
<string>1.4.2</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down

0 comments on commit 095a091

Please sign in to comment.