Skip to content

Commit 9a3e983

Browse files
authored
Release 10.0.0 (#308)
* [MOBILE-2034] Update to latest SDKs * [GH-301] Fix extras type * [MOBILE-2034] Add better logging * Release 10.0.0
1 parent 5c113ba commit 9a3e983

File tree

20 files changed

+61
-49
lines changed

20 files changed

+61
-49
lines changed

CHANGELOG.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
# React Native Module Changelog
22

3+
## Version 10.0.0 - December 18, 2020
4+
5+
Major release that updates the iOS Airship SDK to 14.2.0 and the Android SDK to 14.1.0. Xcode 12 is required for this version.
6+
7+
- Added better logging for default presentation options
8+
- Changed InboxMessage.extras type from Map<string, string> to Record<string, string>
9+
- Updated Android SDK to 14.1.0
10+
- Updated iOS SDK to 14.2.0
11+
- Fixed Xcode 12 compatibility
12+
- firebaseMessagingVersion requires version 21.0.0+
13+
314
## Version 9.0.1 - October 22, 2020
415
Patch release that updates the iOS and Android SDKs to 14.0.1, and fixes
5-
a bug impacting foreground noitification options on iOS.
16+
a bug impacting foreground noitification options on iOS.
617

718
- Updated Android SDK to 14.0.1
819
- Updated iOS SDK to 14.0.1

README.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ A React Native module for Airship's iOS and Android SDK.
1212
Please visit https://support.airship.com/ for any issues integrating or using this module.
1313

1414
### Requirements:
15-
- Xcode 11+
15+
- Xcode 12+
1616
- iOS: Deployment target 11.0+
17-
- Android: minSdkVersion 16+, compileSdkVersion 28+
17+
- Android: minSdkVersion 16+, compileSdkVersion 29+
1818
- React Native >= 0.60.0
1919
- React Native cli >= 2.0.1
2020

@@ -113,10 +113,7 @@ Firebase core and messaging dependencies versions can be overriden by setting th
113113

114114
```
115115
ext {
116-
// Requires 17.0.0+
117-
firebaseCoreVersion "VERSION"
118-
119-
// Requires 19.0.0+
116+
// Requires 21.0.0+
120117
firebaseMessagingVersion "VERSION"
121118
}
122119
```

example/ios/Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ end
1414
target 'ServiceExtension' do
1515
platform :ios, '11.0'
1616
# Pods for Service Extension
17-
pod 'AirshipExtensions/NotificationService', '~> 14.1.3'
17+
pod 'AirshipExtensions/NotificationService', '~> 14.2.0'
1818
end

example/ios/Podfile.lock

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
PODS:
2-
- Airship (14.1.3):
3-
- Airship/Automation (= 14.1.3)
4-
- Airship/Core (= 14.1.3)
5-
- Airship/ExtendedActions (= 14.1.3)
6-
- Airship/MessageCenter (= 14.1.3)
7-
- Airship/Accengage (14.1.3):
2+
- Airship (14.2.0):
3+
- Airship/Automation (= 14.2.0)
4+
- Airship/Core (= 14.2.0)
5+
- Airship/ExtendedActions (= 14.2.0)
6+
- Airship/MessageCenter (= 14.2.0)
7+
- Airship/Accengage (14.2.0):
88
- Airship/Core
9-
- Airship/Automation (14.1.3):
9+
- Airship/Automation (14.2.0):
1010
- Airship/Core
11-
- Airship/Core (14.1.3)
12-
- Airship/ExtendedActions (14.1.3):
11+
- Airship/Core (14.2.0)
12+
- Airship/ExtendedActions (14.2.0):
1313
- Airship/Core
14-
- Airship/Location (14.1.3):
14+
- Airship/Location (14.2.0):
1515
- Airship/Core
16-
- Airship/MessageCenter (14.1.3):
16+
- Airship/MessageCenter (14.2.0):
1717
- Airship/Core
18-
- AirshipExtensions/NotificationService (14.1.3)
18+
- AirshipExtensions/NotificationService (14.2.0)
1919
- boost-for-react-native (1.63.0)
2020
- DoubleConversion (1.1.6)
2121
- FBLazyVector (0.63.4)
@@ -272,19 +272,19 @@ PODS:
272272
- React-Core
273273
- RNScreens (2.16.1):
274274
- React-Core
275-
- urbanairship-accengage-react-native (9.0.1):
276-
- Airship/Accengage (= 14.1.3)
275+
- urbanairship-accengage-react-native (10.0.0):
276+
- Airship/Accengage (= 14.2.0)
277277
- React-Core
278-
- urbanairship-location-react-native (9.0.1):
279-
- Airship/Location (= 14.1.3)
278+
- urbanairship-location-react-native (10.0.0):
279+
- Airship/Location (= 14.2.0)
280280
- React-Core
281-
- urbanairship-react-native (9.0.1):
282-
- Airship (= 14.1.3)
281+
- urbanairship-react-native (10.0.0):
282+
- Airship (= 14.2.0)
283283
- React-Core
284284
- Yoga (1.14.0)
285285

286286
DEPENDENCIES:
287-
- AirshipExtensions/NotificationService (~> 14.1.3)
287+
- AirshipExtensions/NotificationService (~> 14.2.0)
288288
- DoubleConversion (from `../../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
289289
- FBLazyVector (from `../../node_modules/react-native/Libraries/FBLazyVector`)
290290
- FBReactNativeSpec (from `../../node_modules/react-native/Libraries/FBReactNativeSpec`)
@@ -399,8 +399,8 @@ EXTERNAL SOURCES:
399399
:path: "../../node_modules/react-native/ReactCommon/yoga"
400400

401401
SPEC CHECKSUMS:
402-
Airship: bb8fc010450ebb2c33314af9761bb79df4950dbc
403-
AirshipExtensions: 709d5e7cffed738c487ae1fe0cca495ace6f7d74
402+
Airship: 02ad73780f9eed21870e36b0aaab327acda6a102
403+
AirshipExtensions: dae6544dc8c6977ccf03ea32dfb062cf0ed2b021
404404
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
405405
DoubleConversion: cde416483dac037923206447da6e1454df403714
406406
FBLazyVector: 3bb422f41b18121b71783a905c10e58606f7dc3e
@@ -432,11 +432,11 @@ SPEC CHECKSUMS:
432432
RNGestureHandler: 9b7e605a741412e20e13c512738a31bd1611759b
433433
RNReanimated: e03f7425cb7a38dcf1b644d680d1bfc91c3337ad
434434
RNScreens: 45c457af3d2ee9e08fc01e70da87e653d46b1198
435-
urbanairship-accengage-react-native: 48d223a1251d567ea3f921fc8605aae81e1c39c6
436-
urbanairship-location-react-native: 3e06f383751c32421c82adfc726a8edbef9a569c
437-
urbanairship-react-native: 1a21e766162494ace776e8e35d231d63d074f616
435+
urbanairship-accengage-react-native: d57723b2fe2045d4dd8cd5af19bdb4aa80b0f214
436+
urbanairship-location-react-native: d7b289f1db1ebe14d240cfdc1c6d30de97793a4a
437+
urbanairship-react-native: afab7684561909be2a6a2a52baa3435776d050de
438438
Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6
439439

440-
PODFILE CHECKSUM: 8d8b21ceb8d8d95f9f742a59ebc952ee55ea4563
440+
PODFILE CHECKSUM: 5820be3e3b56e627a80c61535fd3647306f748e8
441441

442442
COCOAPODS: 1.10.0

urbanairship-accengage-react-native/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
33
import groovy.json.JsonSlurper
44

55
ext {
6-
airshipVersion = "14.0.3"
6+
airshipVersion = "14.1.0"
77
}
88

99
android {

urbanairship-accengage-react-native/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "urbanairship-accengage-react-native",
3-
"version": "9.0.1",
3+
"version": "10.0.0",
44
"description": "Airship accengage module for React Native apps.",
55
"author": "Airship",
66
"homepage": "https://github.com/urbanairship/react-native-module",

urbanairship-accengage-react-native/urbanairship-accengage-react-native.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
s.requires_arc = true
1717

1818
s.dependency "React-Core"
19-
s.dependency "Airship/Accengage", "14.1.3"
19+
s.dependency "Airship/Accengage", "14.2.0"
2020

2121
end
2222

urbanairship-hms-react-native/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
33
import groovy.json.JsonSlurper
44

55
ext {
6-
airshipVersion = "14.0.3"
6+
airshipVersion = "14.1.0"
77
}
88

99
android {

urbanairship-hms-react-native/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "urbanairship-hms-react-native",
3-
"version": "9.0.1",
3+
"version": "10.0.0",
44
"description": "Airship HMS module for React Native apps.",
55
"author": "Airship",
66
"homepage": "https://github.com/urbanairship/react-native-module",

urbanairship-location-react-native/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
33
import groovy.json.JsonSlurper
44

55
ext {
6-
airshipVersion = "14.0.3"
6+
airshipVersion = "14.1.0"
77
}
88

99
android {

urbanairship-location-react-native/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "urbanairship-location-react-native",
3-
"version": "9.0.1",
3+
"version": "10.0.0",
44
"description": "Airship location module for React Native apps.",
55
"author": "Airship",
66
"homepage": "https://github.com/urbanairship/react-native-module",

urbanairship-location-react-native/urbanairship-location-react-native.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
s.requires_arc = true
1717

1818
s.dependency "React-Core"
19-
s.dependency "Airship/Location", "14.1.3"
19+
s.dependency "Airship/Location", "14.2.0"
2020

2121
end
2222

urbanairship-react-native/android/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
33
import groovy.json.JsonSlurper
44

55
ext {
6-
airshipVersion = "14.0.3"
6+
airshipVersion = "14.1.0"
77
}
88

99
android {
@@ -41,5 +41,5 @@ dependencies {
4141
implementation "com.urbanairship.android:urbanairship-automation:$airshipVersion"
4242
implementation "com.urbanairship.android:urbanairship-location:$airshipVersion"
4343

44-
implementation "com.google.firebase:firebase-messaging:${safeExtGet('firebaseMessagingVersion', '20.2.4')}"
44+
implementation "com.google.firebase:firebase-messaging:${safeExtGet('firebaseMessagingVersion', '21.0.0')}"
4545
}

urbanairship-react-native/android/src/main/java/com/urbanairship/reactnative/ReactAutopilot.java

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public void onAirshipReady(@NonNull UAirship airship) {
3939

4040
PluginLogger.setLogLevel(airship.getAirshipConfigOptions().logLevel);
4141

42+
PluginLogger.debug("Airship React Native version: %s, SDK version: %s", BuildConfig.MODULE_VERSION, UAirship.getVersion());
43+
4244
final Context context = UAirship.getApplicationContext();
4345

4446
airship.setDeepLinkListener(new DeepLinkListener() {

urbanairship-react-native/ios/UARCTModule/UARCTAutopilot.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#import "UARCTModuleVersion.h"
88

99
NSString *const UARCTPresentationOptionsStorageKey = @"com.urbanairship.presentation_options";
10-
NSString *const UARCTAirshipRecommendedVersion = @"13.5.4";
10+
NSString *const UARCTAirshipRecommendedVersion = @"14.2.0";
1111

1212
@implementation UARCTAutopilot
1313

@@ -29,6 +29,7 @@ + (void)performTakeOff:(NSNotification *)notification {
2929

3030
[UAirship takeOff];
3131

32+
UA_LINFO(@"Airship ReactNative version: %@, SDK version: %@", [UARCTModuleVersion get], [UAirshipVersion get]);
3233
[[UAirship analytics] registerSDKExtension:UASDKExtensionReactNative version:[UARCTModuleVersion get]];
3334

3435
[UAirship push].pushNotificationDelegate = [UARCTEventEmitter shared];
@@ -48,6 +49,7 @@ + (void)performTakeOff:(NSNotification *)notification {
4849

4950
if ([[NSUserDefaults standardUserDefaults] objectForKey:UARCTPresentationOptionsStorageKey]) {
5051
UNNotificationPresentationOptions presentationOptions = [[NSUserDefaults standardUserDefaults] integerForKey:UARCTPresentationOptionsStorageKey];
52+
UA_LDEBUG(@"Foreground presentation options set: %lu", (unsigned long)presentationOptions);
5153
[[UAirship push] setDefaultPresentationOptions:presentationOptions];
5254
}
5355

urbanairship-react-native/ios/UARCTModule/UARCTModuleVersion.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
@implementation UARCTModuleVersion
66

7-
NSString *const airshipModuleVersionString = @"9.0.1";
7+
NSString *const airshipModuleVersionString = @"10.0.0";
88

99
+ (nonnull NSString *)get {
1010
return airshipModuleVersionString;

urbanairship-react-native/ios/UARCTModule/UrbanAirshipReactModule.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ - (RCTBridge *)bridge {
298298
}
299299
}
300300

301-
UA_LDEBUG(@"Foreground presentation options set: %lu", (unsigned long)options);
301+
UA_LDEBUG(@"Foreground presentation options set: %lu from dictionary: %@", (unsigned long)presentationOptions, options);
302302

303303
[UAirship push].defaultPresentationOptions = presentationOptions;
304304
[[NSUserDefaults standardUserDefaults] setInteger:presentationOptions

urbanairship-react-native/js/UrbanAirship.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export interface InboxMessage {
103103
/**
104104
* String to String map of any message extras.
105105
*/
106-
extras: Map<string, string>;
106+
extras: Record<string, string>;
107107
}
108108

109109
/**

urbanairship-react-native/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "urbanairship-react-native",
3-
"version": "9.0.1",
3+
"version": "10.0.0",
44
"description": "Airship plugin for React Native apps.",
55
"author": "Airship",
66
"homepage": "https://github.com/urbanairship/react-native-module",

urbanairship-react-native/urbanairship-react-native.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ require "json"
1414
s.source = { :git => "https://github.com/urbanairship/react-native-module.git", :tag => "{s.version}" }
1515
s.source_files = "ios/**/*.{h,m}"
1616
s.dependency "React-Core"
17-
s.dependency "Airship", "14.1.3"
17+
s.dependency "Airship", "14.2.0"
1818

1919
end

0 commit comments

Comments
 (0)