Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit fa0bd1b

Browse files
committed
Rename the ReactNative Package.
1 parent f2ffd97 commit fa0bd1b

File tree

8 files changed

+322
-344
lines changed

8 files changed

+322
-344
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
88

99
### Breaking changes
1010

11+
- (iOS) Replace deprecated local notification methods on iOS [1751](https://github.com/zo0r/react-native-push-notification/pull/1751)
12+
- (Android) Rename the Android package from `ReactNativePushNotification` to `ReactNativePushNotification` resolve [893](https://github.com/zo0r/react-native-push-notification/issues/893)
13+
1114
### Features
1215

1316
### Fixed
@@ -16,7 +19,7 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
1619

1720
### Fixed
1821

19-
- (Android) Null pointer exception when trying to create channel [#134](https://github.com/zo0r/react-native-push-notification/issues/1734)
22+
- (Android) Null pointer exception when trying to create channel [#1734](https://github.com/zo0r/react-native-push-notification/issues/1734)
2023

2124
## [6.1.2] 2020-10-29
2225

android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotification.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public RNPushNotification(ReactApplicationContext reactContext) {
6161

6262
@Override
6363
public String getName() {
64-
return "RNPushNotification";
64+
return "ReactNativePushNotification";
6565
}
6666

6767
@Override

component/index.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { NativeModules, DeviceEventEmitter } from "react-native";
44

5-
let RNPushNotification = NativeModules.RNPushNotification;
5+
let RNPushNotification = NativeModules.ReactNativePushNotification;
66
let _notifHandlers = new Map();
77

88
var DEVICE_NOTIF_EVENT = 'remoteNotificationReceived';

example/ios/Podfile

Lines changed: 5 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,24 @@
1-
platform :ios, '9.0'
1+
platform :ios, '10.0'
2+
require_relative '../node_modules/react-native/scripts/react_native_pods'
23
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
34

4-
def add_flipper_pods!(versions = {})
5-
versions['Flipper'] ||= '~> 0.33.1'
6-
versions['DoubleConversion'] ||= '1.1.7'
7-
versions['Flipper-Folly'] ||= '~> 2.1'
8-
versions['Flipper-Glog'] ||= '0.3.6'
9-
versions['Flipper-PeerTalk'] ||= '~> 0.0.4'
10-
versions['Flipper-RSocket'] ||= '~> 1.0'
11-
12-
pod 'FlipperKit', versions['Flipper'], :configuration => 'Debug'
13-
pod 'FlipperKit/FlipperKitLayoutPlugin', versions['Flipper'], :configuration => 'Debug'
14-
pod 'FlipperKit/SKIOSNetworkPlugin', versions['Flipper'], :configuration => 'Debug'
15-
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', versions['Flipper'], :configuration => 'Debug'
16-
pod 'FlipperKit/FlipperKitReactPlugin', versions['Flipper'], :configuration => 'Debug'
17-
18-
# List all transitive dependencies for FlipperKit pods
19-
# to avoid them being linked in Release builds
20-
pod 'Flipper', versions['Flipper'], :configuration => 'Debug'
21-
pod 'Flipper-DoubleConversion', versions['DoubleConversion'], :configuration => 'Debug'
22-
pod 'Flipper-Folly', versions['Flipper-Folly'], :configuration => 'Debug'
23-
pod 'Flipper-Glog', versions['Flipper-Glog'], :configuration => 'Debug'
24-
pod 'Flipper-PeerTalk', versions['Flipper-PeerTalk'], :configuration => 'Debug'
25-
pod 'Flipper-RSocket', versions['Flipper-RSocket'], :configuration => 'Debug'
26-
pod 'FlipperKit/Core', versions['Flipper'], :configuration => 'Debug'
27-
pod 'FlipperKit/CppBridge', versions['Flipper'], :configuration => 'Debug'
28-
pod 'FlipperKit/FBCxxFollyDynamicConvert', versions['Flipper'], :configuration => 'Debug'
29-
pod 'FlipperKit/FBDefines', versions['Flipper'], :configuration => 'Debug'
30-
pod 'FlipperKit/FKPortForwarding', versions['Flipper'], :configuration => 'Debug'
31-
pod 'FlipperKit/FlipperKitHighlightOverlay', versions['Flipper'], :configuration => 'Debug'
32-
pod 'FlipperKit/FlipperKitLayoutTextSearchable', versions['Flipper'], :configuration => 'Debug'
33-
pod 'FlipperKit/FlipperKitNetworkPlugin', versions['Flipper'], :configuration => 'Debug'
34-
end
35-
36-
# Post Install processing for Flipper
37-
def flipper_post_install(installer)
38-
installer.pods_project.targets.each do |target|
39-
if target.name == 'YogaKit'
40-
target.build_configurations.each do |config|
41-
config.build_settings['SWIFT_VERSION'] = '4.1'
42-
end
43-
end
44-
end
45-
end
46-
475
target 'example' do
486
# Pods for example
49-
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
50-
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
51-
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
52-
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
53-
pod 'React', :path => '../node_modules/react-native/'
54-
pod 'React-Core', :path => '../node_modules/react-native/'
55-
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
56-
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
57-
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
58-
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
59-
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
60-
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
61-
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
62-
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
63-
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
64-
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
65-
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
66-
pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
67-
68-
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
69-
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
70-
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
71-
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
72-
pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
73-
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
74-
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true
7+
config = use_native_modules!
758

76-
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
77-
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
78-
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
9+
use_react_native!(:path => config["reactNativePath"])
7910

8011
target 'exampleTests' do
8112
inherit! :complete
8213
# Pods for testing
8314
end
8415

85-
use_native_modules!
8616

8717
# Enables Flipper.
8818
#
8919
# Note that if you have use_frameworks! enabled, Flipper will not work and
9020
# you should disable these next few lines.
91-
add_flipper_pods!
21+
use_flipper!
9222
post_install do |installer|
9323
flipper_post_install(installer)
9424
end

0 commit comments

Comments
 (0)