diff --git a/README.md b/README.md index 5e41a8d..afcb033 100644 --- a/README.md +++ b/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 `/ios/` or `/ios/Frameworks/`. +Otherwise you'll get build error. +2. `npm install --save react-native-appmetrica` +3. `react-native link react-native-appmetrica` + diff --git a/ios/RCTAppMetrica/RCTAppMetrica.xcodeproj/project.pbxproj b/ios/RCTAppMetrica/RCTAppMetrica.xcodeproj/project.pbxproj index e01da64..7e86f32 100644 --- a/ios/RCTAppMetrica/RCTAppMetrica.xcodeproj/project.pbxproj +++ b/ios/RCTAppMetrica/RCTAppMetrica.xcodeproj/project.pbxproj @@ -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 */ };