-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from emartech/MV-305-auto-linking
MV-305 autolinking
- Loading branch information
Showing
9 changed files
with
15 additions
and
833 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,57 +8,8 @@ We created a sample application to help in the integration and give an example. | |
|
||
## Setup | ||
|
||
`$ npm install git+ssh://[email protected]/emartech/react-native-emarsys-sdk.git#1.7.0 --save` | ||
`$ npm install git+ssh://[email protected]/emartech/react-native-emarsys-sdk.git#1.8.0 --save` | ||
|
||
### Mostly automatic installation | ||
|
||
`$ react-native link react-native-emarsys-wrapper` | ||
|
||
#### iOS | ||
|
||
Add to your Podfile in ios folder, above the `use_native_modules!` function if you use it: | ||
``` | ||
pod 'RNEmarsysWrapper', :podspec => '../node_modules/react-native-emarsys-wrapper/ios/RNEmarsysWrapper.podspec' | ||
``` | ||
|
||
|
||
### Manual installation | ||
|
||
#### iOS | ||
|
||
1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]` | ||
2. Go to `node_modules` ➜ `react-native-emarsys-wrapper` and add `RNEmarsysWrapper.xcodeproj` | ||
3. In XCode, in the project navigator, select your project. Add `libRNEmarsysWrapper.a` to your project's `Build Phases` ➜ `Link Binary With Libraries` | ||
4. Add to your Podfile in ios folder: | ||
``` | ||
platform :ios, '11.0' | ||
|
||
source 'https://github.com/CocoaPods/Specs.git' | ||
|
||
target "<TargetName>" do | ||
|
||
# Add this line to your Podfile | ||
pod 'RNEmarsysWrapper', :podspec => '../node_modules/react-native-emarsys-wrapper/ios/RNEmarsysWrapper.podspec' | ||
end | ||
``` | ||
5. After creating/editing the Podfile, you need to execute the command below to download CocoaPods dependencies: pod install | ||
6. Run your project (`Cmd+R`) | ||
|
||
#### Android | ||
|
||
1. Open up `android/app/src/main/java/[...]/MainApplication.java` | ||
- Add `import com.emarsys.rnwrapper.RNEmarsysWrapperPackage;` to the imports at the top of the file | ||
- Add `new RNEmarsysWrapperPackage()` to the list returned by the `getPackages()` method | ||
2. Append the following lines to `android/settings.gradle`: | ||
``` | ||
include ':react-native-emarsys-wrapper' | ||
project(':react-native-emarsys-wrapper').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-emarsys-wrapper/android') | ||
``` | ||
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`: | ||
``` | ||
compile project(':react-native-emarsys-wrapper') | ||
``` | ||
|
||
### Requirements | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
125 changes: 0 additions & 125 deletions
125
sample/ios/EmarsysApp.xcodeproj/xcshareddata/xcschemes/EmarsysApp-tvOS.xcscheme
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters