Coder Social home page Coder Social logo

martincik / react-native-hockeyapp Goto Github PK

View Code? Open in Web Editor NEW
124.0 6.0 56.0 142 KB

HockeyApp integration for React Native with Android and iOS support

License: MIT License

Objective-C 48.63% Java 42.64% JavaScript 5.88% Ruby 2.84%
javascript hockeyapp android cocoapods ios

react-native-hockeyapp's Introduction

โ— While I do not have the time to actively maintain RN-hockeyapp anymore, I am open to new maintainers taking the lead. If you would be interested, contact me at ladislav (at) benloop (dot) com. โ—

react-native-hockeyapp

HockeyApp integration for React Native.

Requirements

  • iOS 7+
  • Android
  • React Native >0.17
  • CocoaPods

Installation

npm install react-native-hockeyapp --save

iOS

You will need:

CocoaPods (Setup)

Podfile

Add to your ios/Podfile:

pod "HockeySDK"

Run pod install

Open YourProject.xcworkspace

Add the RNHockeyApp library to your project

  • Drag-and-drop RNHockeyApp.xcodeproj from ./node_modules/react-native-hockeyapp/RNHockeyApp into your Project > Libraries.
  • Drag-and-drop libRNHockeyApp.a from Libraries/RNHockeyApp/Products into Linked Frameworks and Libraries

Changes to AppDelegate.m

If you wish to use Device UUID authentication or Web authentication, the following must be added to ios/AppDelegate.m

#import "RNHockeyApp.h"

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
  if( [[BITHockeyManager sharedHockeyManager].authenticator handleOpenURL:url
                                                        sourceApplication:sourceApplication
                                                               annotation:annotation]) {
    return YES;
  }

  /* Your own custom URL handlers */

  return NO;
}

You also need to add RNHockeyApp to Build Settings > Search Paths > Header Search Paths as a recursive search path, adding the following to both Debug and Release and ensuring recursive is selected (double click each line as opposed to editing it as text, and you'll see the dropdowns):

$(SRCROOT)/../node_modules/react-native-hockeyapp/RNHockeyApp

Android (React Native >= 0.29)

Google project configuration

  • In android/setting.gradle
...
include ':react-native-hockeyapp', ':app'
project(':react-native-hockeyapp').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-hockeyapp/android')
  • In android/build.gradle
...
repositories {
    jcenter()
    mavenCentral()
}
dependencies {
    classpath 'com.android.tools.build:gradle:1.3.1'
    classpath 'net.hockeyapp.android:HockeySDK:4.1.0' // <--- add this
}
  • In android/app/build.gradle
apply plugin: "com.android.application"
...
dependencies {
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:0.29.+"
    compile project(":react-native-hockeyapp") // <--- add this
}
  • Manifest file
<application ..>
    <activity android:name="net.hockeyapp.android.UpdateActivity" />
    <activity android:name="net.hockeyapp.android.FeedbackActivity" />
</application>
  • Register Module (in MainApplication.java)
import com.slowpath.hockeyapp.RNHockeyAppModule; // <--- import
import com.slowpath.hockeyapp.RNHockeyAppPackage;  // <--- import

public class MainApplication extends Application implements ReactApplication {
  ......

  @Override
  protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
      new RNHockeyAppPackage(MainApplication.this), // <------ add this line to yout MainApplication class
      new MainReactPackage());
  }

  ......

}

Android (React Native 0.17 - 0.28) - Only react-native-hockeyapp:0.4.2 or less

Google project configuration

  • In android/setting.gradle
...
include ':react-native-hockeyapp', ':app'
project(':react-native-hockeyapp').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-hockeyapp/android')
  • In android/build.gradle
...
repositories {
    jcenter()
    mavenCentral()
}
dependencies {
    classpath 'com.android.tools.build:gradle:1.3.1'
    classpath 'net.hockeyapp.android:HockeySDK:4.1.2' // <--- add this
}
  • In android/app/build.gradle
apply plugin: "com.android.application"
...
dependencies {
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:0.17.+"
    compile project(":react-native-hockeyapp") // <--- add this
}
  • Manifest file
