Skip to content

Commit 38245bd

Browse files
Add AndroidNativeDialogs as a module
1 parent 27174f2 commit 38245bd

File tree

4 files changed

+34
-23
lines changed

4 files changed

+34
-23
lines changed

InstabugSample/android/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,14 @@ android {
123123
}
124124
}
125125
}
126+
repositories {
127+
maven { url "https://jitpack.io" }
128+
}
126129
}
127130

128131
dependencies {
129132
compile project(':instabug-reactnative')
133+
compile project(':react-native-dialogs')
130134
compile fileTree(dir: "libs", include: ["*.jar"])
131135
compile "com.android.support:appcompat-v7:23.0.1"
132136
compile "com.facebook.react:react-native:+" // From node_modules

InstabugSample/android/app/src/main/java/com/instabugsample/MainApplication.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import android.util.Log;
55

66
import com.facebook.react.ReactApplication;
7+
import com.aakashns.reactnativedialogs.ReactNativeDialogsPackage;
78
import com.instabug.reactlibrary.RNInstabugReactnativePackage;
89
import com.facebook.react.ReactInstanceManager;
910
import com.facebook.react.ReactNativeHost;
@@ -26,7 +27,10 @@ public boolean getUseDeveloperSupport() {
2627
protected List<ReactPackage> getPackages() {
2728
return Arrays.<ReactPackage>asList(
2829
new MainReactPackage(),
29-
new RNInstabugReactnativePackage("YOUR_ANDROID_APPLICATION_TOKEN",MainApplication.this,"button")
30+
new ReactNativeDialogsPackage(),
31+
new RNInstabugReactnativePackage("YOUR_ANDROID_APPLICATION_TOKEN",
32+
MainApplication.this,"button")
33+
3034
);
3135
}
3236
};

InstabugSample/android/settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
rootProject.name = 'InstabugSample'
2+
include ':react-native-dialogs'
3+
project(':react-native-dialogs').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-dialogs/android')
24
include ':instabug-reactnative'
35
project(':instabug-reactnative').projectDir = new File(rootProject.projectDir, '../node_modules/instabug-reactnative/android')
46

InstabugSample/package.json

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
{
2-
"name": "InstabugSample",
3-
"version": "0.0.1",
4-
"private": true,
5-
"scripts": {
6-
"start": "node_modules/react-native/packager/packager.sh",
7-
"test": "jest"
8-
},
9-
"dependencies": {
10-
"instabug-reactnative": "file:../",
11-
"react": "15.4.2",
12-
"react-native": "^0.41.2"
13-
},
14-
"devDependencies": {
15-
"babel-jest": "18.0.0",
16-
"babel-preset-react-native": "1.9.1",
17-
"jest": "18.1.0",
18-
"react-test-renderer": "15.4.2"
19-
},
20-
"jest": {
21-
"preset": "react-native"
22-
}
23-
}
2+
"name": "InstabugSample",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"start": "node_modules/react-native/packager/packager.sh",
7+
"test": "jest"
8+
},
9+
"dependencies": {
10+
"instabug-reactnative": "git+https://github.com/Instabug/instabug-reactnative.git#master",
11+
"react": "15.4.2",
12+
"react-native": "^0.41.2",
13+
"react-native-dialogs": "0.0.19"
14+
},
15+
"devDependencies": {
16+
"babel-jest": "18.0.0",
17+
"babel-preset-react-native": "1.9.1",
18+
"jest": "18.1.0",
19+
"react-test-renderer": "15.4.2"
20+
},
21+
"jest": {
22+
"preset": "react-native"
23+
}
24+
}

0 commit comments

Comments
 (0)