Fix build error and add installation docs

This commit is contained in:
Aleksei Androsov 2017-09-23 13:15:11 +03:00
parent c89277db7d
commit 06c6016381
2 changed files with 20 additions and 0 deletions

View File

@ -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`

View File

@ -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 */
};