<application ..>
    <activity android:name="net.hockeyapp.android.UpdateActivity" />
    <activity android:name="net.hockeyapp.android.FeedbackActivity" />
</application>
  • Register Module (in MainActivity.java)
import com.slowpath.hockeyapp.RNHockeyAppModule; // <--- import
import com.slowpath.hockeyapp.RNHockeyAppPackage;  // <--- import

public class MainActivity extends ReactActivity {
  ......

  @Override
  protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
      new RNHockeyAppPackage(this), // <------ add this line to yout MainActivity class
      new MainReactPackage());
  }

  ......

}

Usage

From your JS files for both iOS and Android:

var HockeyApp = require('react-native-hockeyapp');

componentWillMount() {
    HockeyApp.configure(HOCKEY_APP_ID, true);
}

componentDidMount() {
    HockeyApp.start();
    HockeyApp.checkForUpdate(); // optional
}

You have available these methods:

HockeyApp.configure(HockeyAppId: string, autoSendCrashReports: boolean = true, authenticationType: AuthenticationType = AuthenticationType.Anonymous, appSecret: string = '', ignoreDefaultHandler: string = false); // Configure the settings
HockeyApp.start(); // Start the HockeyApp integration
HockeyApp.checkForUpdate(); // Check if there's new version and if so trigger update
HockeyApp.feedback(); // Ask user for feedback.
HockeyApp.addMetadata(metadata: object); // Add metadata to crash report.  The argument must be an object with key-value pairs.
HockeyApp.generateTestCrash(); // Generate test crash. Only works in no-debug mode.

The following authentication methods are available:

  1. AuthenticationType.Anonymous - Anonymous Authentication
  2. AuthenticationType.EmailSecret - HockeyApp email & App Secret
  3. AuthenticationType.EmailPassword - HockeyApp email & password
  4. AuthenticationType.DeviceUUID - HockeyApp registered device UUID
  5. AuthenticationType.Web - HockeyApp Web Auth (iOS only)

Contributions

See https://github.com/slowpath/react-native-hockeyapp/graphs/contributors

react-native-hockeyapp's People

Contributors

berickson1 avatar bourgois avatar brianfoody avatar dj-ivan avatar dryganets avatar dtivel avatar grabcode avatar hccoelho avatar huntharo avatar jberendes avatar jeveloper avatar martincik avatar ncnlinh avatar onlydave avatar osdiab avatar piotrtorczynski avatar raffij avatar rspeyer avatar samueljmurray avatar thadcodes avatar thezombielives avatar zalesky avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

react-native-hockeyapp's Issues

Having trouble integrating openURL in AppDelegate.m

I'm new to cocoapods so I'm probably just not setting something up correctly. I have cocoapods installed and my Podfile is as follows:

target 'app' do
  pod "HockeySDK"
end

target 'appTests' do

end

I've run pod install and have a workspace with a Pods subproject which does have HockeySDK under the Pods folder.

The issue is in AppDelegate.m where Xcode is complaining "Use of undeclared identifier "BITHockeyManager". Is there an import that I need or should it just work automatically?

I do have RNHockeyApp.h/.m under Libraries/RNHockeyApp

React native hockeyapp setup not complete

RNHockeyApp isn't showing up in my iOS NativeModules

Under my Libraries: RNHockeyApp.h/m
in my Podfile: pod 'HockeySDK'
in my AppDelegate.m:

#import "RNHockeyApp.h"
...
- (BOOL)application:(UIApplication *)application
          openURL:(NSURL *)url
          sourceApplication:(NSString *)sourceApplication
          annotation:(id)annotation
  {
    if( [[BITHockeyManager sharedHockeyManager].authenticator handleOpenURL:url
                                                        sourceApplication:sourceApplication
                                                               annotation:annotation])
    {
      return YES;
    }

    /* Your own custom URL handlers */

    return NO;
  }

and in Link Binary With Libraries on Build Phases: HockeySDK.framework

Everything compiles successfully but as I said RNHockeyApp is not appearing in NativeModules. Anything look wrong with my setup or any suggestions?

CheckForUpdate not showing update view though availble

Hi,

