Giter Club home page Giter Club logo

embrace-demo-apps's People

Contributors

elanz avatar elanz-embrace avatar fnewberg avatar jpcrespi avatar luciapuccini avatar nelsitopuglisi avatar vitaliyf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

embrace-demo-apps's Issues

[Bug] iOS Build fails for react_native/sample_integration app

Steps

1. git clone https://github.com/embrace-io/embrace-demo-apps.git
2. cd react_native/sample_integration && yarn
3. cd ios && pod install && pod update
4. open sample_integration.xcworkspace

Update API_KEY in Embrace-Info.plist and AppDelegate.m.
Hit Play button to run the App.

Outcome

Error AppDelegate.m:57:5: Use of undeclared identifier 'Embrace'

Expected

App should successfully build and launch.

Error Cause

Check the embrace import in code at line 20, which falls in #ifdef FB_SONARKIT_ENABLED block, which ends at line 31.
This block don't get executed in release mode as it is used for Flipper integration in debug mode.

#import "AppDelegate.h"
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#ifdef FB_SONARKIT_ENABLED
#import <FlipperKit/FlipperClient.h>
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
// EMBRACE HINT:
// Embrace is integrated using CocoaPods.
// If you just installed the library to the project and it is failing to build, simply run
// 'pod install' from the root of the IOS project in terminal, See: https://embrace.io/docs/react-native/add-embrace-sdk/
// Keep an eye on the terminal since it should warn you about this.
#import <Embrace/Embrace.h>
static void InitializeFlipper(UIApplication *application) {
FlipperClient *client = [FlipperClient sharedClient];
SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
[client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
[client addPlugin:[FlipperKitReactPlugin new]];
[client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
[client start];
}
#endif

Resolution

Move embrace import #import <Embrace/Embrace.h> out side / above #ifdef FB_SONARKIT_ENABLED block.

Feature request

It would be better you guys can app proper documentation for JS bundle, currently even after uploading dYSMs and JS symbols I still see main.jsbundle in stack trace which is not expected, It should show JS lines as we already have JS source maps.

Add codepush integration sample as in documentation it says Embrace SDK will leverage the CodePush SDK to find the location of the bundle but actually its not finding JS bundle location and giving error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.