Skip to content

Commit

Permalink
Release/4.4.0 (#307)
Browse files Browse the repository at this point in the history
* bump dependencies

* updated version number everywhere

* added setAirshipChannelID

* updated pods

* fixed bug in gitignore
  • Loading branch information
aboedo authored Nov 11, 2021
1 parent 3b57e02 commit be90be3
Show file tree
Hide file tree
Showing 15 changed files with 282 additions and 237 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
node_modules/
npm-debug.log
yarn-error.log
*/yarn.lock
**/yarn.lock

# Xcode
#
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 4.4.0

- Bump`purchases-hybrid-common` to `1.10.0` [Changelog here](https://github.com/RevenueCat/purchases-hybrid-common/releases/tag/1.10.0)
- Bump `purchases-ios` to `3.13.0` ([Changelog here](https://github.com/RevenueCat/purchases-ios/releases/3.13.0))
- Bump `purchases-android` to `4.4.0` ([Changelog here](https://github.com/RevenueCat/purchases-android/releases/4.4.0))
- Added support for Airship integration via `setAirshipChannelID`
https://github.com/RevenueCat/react-native-purchases/pull/307

## 4.3.3

- Bump `purchases-ios` to 3.12.8
Expand Down
5 changes: 3 additions & 2 deletions RNPurchases.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ Pod::Spec.new do |spec|
spec.source_files = "ios/**/*.{h,m,swift}"
spec.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }

# Ignore the downloaded Purchases.framework
# Ignore the Purchases.framework that would get downloaded by the download script, meant for
# developers who don't want to use Cocoapods
spec.exclude_files = [
"ios/Purchases.framework",
"ios/PurchasesHybridCommon.framework"
]

spec.dependency "React-Core"
spec.dependency "PurchasesHybridCommon", '1.9.3'
spec.dependency "PurchasesHybridCommon", '1.10.0'
spec.swift_version = '5.0'
end
1 change: 1 addition & 0 deletions VERSIONS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
| Version | iOS version | Android version | Common files version |
|---------|-------------|-----------------|----------------------|
| 4.4.0 | 3.10.0 | 4.4.0 | 1.10.0 |
| 4.3.3 | 3.12.8 | 4.3.3 | 1.9.3 |
| 4.3.2 | 3.12.3 | 4.3.1 | 1.9.1 |
| 4.3.1 | 3.12.3 | 4.3.1 | 1.9.1 |
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ android {
minSdkVersion getExtOrIntegerDefault('minSdkVersion')
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
versionCode 1
versionName '4.3.3'
versionName '4.4.0'
}

buildTypes {
Expand Down Expand Up @@ -122,6 +122,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
dependencies {
//noinspection GradleDynamicVersion
api 'com.facebook.react:react-native:+'
implementation 'com.revenuecat.purchases:purchases-hybrid-common:1.9.3'
implementation 'com.revenuecat.purchases:purchases-hybrid-common:1.10.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class RNPurchasesModule extends ReactContextBaseJavaModule implements Upd

private static final String PURCHASER_INFO_UPDATED = "Purchases-PurchaserInfoUpdated";
public static final String PLATFORM_NAME = "react-native";
public static final String PLUGIN_VERSION = "4.3.3";
public static final String PLUGIN_VERSION = "4.4.0";

private final ReactApplicationContext reactContext;

Expand Down Expand Up @@ -296,6 +296,11 @@ public void setOnesignalID(String onesignalID) {
SubscriberAttributesKt.setOnesignalID(onesignalID);
}

@ReactMethod
public void setAirshipChannelID(String airshipChannelID) {
SubscriberAttributesKt.setAirshipChannelID(airshipChannelID);
}

// endregion

// region Campaign parameters
Expand Down
7 changes: 7 additions & 0 deletions dist/purchases.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,13 @@ export default class Purchases {
* @param onesignalID Empty String or null will delete the subscriber attribute.
*/
static setOnesignalID(onesignalID: string | null): void;
/**
* Subscriber attribute associated with the Airship Channel Id for the user
* Required for the RevenueCat Airship integration
*
* @param airshipChannelID Empty String or null will delete the subscriber attribute.
*/
static setAirshipChannelID(airshipChannelID: string | null): void;
/**
* Subscriber attribute associated with the install media source for the user
*
Expand Down
9 changes: 9 additions & 0 deletions dist/purchases.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,15 @@ var Purchases = /** @class */ (function () {
Purchases.setOnesignalID = function (onesignalID) {
RNPurchases.setOnesignalID(onesignalID);
};
/**
* Subscriber attribute associated with the Airship Channel Id for the user
* Required for the RevenueCat Airship integration
*
* @param airshipChannelID Empty String or null will delete the subscriber attribute.
*/
Purchases.setAirshipChannelID = function (airshipChannelID) {
RNPurchases.setAirshipChannelID(airshipChannelID);
};
/**
* Subscriber attribute associated with the install media source for the user
*
Expand Down
24 changes: 12 additions & 12 deletions examples/MagicWeather/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ PODS:
- glog (0.3.5)
- libevent (2.1.12)
- OpenSSL-Universal (1.1.180)
- Purchases (3.12.2):
- PurchasesCoreSwift (= 3.12.2)
- PurchasesCoreSwift (3.12.2)
- PurchasesHybridCommon (1.8.0):
- Purchases (= 3.12.2)
- Purchases (3.12.3):
- PurchasesCoreSwift (= 3.12.3)
- PurchasesCoreSwift (3.12.3)
- PurchasesHybridCommon (1.9.1):
- Purchases (= 3.12.3)
- RCT-Folly (2020.01.13.00):
- boost-for-react-native
- DoubleConversion
Expand Down Expand Up @@ -327,8 +327,8 @@ PODS:
- React
- RNGestureHandler (1.9.0):
- React-Core
- RNPurchases (5.0.0-amazon.alpha.1):
- PurchasesHybridCommon (= 1.8.0)
- RNPurchases (4.3.1):
- PurchasesHybridCommon (= 1.9.1)
- React-Core
- RNReanimated (1.13.2):
- React-Core
Expand Down Expand Up @@ -493,7 +493,7 @@ SPEC CHECKSUMS:
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de
FBLazyVector: e686045572151edef46010a6f819ade377dfeb4b
FBReactNativeSpec: 689b64d33514160d4359f9a7be7a16f6992d0405
FBReactNativeSpec: 793223d9e1d49b41629f98d80dc45853f7c64b12
Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021
Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41
Flipper-Folly: 755929a4f851b2fb2c347d533a23f191b008554c
Expand All @@ -504,9 +504,9 @@ SPEC CHECKSUMS:
glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b
Purchases: 3e20881892483ab6ca17cb86a89af4c6d1731562
PurchasesCoreSwift: e614645840af49d465dee1918011f784365d79a6
PurchasesHybridCommon: f87cfd2fb1a55df8daa2a996a1d19d48e5bfbf4f
Purchases: e9839517aea4335136f3946ae228eecf5131cc25
PurchasesCoreSwift: dd3fd55a9895abd7906a3842bd36c7f7539a99d1
PurchasesHybridCommon: 1d98dd58935a4fa1009c6e17f8b740973147b899
RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c
RCTRequired: 6d3e854f0e7260a648badd0d44fc364bc9da9728
RCTTypeSafety: c1f31d19349c6b53085766359caac425926fafaa
Expand All @@ -533,7 +533,7 @@ SPEC CHECKSUMS:
ReactCommon: 149906e01aa51142707a10665185db879898e966
RNCMaskedView: 5a8ec07677aa885546a0d98da336457e2bea557f
RNGestureHandler: 9b7e605a741412e20e13c512738a31bd1611759b
RNPurchases: e2776ca25a67deeb802b55096e8aea75c413944a
RNPurchases: ef07f897760dd7639c36281a05e1ddbf30abc9f5
RNReanimated: e03f7425cb7a38dcf1b644d680d1bfc91c3337ad
RNScreens: b6c9607e6fe47c1b6e2f1910d2acd46dd7ecea3a
RNVectorIcons: f67a1abce2ec73e62fe4606e8110e95a832bc859
Expand Down
Loading

0 comments on commit be90be3

Please sign in to comment.