I integrated this library and testing on android to checkForUpdate I don't see updates though app is on older version than hockeyapp. I see the feedbacks are collected and updated on hockeyapp server but checkForUpdate not working. Have you ever faced this issue before? Following is the code.

     import * as HockeyApp from 'react-native-hockeyapp';

    export class AboutPage extends Component {
    constructor(props) {
        super(props)
    }

   // this function is called upon click of button
    checkUpdate() {
        try{
            console.log('testing1...');
            let appId = '*****************************',
                autoSendCrashes = true;

            HockeyApp.configure(appId, autoSendCrashes);

            HockeyApp.start();
            HockeyApp.checkForUpdate();
            // HockeyApp.feedback();
            console.log('testing2...');
        } catch(e) {
            console.log(e);
        }
    }
    ....

getPackages RNHOckeyAppPackage(this) in MainApplication instead of MainActivity

In react-native 0.55.3 the List<ReactPackage> getPackages() { is in MainApplication.java and not in MainActivity.java.

When I try to add the new RNHockeyAppPackage(this) in the existing getPackages() list, I get: error: incompatible types: <anonymous ReactNativeHost> cannot be converted to Application

If I try with (this.Application) or (this.getApplication) I get symbol not found

If I try just new RNHOckeyAppPackage() I get: constructor RNHockeyAppPackage in class RNHockeyAppPackage cannot be applied to given types;

Multiple dex files define Landroid/support/v7/appcompat/R$anim;

Hey, thanks for making this library great!

I'm having a few issues on Android:

  • React Native 0.27
  • Android 5X 6.0.1

I went through the process manually, I did not use rnpm link

Unknown source file : UNEXPECTED TOP-LEVEL EXCEPTION:
Unknown source file : com.android.dex.DexException: Multiple dex files define Landroid/support/v7/appcompat/R$anim;
Unknown source file :   at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
Unknown source file :   at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
Unknown source file :   at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
Unknown source file :   at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
Unknown source file :   at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
Unknown source file :   at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
Unknown source file :   at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
Unknown source file :   at com.android.dx.command.dexer.Main.run(Main.java:277)
Unknown source file :   at com.android.dx.command.dexer.Main.main(Main.java:245)
Unknown source file :   at com.android.dx.command.Main.main(Main.java:106)

:app:dexDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

Needed to add url scheme to Info.plist

Hi, thanks for making this package. I think it probably saved me some time. I found that I had to add the url scheme to my Info.plist or else the authenticate by UUID would stall on redirect. My url scheme looks like ha<my-hockey-app-id which is something like, habf9a26738d294c90b530cfcc733bae91. If this is something you can automate, great. Otherwise it would be helpful to add it to the readme.

[Question] Only triggered test crashes are visible in Hockeys Dashboard

I'm pretty sure that this doesn't have any to do with this fantastic library itself!

I just want to know, if there are other RN-developers out there facing the same issue. Of of our RN-Apps will crash after a while of usage and we still try to find the root cause. But these crashes won't appear on Hockey, while "generateTestCrash()" generates a crashlog and can be watched at the Dashboard.

Any experiences so far available with similar cases?

Update popup not showing on checkForUpdate (iOS)

Hi!

I'm having some troubles displaying the update popup when running the checkForUpdate method. The code is straight from the guide and sessions as well as crash reports are registered in the HockeyApp dashboard. No errors are shown in the logs.

  componentWillMount () {
    HockeyApp.configure('APP_ID', true)
    console.log('WILL MOUNT', HockeyApp)
  }

  componentDidMount () {
    HockeyApp.start()
    HockeyApp.checkForUpdate()
  }

Steps:

  • Upload version 1.0.0 to HockeyApp
  • Install it on the iPhone
  • Upload version 1.0.1 to HockeyApp
  • Restart the app on the iPhone and wait for the popup (which never shows)

All help is much appreciated!

Null pointer exception during call to HockeyApp.start() on Android

The exception is happening while calling currentActivity.getClass() inside RNHockeyAppModule.start method. We are calling the start method from inside componentDidMount of our app's main component, just like the documentation suggests. The configure is called from componentWillMount. The following is the call stack reported by the HockeyApp crash report:

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
	at com.slowpath.hockeyapp.RNHockeyAppModule.start(RNHockeyAppModule.java:105)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:318)
	at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:158)
	at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
	at android.os.Looper.loop(Looper.java:158)
	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:196)
	at java.lang.Thread.run(Thread.java:818)

