reactnative-plugin-appice 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -37
- package/android/README.md +14 -14
- package/android/android.iml +150 -150
- package/android/build.gradle +152 -152
- package/android/gitignore +47 -47
- package/android/src/main/AndroidManifest.xml +234 -234
- package/android/src/main/java/com/reactlibrary/AppICEUtils.java +38 -38
- package/android/src/main/java/com/reactlibrary/AppIceReactPluginModule.java +473 -473
- package/android/src/main/java/com/reactlibrary/AppIceReactPluginPackage.java +28 -28
- package/android/src/main/java/com/reactlibrary/CampaignCampsReceiver.java +73 -73
- package/android/src/main/java/com/reactlibrary/InAppWebView.java +67 -67
- package/android/src/main/java/com/reactlibrary/NotificationEventService.java +62 -62
- package/example/App.js +148 -148
- package/example/Gemfile +6 -6
- package/example/__tests__/App-test.js +14 -14
- package/example/android/app/_BUCK +55 -55
- package/example/android/app/build.gradle +320 -320
- package/example/android/app/build_defs.bzl +19 -19
- package/example/android/app/proguard-rules.pro +10 -10
- package/example/android/app/src/debug/AndroidManifest.xml +13 -13
- package/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java +73 -73
- package/example/android/app/src/main/AndroidManifest.xml +72 -72
- package/example/android/app/src/main/java/com/example/MainActivity.java +48 -48
- package/example/android/app/src/main/java/com/example/MainApplication.java +91 -91
- package/example/android/app/src/main/java/com/example/newarchitecture/MainApplicationReactNativeHost.java +116 -116
- package/example/android/app/src/main/java/com/example/newarchitecture/components/MainComponentsRegistry.java +36 -36
- package/example/android/app/src/main/java/com/example/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -48
- package/example/android/app/src/main/jni/Android.mk +48 -48
- package/example/android/app/src/main/jni/MainApplicationModuleProvider.cpp +24 -24
- package/example/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -16
- package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -45
- package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -38
- package/example/android/app/src/main/jni/MainComponentsRegistry.cpp +61 -61
- package/example/android/app/src/main/jni/MainComponentsRegistry.h +32 -32
- package/example/android/app/src/main/jni/OnLoad.cpp +11 -11
- package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -36
- package/example/android/app/src/main/res/values/strings.xml +3 -3
- package/example/android/app/src/main/res/values/styles.xml +9 -9
- package/example/android/build.gradle +53 -53
- package/example/android/gradle/wrapper/gradle-wrapper.properties +5 -5
- package/example/android/gradle.properties +40 -40
- package/example/android/gradlew +234 -234
- package/example/android/settings.gradle +11 -11
- package/example/app.json +3 -3
- package/example/babel.config.js +3 -3
- package/example/index.js +9 -9
- package/example/ios/Podfile +44 -44
- package/example/ios/Podfile.lock +561 -561
- package/example/ios/_xcode.env +11 -11
- package/example/ios/example/AppDelegate.h +8 -8
- package/example/ios/example/AppDelegate.mm +174 -174
- package/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json +53 -53
- package/example/ios/example/Images.xcassets/Contents.json +6 -6
- package/example/ios/example/Info.plist +62 -62
- package/example/ios/example/LaunchScreen.storyboard +47 -47
- package/example/ios/example/example.entitlements +8 -8
- package/example/ios/example/main.m +10 -10
- package/example/ios/example.xcodeproj/project.pbxproj +712 -712
- package/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme +88 -88
- package/example/ios/example.xcworkspace/contents.xcworkspacedata +10 -10
- package/example/ios/example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
- package/example/ios/exampleTests/Info.plist +24 -24
- package/example/ios/exampleTests/exampleTests.m +66 -66
- package/example/metro.config.js +17 -17
- package/example/package.json +34 -34
- package/index.js +124 -124
- package/ios/AppICEReactEvent.h +23 -23
- package/ios/AppICEReactEvent.m +86 -77
- package/ios/AppIceReactPlugin.h +22 -22
- package/ios/AppIceReactPlugin.m +190 -191
- package/ios/AppIceReactPlugin.xcodeproj/project.pbxproj +364 -434
- package/ios/AppIceReactPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -4
- package/ios/AppIceReactPlugin.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
- package/ios/AppIceReactPlugin.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/xcschememanagement.plist +14 -14
- package/ios/AppIceReactPlugin.xcworkspace/contents.xcworkspacedata +10 -10
- package/ios/AppIceReactPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
- package/ios/Podfile +10 -10
- package/ios/Podfile.lock +3 -3
- package/ios/Pods/Manifest.lock +3 -3
- package/ios/Pods/Pods.xcodeproj/project.pbxproj +395 -395
- package/ios/Pods/Pods.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/Pods-AppIceReactPlugin.xcscheme +58 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/xcschememanagement.plist +18 -18
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-Info.plist +26 -26
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-acknowledgements.markdown +3 -3
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-acknowledgements.plist +29 -29
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-dummy.m +5 -5
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-umbrella.h +16 -16
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.debug.xcconfig +6 -6
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.modulemap +6 -6
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.release.xcconfig +6 -6
- package/package.json +40 -40
- package/reactnative-plugin-appice.podspec +30 -30
- package/ios/AppICESDK/appICE.momd/VersionInfo.plist +0 -0
- package/ios/AppICESDK/appICE.momd/appICE 2.mom +0 -0
- package/ios/AppICESDK/appICE.momd/appICE 3.mom +0 -0
- package/ios/AppICESDK/appICE.momd/appICE 4.mom +0 -0
- package/ios/AppICESDK/appICE.momd/appICE 4.omo +0 -0
- package/ios/AppICESDK/appICE.momd/appICE.mom +0 -0
- package/ios/AppICESDK/appICE.momd/appICE2.mom +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/APPChildViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/AppICE_btn.png +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/Black button.png +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/HAlfFooterNOTINAppViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/HAlfHeaderINAppViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/HAlfINAppViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/INAppViewController.nib/objects-11.0+.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/INAppViewController.nib/runtime.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/Info.plist +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/RatingViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/SurveyViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/checked.png +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/close-button.png +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/sound2.caf +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/unchecked.png +0 -0
- package/ios/AppICESDK/include/iosAppiceSDK/AppICEInboxMessage.h +0 -43
- package/ios/AppICESDK/include/iosAppiceSDK/AppICEJSInterface.h +0 -21
- package/ios/AppICESDK/include/iosAppiceSDK/appICE.h +0 -190
- package/ios/AppICESDK/include/iosAppiceSDK/appICEUserDetails.h +0 -87
- package/ios/AppICESDK/include/iosAppiceSDK/isrgrootx1.der +0 -0
- package/ios/AppICESDK/include/iosAppiceSDK/lets-encrypt-r3.der +0 -0
- package/ios/AppICESDK/libiosAppiceSDK_v1.7.56.a +0 -0
package/example/App.js
CHANGED
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sample React Native App
|
|
3
|
-
* https://github.com/facebook/react-native
|
|
4
|
-
*
|
|
5
|
-
* @format
|
|
6
|
-
* @flow strict-local
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import { Alert,
|
|
11
|
-
Text,
|
|
12
|
-
Platform,
|
|
13
|
-
Image,
|
|
14
|
-
Linking,
|
|
15
|
-
Button,
|
|
16
|
-
View
|
|
17
|
-
} from 'react-native';
|
|
18
|
-
|
|
19
|
-
const AppICE = require('reactnative-plugin-appice');
|
|
20
|
-
const HelloWorldApp = () => {
|
|
21
|
-
const certs = [];
|
|
22
|
-
if (AppICE) {
|
|
23
|
-
console.log('AppICE is available');
|
|
24
|
-
AppICE.startContext(
|
|
25
|
-
// '5bebe93c25d705690ffbc758',
|
|
26
|
-
// '9e9ec60197c8373a11ac15ce4dae80e973608ab2',
|
|
27
|
-
// 'd985715d1bb48942d36d5d08de3b6a8c',
|
|
28
|
-
// '7a55ba2f-52c3-4d88-917d-0365e2f7c9cf',
|
|
29
|
-
// "US",
|
|
30
|
-
// "https://stagingapi.appice.io",
|
|
31
|
-
"5bebe93c25d705690ffbc758",
|
|
32
|
-
"9e9ec60197c8373a11ac15ce4dae80e973608ab2",
|
|
33
|
-
"844770e0edf3b795cd7508fa71789572",
|
|
34
|
-
"",
|
|
35
|
-
"US",
|
|
36
|
-
"https://a.appice.io",
|
|
37
|
-
|
|
38
|
-
certs);
|
|
39
|
-
}
|
|
40
|
-
addAppICEAPIListeners();
|
|
41
|
-
return (
|
|
42
|
-
<View
|
|
43
|
-
style={{
|
|
44
|
-
flex: 1,
|
|
45
|
-
justifyContent: "center",
|
|
46
|
-
alignItems: "center",
|
|
47
|
-
marginBottom: 10,
|
|
48
|
-
|
|
49
|
-
}}>
|
|
50
|
-
<Text>AppICE React Demo</Text>
|
|
51
|
-
<Button
|
|
52
|
-
onPress={sendEvent}
|
|
53
|
-
title="Send Event"
|
|
54
|
-
color="#841584"
|
|
55
|
-
|
|
56
|
-
/>
|
|
57
|
-
<View
|
|
58
|
-
>
|
|
59
|
-
|
|
60
|
-
</View>
|
|
61
|
-
<Button
|
|
62
|
-
onPress={setUserProfile}
|
|
63
|
-
title="set User Profile"
|
|
64
|
-
color="#841584"
|
|
65
|
-
|
|
66
|
-
/>
|
|
67
|
-
|
|
68
|
-
<Button
|
|
69
|
-
onPress={setSampleUserID}
|
|
70
|
-
title="set Sample User ID"
|
|
71
|
-
color="#841584"
|
|
72
|
-
|
|
73
|
-
/>
|
|
74
|
-
<Button
|
|
75
|
-
onPress={setLanguage}
|
|
76
|
-
title="set Language"
|
|
77
|
-
color="#841584"
|
|
78
|
-
|
|
79
|
-
/>
|
|
80
|
-
<Button
|
|
81
|
-
onPress={sendView}
|
|
82
|
-
title="Send View"
|
|
83
|
-
color="#841584"
|
|
84
|
-
|
|
85
|
-
/>
|
|
86
|
-
</View>
|
|
87
|
-
)
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function addAppICEAPIListeners() {
|
|
92
|
-
|
|
93
|
-
console.log('handleAppICETapEvent');
|
|
94
|
-
|
|
95
|
-
AppICE.addListener(AppICE.AppICEPushNotificationClicked, (event) => {
|
|
96
|
-
if (typeof event !== 'undefined'){
|
|
97
|
-
console.log('handleAppICETapEvent', AppICE.AppICEPushNotificationClicked, event.AppICEPushNotificationClicked);
|
|
98
|
-
AppICE.pushNotificationClicked(event.AppICEPushNotificationClicked);
|
|
99
|
-
//fetching custom data from push payload
|
|
100
|
-
var data = AppICE.getCustomDataFromPayload(event.AppICEPushNotificationClicked);
|
|
101
|
-
console.log(data);
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
AppICE.addListener(AppICE.AppICEInAppClicked, (event) => {
|
|
106
|
-
if (typeof event !== 'undefined'){
|
|
107
|
-
console.log('handleAppICETapEvent', AppICE.AppICEInAppClicked, event.AppICEInAppClicked);
|
|
108
|
-
// AppICE.pushNotificationClicked(event.AppICEInAppClicked);
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
const sendEvent = () => {
|
|
113
|
-
console.log("inside sendEvent");
|
|
114
|
-
var dataObj = {
|
|
115
|
-
"ClickedMenuBtn": "false",
|
|
116
|
-
"CLickedSubmitBtn": "false",
|
|
117
|
-
"AppName": "ReactSampleApp"
|
|
118
|
-
};
|
|
119
|
-
AppICE.tagEvent("ReactSampleApp", dataObj);
|
|
120
|
-
//Recording an Event
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
const setUserProfile = () => {
|
|
125
|
-
AppICE.setUser({
|
|
126
|
-
[AppICE.name]: 'testUserA1', [AppICE.phone]: '123456', [AppICE.email]: 'test@test.com', [AppICE.age]: 23
|
|
127
|
-
});
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
const setSampleUserID = () => {
|
|
131
|
-
AppICE.setUserId(['1232323','kuOEN8bCqdrROmJPVCeKSg==']);
|
|
132
|
-
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
const setLanguage = () => {
|
|
136
|
-
AppICE.setCustomVariable("_lang", "ar-AE");
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
AppICE.sendClickCallback((value) => {
|
|
140
|
-
console.log(`INAPP callback`, value);
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
};
|
|
144
|
-
const sendView = () => {
|
|
145
|
-
AppICE.tagEvent("HomeScreen", {});
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export default HelloWorldApp;
|
|
1
|
+
/**
|
|
2
|
+
* Sample React Native App
|
|
3
|
+
* https://github.com/facebook/react-native
|
|
4
|
+
*
|
|
5
|
+
* @format
|
|
6
|
+
* @flow strict-local
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { Alert,
|
|
11
|
+
Text,
|
|
12
|
+
Platform,
|
|
13
|
+
Image,
|
|
14
|
+
Linking,
|
|
15
|
+
Button,
|
|
16
|
+
View
|
|
17
|
+
} from 'react-native';
|
|
18
|
+
|
|
19
|
+
const AppICE = require('reactnative-plugin-appice');
|
|
20
|
+
const HelloWorldApp = () => {
|
|
21
|
+
const certs = [];
|
|
22
|
+
if (AppICE) {
|
|
23
|
+
console.log('AppICE is available');
|
|
24
|
+
AppICE.startContext(
|
|
25
|
+
// '5bebe93c25d705690ffbc758',
|
|
26
|
+
// '9e9ec60197c8373a11ac15ce4dae80e973608ab2',
|
|
27
|
+
// 'd985715d1bb48942d36d5d08de3b6a8c',
|
|
28
|
+
// '7a55ba2f-52c3-4d88-917d-0365e2f7c9cf',
|
|
29
|
+
// "US",
|
|
30
|
+
// "https://stagingapi.appice.io",
|
|
31
|
+
"5bebe93c25d705690ffbc758",
|
|
32
|
+
"9e9ec60197c8373a11ac15ce4dae80e973608ab2",
|
|
33
|
+
"844770e0edf3b795cd7508fa71789572",
|
|
34
|
+
"",
|
|
35
|
+
"US",
|
|
36
|
+
"https://a.appice.io",
|
|
37
|
+
|
|
38
|
+
certs);
|
|
39
|
+
}
|
|
40
|
+
addAppICEAPIListeners();
|
|
41
|
+
return (
|
|
42
|
+
<View
|
|
43
|
+
style={{
|
|
44
|
+
flex: 1,
|
|
45
|
+
justifyContent: "center",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
marginBottom: 10,
|
|
48
|
+
|
|
49
|
+
}}>
|
|
50
|
+
<Text>AppICE React Demo</Text>
|
|
51
|
+
<Button
|
|
52
|
+
onPress={sendEvent}
|
|
53
|
+
title="Send Event"
|
|
54
|
+
color="#841584"
|
|
55
|
+
|
|
56
|
+
/>
|
|
57
|
+
<View
|
|
58
|
+
>
|
|
59
|
+
|
|
60
|
+
</View>
|
|
61
|
+
<Button
|
|
62
|
+
onPress={setUserProfile}
|
|
63
|
+
title="set User Profile"
|
|
64
|
+
color="#841584"
|
|
65
|
+
|
|
66
|
+
/>
|
|
67
|
+
|
|
68
|
+
<Button
|
|
69
|
+
onPress={setSampleUserID}
|
|
70
|
+
title="set Sample User ID"
|
|
71
|
+
color="#841584"
|
|
72
|
+
|
|
73
|
+
/>
|
|
74
|
+
<Button
|
|
75
|
+
onPress={setLanguage}
|
|
76
|
+
title="set Language"
|
|
77
|
+
color="#841584"
|
|
78
|
+
|
|
79
|
+
/>
|
|
80
|
+
<Button
|
|
81
|
+
onPress={sendView}
|
|
82
|
+
title="Send View"
|
|
83
|
+
color="#841584"
|
|
84
|
+
|
|
85
|
+
/>
|
|
86
|
+
</View>
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function addAppICEAPIListeners() {
|
|
92
|
+
|
|
93
|
+
console.log('handleAppICETapEvent');
|
|
94
|
+
|
|
95
|
+
AppICE.addListener(AppICE.AppICEPushNotificationClicked, (event) => {
|
|
96
|
+
if (typeof event !== 'undefined'){
|
|
97
|
+
console.log('handleAppICETapEvent', AppICE.AppICEPushNotificationClicked, event.AppICEPushNotificationClicked);
|
|
98
|
+
AppICE.pushNotificationClicked(event.AppICEPushNotificationClicked);
|
|
99
|
+
//fetching custom data from push payload
|
|
100
|
+
var data = AppICE.getCustomDataFromPayload(event.AppICEPushNotificationClicked);
|
|
101
|
+
console.log(data);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
AppICE.addListener(AppICE.AppICEInAppClicked, (event) => {
|
|
106
|
+
if (typeof event !== 'undefined'){
|
|
107
|
+
console.log('handleAppICETapEvent', AppICE.AppICEInAppClicked, event.AppICEInAppClicked);
|
|
108
|
+
// AppICE.pushNotificationClicked(event.AppICEInAppClicked);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
const sendEvent = () => {
|
|
113
|
+
console.log("inside sendEvent");
|
|
114
|
+
var dataObj = {
|
|
115
|
+
"ClickedMenuBtn": "false",
|
|
116
|
+
"CLickedSubmitBtn": "false",
|
|
117
|
+
"AppName": "ReactSampleApp"
|
|
118
|
+
};
|
|
119
|
+
AppICE.tagEvent("ReactSampleApp", dataObj);
|
|
120
|
+
//Recording an Event
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
const setUserProfile = () => {
|
|
125
|
+
AppICE.setUser({
|
|
126
|
+
[AppICE.name]: 'testUserA1', [AppICE.phone]: '123456', [AppICE.email]: 'test@test.com', [AppICE.age]: 23
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const setSampleUserID = () => {
|
|
131
|
+
AppICE.setUserId(['1232323','kuOEN8bCqdrROmJPVCeKSg==']);
|
|
132
|
+
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const setLanguage = () => {
|
|
136
|
+
AppICE.setCustomVariable("_lang", "ar-AE");
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
AppICE.sendClickCallback((value) => {
|
|
140
|
+
console.log(`INAPP callback`, value);
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
};
|
|
144
|
+
const sendView = () => {
|
|
145
|
+
AppICE.tagEvent("HomeScreen", {});
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export default HelloWorldApp;
|
package/example/Gemfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
source 'https://rubygems.org'
|
|
2
|
-
|
|
3
|
-
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
|
|
4
|
-
ruby '2.7.5'
|
|
5
|
-
|
|
6
|
-
gem 'cocoapods', '~> 1.11', '>= 1.11.2'
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
|
+
|
|
3
|
+
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
|
|
4
|
+
ruby '2.7.5'
|
|
5
|
+
|
|
6
|
+
gem 'cocoapods', '~> 1.11', '>= 1.11.2'
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @format
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import 'react-native';
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import App from '../App';
|
|
8
|
-
|
|
9
|
-
// Note: test renderer must be required after react-native.
|
|
10
|
-
import renderer from 'react-test-renderer';
|
|
11
|
-
|
|
12
|
-
it('renders correctly', () => {
|
|
13
|
-
renderer.create(<App />);
|
|
14
|
-
});
|
|
1
|
+
/**
|
|
2
|
+
* @format
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import 'react-native';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import App from '../App';
|
|
8
|
+
|
|
9
|
+
// Note: test renderer must be required after react-native.
|
|
10
|
+
import renderer from 'react-test-renderer';
|
|
11
|
+
|
|
12
|
+
it('renders correctly', () => {
|
|
13
|
+
renderer.create(<App />);
|
|
14
|
+
});
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
# To learn about Buck see [Docs](https://buckbuild.com/).
|
|
2
|
-
# To run your application with Buck:
|
|
3
|
-
# - install Buck
|
|
4
|
-
# - `npm start` - to start the packager
|
|
5
|
-
# - `cd android`
|
|
6
|
-
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
|
|
7
|
-
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
|
|
8
|
-
# - `buck install -r android/app` - compile, install and run application
|
|
9
|
-
#
|
|
10
|
-
|
|
11
|
-
load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
|
|
12
|
-
|
|
13
|
-
lib_deps = []
|
|
14
|
-
|
|
15
|
-
create_aar_targets(glob(["libs/*.aar"]))
|
|
16
|
-
|
|
17
|
-
create_jar_targets(glob(["libs/*.jar"]))
|
|
18
|
-
|
|
19
|
-
android_library(
|
|
20
|
-
name = "all-libs",
|
|
21
|
-
exported_deps = lib_deps,
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
android_library(
|
|
25
|
-
name = "app-code",
|
|
26
|
-
srcs = glob([
|
|
27
|
-
"src/main/java/**/*.java",
|
|
28
|
-
]),
|
|
29
|
-
deps = [
|
|
30
|
-
":all-libs",
|
|
31
|
-
":build_config",
|
|
32
|
-
":res",
|
|
33
|
-
],
|
|
34
|
-
)
|
|
35
|
-
|
|
36
|
-
android_build_config(
|
|
37
|
-
name = "build_config",
|
|
38
|
-
package = "com.example",
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
android_resource(
|
|
42
|
-
name = "res",
|
|
43
|
-
package = "com.example",
|
|
44
|
-
res = "src/main/res",
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
android_binary(
|
|
48
|
-
name = "app",
|
|
49
|
-
keystore = "//android/keystores:debug",
|
|
50
|
-
manifest = "src/main/AndroidManifest.xml",
|
|
51
|
-
package_type = "debug",
|
|
52
|
-
deps = [
|
|
53
|
-
":app-code",
|
|
54
|
-
],
|
|
55
|
-
)
|
|
1
|
+
# To learn about Buck see [Docs](https://buckbuild.com/).
|
|
2
|
+
# To run your application with Buck:
|
|
3
|
+
# - install Buck
|
|
4
|
+
# - `npm start` - to start the packager
|
|
5
|
+
# - `cd android`
|
|
6
|
+
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
|
|
7
|
+
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
|
|
8
|
+
# - `buck install -r android/app` - compile, install and run application
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
|
|
12
|
+
|
|
13
|
+
lib_deps = []
|
|
14
|
+
|
|
15
|
+
create_aar_targets(glob(["libs/*.aar"]))
|
|
16
|
+
|
|
17
|
+
create_jar_targets(glob(["libs/*.jar"]))
|
|
18
|
+
|
|
19
|
+
android_library(
|
|
20
|
+
name = "all-libs",
|
|
21
|
+
exported_deps = lib_deps,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
android_library(
|
|
25
|
+
name = "app-code",
|
|
26
|
+
srcs = glob([
|
|
27
|
+
"src/main/java/**/*.java",
|
|
28
|
+
]),
|
|
29
|
+
deps = [
|
|
30
|
+
":all-libs",
|
|
31
|
+
":build_config",
|
|
32
|
+
":res",
|
|
33
|
+
],
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
android_build_config(
|
|
37
|
+
name = "build_config",
|
|
38
|
+
package = "com.example",
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
android_resource(
|
|
42
|
+
name = "res",
|
|
43
|
+
package = "com.example",
|
|
44
|
+
res = "src/main/res",
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
android_binary(
|
|
48
|
+
name = "app",
|
|
49
|
+
keystore = "//android/keystores:debug",
|
|
50
|
+
manifest = "src/main/AndroidManifest.xml",
|
|
51
|
+
package_type = "debug",
|
|
52
|
+
deps = [
|
|
53
|
+
":app-code",
|
|
54
|
+
],
|
|
55
|
+
)
|