Skip to content

Commit a22ee29

Browse files
authored
Merge pull request #71 from jonathanort/master
React Native 0.60 support (Cocoapods)
2 parents bf53270 + 544cf6f commit a22ee29

32 files changed

+21
-3139
lines changed

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -377,22 +377,10 @@ namespace ...
377377

378378
![SetProvisioningProfile](./img/SetProvisioningProfile.png)
379379

380-
* Drag **node_modules/react-native-azurenotificationhub/ios/RCTAzureNotificationHubManager.xcodeproj** and **node_modules/react-native-azurenotificationhub/ios/WindowsAzureMessaging.xcodeproj** to your project on Xcode (usually under the Libraries group on Xcode).
381-
382-
![AddLibsIOS](./img/AddLibsIOS.png)
383-
384-
* Click on your main project file (the one that represents the **.xcodeproj**), select **Build Phases** and drag the static libraries from the **Products** folder inside the libraries you are importing to **Link Binary With Libraries**
385-
386-
![LinkLibsIOS](./img/LinkLibsIOS.png)
387-
388-
* Add **$(SRCROOT)/../node_modules/react-native-azurenotificationhub/ios** to **Header Search Paths** and select **recursive**
389-
390-
![IncludeHeaderIOS](./img/IncludeHeaderIOS.png)
391-
392380
* To enable support for notification and register events you need to augment your AppDelegate. At the top of your **AppDelegate.m**:
393381

394382
```objective-c
395-
#import "RCTAzureNotificationHubManager.h"
383+
#import "<RNAzureNotificationHub/RCTAzureNotificationHubManager.h>"
396384
```
397385

398386
* And then add the following code in the same file:

RNAzureNotificationHub.podspec

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
require 'json'
2+
3+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4+
5+
Pod::Spec.new do |s|
6+
s.name = "RNAzureNotificationHub"
7+
s.version = package['version']
8+
s.summary = package['description']
9+
s.license = package['license']
10+
11+
s.authors = package['author']
12+
s.homepage = package['homepage']
13+
14+
s.platform = :ios, "7.0"
15+
s.source = { :git => "https://github.com/CatalystCode/react-native-azurenotificationhub.git", :tag => "master" }
16+
s.source_files = "ios/**/*.{h,m}"
17+
s.requires_arc = true
18+
s.ios.dependency 'WindowsAzureMessaging'
19+
s.dependency "React"
20+
end

ios/WindowsAzureMessaging.xcodeproj/project.pbxproj

Lines changed: 0 additions & 456 deletions
This file was deleted.

ios/WindowsAzureMessaging.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

ios/WindowsAzureMessaging.xcodeproj/xcshareddata/xcschemes/Framework.xcscheme

Lines changed: 0 additions & 68 deletions
This file was deleted.

ios/WindowsAzureMessaging.xcodeproj/xcuserdata/phongcao.xcuserdatad/xcschemes/WindowsAzureMessaging.xcscheme

Lines changed: 0 additions & 80 deletions
This file was deleted.

ios/WindowsAzureMessaging.xcodeproj/xcuserdata/phongcao.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 0 additions & 32 deletions
This file was deleted.

ios/WindowsAzureMessaging/Helpers/SBLocalStorage.h

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)