Additional info:
react-native version: 0.35.0
react-native-hockeyapp version: 0.5.0
android version: 6.0.1
device: Samsung (SM-G900V)

iOS build failure - fatal error: 'HockeySDK/HockeySDK.h' file not found

It seems like I'm missing a step in adding the HockeyApp SDK to my project. I've followed the instructions in this repo, various instructions from HockeyApp, and everything I can find via Google with no luck.

When building the project, I get the following error:
node_modules/react-native-hockeyapp/RNHockeyApp/RNHockeyApp.h:9:9: 'HockeySDK/HockeySDK.h' file not found

I'm using react-native 0.47.1.

Feedback/Crash does not show up in HockeyApp

I followed the instructions and tried to generate feedback and the default crash from the application, but do not see them in HockeyApp. I have used the right App Id from HockeyApp. I am trying to generate the feedback form on signing out of the application.

Here is the React-Native code:

componentWillReceiveProps(nextProps) {
if (nextProps.showFeedbackForm === true) {
HockeyApp.start();
HockeyApp.feedback();
}
}

componentDidMount() {
    HockeyApp.start();
    HockeyApp.checkForUpdate();
    HockeyApp.generateTestCrash();
}

componentWillMount() {
    HockeyApp.configure({HOCKEYAPP_ID}, true);
}

Any idea what i may be dong wrong? Any help would be greatly appreciated. Thanks.

How to build and upload android app

Solved see 2nd comment below

I ran my react-native (non-expo i.e. disconnected) app with react-native run-android (on my pc) and got an App-Debug.apk I uploaded that and it seems it doesn't work. I get a white screen.
(How can I see the console.log messages or any type of log?)

For loading on HockeyApp, was I supposed to compile the react native app in android studio as a regular app, not a debug one? With expo I knew how to do that. But no expo now. If so, and I must compile, how do I do that? Any pointer?

Your instructions reach that point but don't explain what else I need to do. When I ran the app on my connected device through run-android I think (but not sure anymore that) it loaded something shown on the hockeyapp dashboard, but not sure what.

