Fix build error and add installation docs
This commit is contained in:
parent
c89277db7d
commit
06c6016381
11
README.md
11
README.md
@ -4,3 +4,14 @@
|
||||
|
||||
# react-native-appmetrica
|
||||
React Native bridge to the AppMetrica on both iOS and Android.
|
||||
|
||||
**NOTE: Only iOS support for now. Feel free to send PR with Android support.**
|
||||
|
||||
## Installation
|
||||
|
||||
1. Setup [AppMetrica](https://tech.yandex.com/appmetrica/).
|
||||
`YandexMobileMetrica.framework` should be placed at `<project_dir>/ios/` or `<project_dir>/ios/Frameworks/`.
|
||||
Otherwise you'll get build error.
|
||||
2. `npm install --save react-native-appmetrica`
|
||||
3. `react-native link react-native-appmetrica`
|
||||
|
||||
|
@ -223,6 +223,10 @@
|
||||
59FB35CC1F6FA64700A6608F /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(PROJECT_DIR)/../../../../ios",
|
||||
"$(PROJECT_DIR)/../../../../ios/Frameworks",
|
||||
);
|
||||
OTHER_LDFLAGS = "-ObjC";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SKIP_INSTALL = YES;
|
||||
@ -232,6 +236,10 @@
|
||||
59FB35CD1F6FA64700A6608F /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(PROJECT_DIR)/../../../../ios",
|
||||
"$(PROJECT_DIR)/../../../../ios/Frameworks",
|
||||
);
|
||||
OTHER_LDFLAGS = "-ObjC";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SKIP_INSTALL = YES;
|
||||
@ -257,6 +265,7 @@
|
||||
59FB35CD1F6FA64700A6608F /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user