I loaded the android device with the link provided, (and I also loaded an IOS device, which I'll soon configure separately).

Any help appreciated.

Change the UI of the feedback screen

I am using the HockeyApp.feedback() for displaying the feedback screen.

I need to pre-populate Name and Email and change the UI of it. Is there a way to replace the Feedback activity completely with RN so that I can have complete control over it?

Building on iOS fails after npm install react-native-hockeyapp and rnpm link

I only ran the following 2 commands:

npm install --save react-native-hockeyapp
rnpm link

This all goes well. But then the IOS app (haven't tried Android) won't build anymore. I get the following error in Xcode:
node_modules/react-native-hockeyapp/ios/RNHockeyApp/RNHockeyApp.h:4:9: 'RCTBridgeModule.h' file not found

Any ideas? Really struggling to get it working.

(Android) HockeyApp authentication can be skipped using hardware back button

react-native 0.41.2
react-native-hockeyapp 0.5.1

Unexpected behavior:
We use the HockeyApp authentication type = 2 (emailPassword). After installing our app and launching it, the HockeyApp authentication screen is presented to the user. Users on an Android device can skip the HockeyApp authentication using the hardware back button and this will take them directly to our app. We also discussed this with the HockeyApp team and they suggested we change the HockeyApp SDK version to their latest (4.1.3) but this has not made the issue go away.

Expected
It should not be possible for a user to skip the HockeyApp authentication. Maybe an idea is to disable the hardware back button when the HockeyApp authentication screen is up or to exit the app when the user hits the hardware back button.

Not seeing any update popup or dialogs for Android

I have followed each and every step mentioned by you.
Configured the App Id inside my index.android.js file

componentWillMount() {
HockeyApp.configure("ff27b86c87b547669e19faf4xxxxxxxxx", false);
}

componentDidMount() {
console.log('test');
HockeyApp.start();
HockeyApp.checkForUpdate();
}

Also made all the necessary changes inside the android folders.
I created 2 apps (version 1 & 1.1) and hosted them on HockeyApp with Mandatory update radio checked on for each of the versions.
I do not see any update dialogs when I install and launch the app. There are no errors as well. What am I missing. Kindly suggest.

Thanks.

Issue with currentActivity.getClass when using RN 0.30 on Android

Hi

We upgraded our app to RN 0.30 and while it works on iOS, it crash immediately at launch on Android:

  • AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
  • AndroidRuntime: at com.slowpath.hockeyapp.RNHockeyAppModule.start(RNHockeyAppModule.java:105)

This seems to be an issue with:
LoginManager.register(_context, _token, _appSecret, authenticationMode, currentActivity.getClass());

Any idea what we are doing wrong?
The only other thing we see in the logs is: "FATAL EXCEPTION: mqt_native_modules"

Thanks!

wanted: guidance resolving overridden build settings that come with react-native OOTB

CocoaPods installation throws a couple of warnings:

[!] The `myapp [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-myapp/Pods-myapp.debug.xcconfig'. This can lead to problems with the CocoaPods installation
   - Use the `$(inherited)` flag, or
   - Remove the build settings from the target.

[!] The `myapp [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-myapp/Pods-myapp.release.xcconfig'. This can lead to problems with the CocoaPods installation
   - Use the `$(inherited)` flag, or
   - Remove the build settings from the target.

This is when run against a pretty small react-native project (rn version 0.20.0) with just a couple of third-party react-native modules, which makes me think this will be a common problem that developers will face. If that's accurate, providing some guidance in the README for resolving it would help welcome.

Lint error

you can add:
lintOptions {
disable 'InvalidPackage'
}

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-hockeyapp:lint'.
> Lint found errors in the project; aborting build.
  
  Fix the issues identified by lint, or add the following to your build script to proceed with errors:
  ...
  android {
      lintOptions {
          abortOnError false
      }
  }

../../../../../../../.m2/repository/com/squareup/okio/okio/1.6.0/okio-1.6.0.jar: Invalid package reference in library; not included in Android: java.nio.file. Referenced from okio.Okio.

Is Universal Windows Platform supported?

I'm working on a hybrid app mixing React Native and a Windows (UWP) application and trying to setup HockeyApp as crash reporter.

I have it up on Windows but I cannot get it working on React Native. I always see the error references here #27

I'm wondering if UWP is supported at all.

(ios) Apple Mach-O Linker Error

Hi,
I got error "Apple Mach-O Linker Error" when trying to build the app from XCode.
Could you guys help me to figure out how to fix this issue?
Thanks

iOS cocoapods configuration in README is wrong

The current README specifies to add the following line to the Podfile:

pod "HockeySDK"

But this does not install the full SDK which enables the feedback feature, for instance. To do so, that line should be:

pod "HockeySDK", :subspecs => ['AllFeaturesLib']

Feature Request: User Authentication

HockeyApp SDK supports the following:
Anonymous auth
Device UUID Auth
HockyApp User Login Auth
Email Auth
Web Auth

react-native-hockeyapp only supports anonymous. Are there any plans to support additional authentication mechanisms?

Possibly wrong path in README.md

Is there possibly a wrong include in the README.md? The module will installed under ../node_modules/hockeyapp-react-native and not ../node_modules/react-native-hockeyapp

Or do I something wrong?

Actual in the README.md

include ':react-native-hockeyapp', ':app'
project(':react-native-hockeyapp').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-hockeyapp/android')

Expected to build in android/settings.gradle

include ':react-native-hockeyapp'
project(':react-native-hockeyapp').projectDir = new File(rootProject.projectDir, '../node_modules/hockeyapp-react-native/android')

Report JavaScript level errors / exceptions

Is it possible to report JavaScript level exceptions, such as a rejected promise that do not need to crash the app, to hockey app? ๐Ÿค”

For android it is possible to make use of ExceptionHandler.saveException to send caught exceptions to hockey app, but I'm not sure if the same functionality exists for iOS.

Is this API something that would make sense to add to this library? Let me know your thoughts and I might be able to work towards a PR ๐Ÿ‘

MS Mobile center to replace hockey

Hi Folks,

Appreciate you making this library. I did want to give you heads up that MS Mobile Center is going to replace hockeyapp.
I recently used it (its still preview) and noticed that they use hockeyapp underneath, however its a brand new SDK , supports react native with separate modules for analytics , crash.

I would suggest slowing down on contribution here. Perhaps a note on readme would be useful ?

Thank you so much for great work !

ps. im not a microsoft employee

Does this package shows JavaScript stack trace in HockeyApp?

Hello,

Thanks for the package.
I'm building my iOS app with React Native and I already integrated HockeyApp SDK and simulated a crash and it appears to work.
The problem is that I can't see any relevant data to the crash (JS Error, stack trace etc) I can only see the Objective-C information.

Does this package sends JS stack trace and other data?

Compilation issues with Android Studio

// build.gradle(Project: SimpleWebView)
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'net.hockeyapp.android:HockeySDK:4.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

// build.gradle (Module.app)
dependencies {
compile project(':react-native-cookies')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules
// compile 'net.hockeyapp.android:HockeySDK:4.1.2'
compile project(":react-native-hockeyapp")
}

The moment I add compile project(":react-native-hockeyapp"), I get Gradle compilation issues
Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :react-native-hockeyapp.
Unable to resolve dependency for :app@debug/compileClasspath: Could not resolve project :react-native-hockeyapp.

Is anyone having similar issues?

RN 28 incompatible types

cannot be converted to Application

error: incompatible types: MainActivity cannot be converted to Application
new RNHockeyAppPackage(this),
^

This should lib should work for RN 28

0.5

JS Line numbers in Crash report

Hey folks,

Is it possible to get even the minified line number from where the crash occurred in the JS with this package? All I see in all the crash reports so far is native Java code (I'm running on android).

EDIT: I just read some of the HockeyApp docs and realised they don't officially support handled exceptions so I removed that from the issue.

Publish new version

We're encountering the same bug that is fixed in this commit: 224a447

Can you please publish a new version of react-native-hockeyapp?

setup instructions for iOS incorrectly say to add entire RNHockeyApp folder

The instructions say to add the entire RNHockeyApp folder to your project.

Add the RNHockeyApp/ folder to your project

Drag-and-drop from ./node_modules/react-native-hockeyapp/RNHockeyApp folder to your Project > Libraries.

This doesn't work, at least when performed against react-native v0.20.0.

The correct procedure is to add the two files inside the RNHockeyApp folder.

BUILD FAILED on iOS, fatal error: 'HockeySDK/HockeySDK.h' file not found

I've been unable to get my application to run on iOS using the instructions on the homepage. Here's what I've done:

1. Create ios/Podfile

target 'sweetgreen_family' do
  pod 'HockeySDK'
end

2. Run pod install from ios/

Results:

Analyzing dependencies
Downloading dependencies
Installing HockeySDK (4.1.6)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `myapp.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

[!] Automatically assigning platform ios with version 8.0 on target myapp because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

3. Open myapp.xcodeproj in Xcode and drag ./ios/Pods/Pods.xcodeproj and the contents of ./node_modules/react-native-hockeyapp/RNHockeyApp into the Libraries section.

Results:
screen shot 2017-07-26 at 3 11 44 pm

4. Run react-native run-ios

Results: BUILD FAILED with

In file included from /Users/brennan/code/myapp/node_modules/react-native-hockeyapp/RNHockeyApp/RNHockeyApp.m:1:
/Users/brennan/code/myapp/node_modules/react-native-hockeyapp/RNHockeyApp/RNHockeyApp.h:9:9: fatal error: 'HockeySDK/HockeySDK.h' file not found
#import <HockeySDK/HockeySDK.h>

This results in the red "react-native-hockeyapp platform setup not complete" screen in the app.

What am I doing wrong?

Xcode V9.2 errors

After I have upgrade my xCode to version 9.2, it's showing the error related to swift as screenshot :

Property 'authenticator' not found on object of type 'BITHockeyManager [*']

this issue related to old code written by objective c language
screen shot 2018-01-10 at 5 14 01 pm copy

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.