jcore-react-native 1.9.3 → 1.9.6

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.
Files changed (88) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/android/.gradle/7.1.1/dependencies-accessors/gc.properties +0 -0
  4. package/android/.gradle/7.1.1/fileChanges/last-build.bin +0 -0
  5. package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
  6. package/android/.gradle/7.1.1/gc.properties +0 -0
  7. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  9. package/android/.gradle/checksums/checksums.lock +0 -0
  10. package/android/.gradle/vcs-1/gc.properties +0 -0
  11. package/android/libs/arm64-v8a/{libjcore290.so → libjcore322.so} +0 -0
  12. package/android/libs/armeabi/{libjcore290.so → libjcore322.so} +0 -0
  13. package/android/libs/armeabi-v7a/{libjcore290.so → libjcore322.so} +0 -0
  14. package/android/libs/jcore-android-3.2.2.jar +0 -0
  15. package/android/libs/mips/{libjcore290.so → libjcore322.so} +0 -0
  16. package/android/libs/mips64/{libjcore290.so → libjcore322.so} +0 -0
  17. package/android/libs/x86/{libjcore290.so → libjcore322.so} +0 -0
  18. package/android/libs/x86_64/{libjcore290.so → libjcore322.so} +0 -0
  19. package/android/src/main/AndroidManifest.xml +0 -1
  20. package/android/src/main/java/cn/jiguang/plugins/core/JCoreModule.java +48 -0
  21. package/android/src/main/java/cn/jiguang/plugins/core/JCorePackage.java +27 -0
  22. package/example/.buckconfig +6 -0
  23. package/example/.bundle/config +2 -0
  24. package/example/.eslintrc.js +4 -0
  25. package/example/.flowconfig +65 -0
  26. package/example/.prettierrc.js +7 -0
  27. package/example/.ruby-version +1 -0
  28. package/example/.watchmanconfig +1 -0
  29. package/example/App.js +112 -0
  30. package/example/Gemfile +6 -0
  31. package/example/__tests__/App-test.js +14 -0
  32. package/example/android/app/BUCK +55 -0
  33. package/example/android/app/build.gradle +227 -0
  34. package/example/android/app/build_defs.bzl +19 -0
  35. package/example/android/app/debug.keystore +0 -0
  36. package/example/android/app/proguard-rules.pro +10 -0
  37. package/example/android/app/src/debug/AndroidManifest.xml +13 -0
  38. package/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java +72 -0
  39. package/example/android/app/src/main/AndroidManifest.xml +25 -0
  40. package/example/android/app/src/main/java/com/example/MainActivity.java +15 -0
  41. package/example/android/app/src/main/java/com/example/MainApplication.java +80 -0
  42. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
  43. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  44. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  45. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  46. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  47. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  48. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  49. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  50. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  51. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  52. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  53. package/example/android/app/src/main/res/values/strings.xml +3 -0
  54. package/example/android/app/src/main/res/values/styles.xml +9 -0
  55. package/example/android/build.gradle +42 -0
  56. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  57. package/example/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  58. package/example/android/gradlew +185 -0
  59. package/example/android/gradlew.bat +89 -0
  60. package/example/android/settings.gradle +3 -0
  61. package/example/app.json +4 -0
  62. package/example/babel.config.js +3 -0
  63. package/example/index.js +9 -0
  64. package/example/ios/Podfile +30 -0
  65. package/example/ios/example/AppDelegate.h +8 -0
  66. package/example/ios/example/AppDelegate.m +62 -0
  67. package/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json +38 -0
  68. package/example/ios/example/Images.xcassets/Contents.json +6 -0
  69. package/example/ios/example/Info.plist +55 -0
  70. package/example/ios/example/LaunchScreen.storyboard +47 -0
  71. package/example/ios/example/main.m +9 -0
  72. package/example/ios/example.xcodeproj/project.pbxproj +540 -0
  73. package/example/ios/example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  74. package/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme +88 -0
  75. package/example/ios/exampleTests/Info.plist +24 -0
  76. package/example/ios/exampleTests/exampleTests.m +65 -0
  77. package/example/metro.config.js +17 -0
  78. package/example/package.json +30 -0
  79. package/index.js +16 -0
  80. package/ios/RCTJCoreModule/Lib/JGInforCollectionAuth.h +27 -0
  81. package/ios/RCTJCoreModule/{jcore-ios-2.7.1.a → Lib/jcore-ios-3.2.1.a} +0 -0
  82. package/ios/RCTJCoreModule/RCTJCoreModule.h +13 -1
  83. package/ios/RCTJCoreModule/RCTJCoreModule.m +15 -0
  84. package/ios/RCTJCoreModule.xcodeproj/project.pbxproj +12 -4
  85. package/ios/RCTJCoreModule.xcodeproj/project.xcworkspace/xcuserdata/douban.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  86. package/ios/RCTJCoreModule.xcodeproj/xcuserdata/douban.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
  87. package/package.json +1 -1
  88. package/android/libs/jcore-android-2.9.0.jar +0 -0
@@ -0,0 +1,30 @@
1
+ require_relative '../node_modules/react-native/scripts/react_native_pods'
2
+ require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3
+
4
+ platform :ios, '11.0'
5
+
6
+ target 'example' do
7
+ config = use_native_modules!
8
+
9
+ use_react_native!(
10
+ :path => config[:reactNativePath],
11
+ # to enable hermes on iOS, change `false` to `true` and then install pods
12
+ :hermes_enabled => false
13
+ )
14
+
15
+ target 'exampleTests' do
16
+ inherit! :complete
17
+ # Pods for testing
18
+ end
19
+
20
+ # Enables Flipper.
21
+ #
22
+ # Note that if you have use_frameworks! enabled, Flipper will not work and
23
+ # you should disable the next line.
24
+ use_flipper!()
25
+
26
+ post_install do |installer|
27
+ react_native_post_install(installer)
28
+ __apply_Xcode_12_5_M1_post_install_workaround(installer)
29
+ end
30
+ end
@@ -0,0 +1,8 @@
1
+ #import <React/RCTBridgeDelegate.h>
2
+ #import <UIKit/UIKit.h>
3
+
4
+ @interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
5
+
6
+ @property (nonatomic, strong) UIWindow *window;
7
+
8
+ @end
@@ -0,0 +1,62 @@
1
+ #import "AppDelegate.h"
2
+
3
+ #import <React/RCTBridge.h>
4
+ #import <React/RCTBundleURLProvider.h>
5
+ #import <React/RCTRootView.h>
6
+
7
+ #ifdef FB_SONARKIT_ENABLED
8
+ #import <FlipperKit/FlipperClient.h>
9
+ #import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
10
+ #import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
11
+ #import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
12
+ #import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
13
+ #import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
14
+
15
+ static void InitializeFlipper(UIApplication *application) {
16
+ FlipperClient *client = [FlipperClient sharedClient];
17
+ SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
18
+ [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
19
+ [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
20
+ [client addPlugin:[FlipperKitReactPlugin new]];
21
+ [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
22
+ [client start];
23
+ }
24
+ #endif
25
+
26
+ @implementation AppDelegate
27
+
28
+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
29
+ {
30
+ #ifdef FB_SONARKIT_ENABLED
31
+ InitializeFlipper(application);
32
+ #endif
33
+
34
+ RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
35
+ RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
36
+ moduleName:@"example"
37
+ initialProperties:nil];
38
+
39
+ if (@available(iOS 13.0, *)) {
40
+ rootView.backgroundColor = [UIColor systemBackgroundColor];
41
+ } else {
42
+ rootView.backgroundColor = [UIColor whiteColor];
43
+ }
44
+
45
+ self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
46
+ UIViewController *rootViewController = [UIViewController new];
47
+ rootViewController.view = rootView;
48
+ self.window.rootViewController = rootViewController;
49
+ [self.window makeKeyAndVisible];
50
+ return YES;
51
+ }
52
+
53
+ - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
54
+ {
55
+ #if DEBUG
56
+ return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
57
+ #else
58
+ return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
59
+ #endif
60
+ }
61
+
62
+ @end
@@ -0,0 +1,38 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "idiom" : "iphone",
5
+ "size" : "29x29",
6
+ "scale" : "2x"
7
+ },
8
+ {
9
+ "idiom" : "iphone",
10
+ "size" : "29x29",
11
+ "scale" : "3x"
12
+ },
13
+ {
14
+ "idiom" : "iphone",
15
+ "size" : "40x40",
16
+ "scale" : "2x"
17
+ },
18
+ {
19
+ "idiom" : "iphone",
20
+ "size" : "40x40",
21
+ "scale" : "3x"
22
+ },
23
+ {
24
+ "idiom" : "iphone",
25
+ "size" : "60x60",
26
+ "scale" : "2x"
27
+ },
28
+ {
29
+ "idiom" : "iphone",
30
+ "size" : "60x60",
31
+ "scale" : "3x"
32
+ }
33
+ ],
34
+ "info" : {
35
+ "version" : 1,
36
+ "author" : "xcode"
37
+ }
38
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "info" : {
3
+ "version" : 1,
4
+ "author" : "xcode"
5
+ }
6
+ }
@@ -0,0 +1,55 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleDisplayName</key>
8
+ <string>example</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>$(EXECUTABLE_NAME)</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>$(PRODUCT_NAME)</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>APPL</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>1.0</string>
21
+ <key>CFBundleSignature</key>
22
+ <string>????</string>
23
+ <key>CFBundleVersion</key>
24
+ <string>1</string>
25
+ <key>LSRequiresIPhoneOS</key>
26
+ <true/>
27
+ <key>NSAppTransportSecurity</key>
28
+ <dict>
29
+ <key>NSExceptionDomains</key>
30
+ <dict>
31
+ <key>localhost</key>
32
+ <dict>
33
+ <key>NSExceptionAllowsInsecureHTTPLoads</key>
34
+ <true/>
35
+ </dict>
36
+ </dict>
37
+ </dict>
38
+ <key>NSLocationWhenInUseUsageDescription</key>
39
+ <string></string>
40
+ <key>UILaunchStoryboardName</key>
41
+ <string>LaunchScreen</string>
42
+ <key>UIRequiredDeviceCapabilities</key>
43
+ <array>
44
+ <string>armv7</string>
45
+ </array>
46
+ <key>UISupportedInterfaceOrientations</key>
47
+ <array>
48
+ <string>UIInterfaceOrientationPortrait</string>
49
+ <string>UIInterfaceOrientationLandscapeLeft</string>
50
+ <string>UIInterfaceOrientationLandscapeRight</string>
51
+ </array>
52
+ <key>UIViewControllerBasedStatusBarAppearance</key>
53
+ <false/>
54
+ </dict>
55
+ </plist>
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+ <device id="retina4_7" orientation="portrait" appearance="light"/>
4
+ <dependencies>
5
+ <deployment identifier="iOS"/>
6
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
7
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9
+ </dependencies>
10
+ <scenes>
11
+ <!--View Controller-->
12
+ <scene sceneID="EHf-IW-A2E">
13
+ <objects>
14
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
15
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
17
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
+ <subviews>
19
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="example" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
20
+ <rect key="frame" x="0.0" y="202" width="375" height="43"/>
21
+ <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
22
+ <nil key="highlightedColor"/>
23
+ </label>
24
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="MN2-I3-ftu">
25
+ <rect key="frame" x="0.0" y="626" width="375" height="21"/>
26
+ <fontDescription key="fontDescription" type="system" pointSize="17"/>
27
+ <nil key="highlightedColor"/>
28
+ </label>
29
+ </subviews>
30
+ <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
31
+ <constraints>
32
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="bottom" secondItem="MN2-I3-ftu" secondAttribute="bottom" constant="20" id="OZV-Vh-mqD"/>
33
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
34
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="centerX" secondItem="Bcu-3y-fUS" secondAttribute="centerX" id="akx-eg-2ui"/>
35
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" id="i1E-0Y-4RG"/>
36
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
37
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
38
+ </constraints>
39
+ <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
40
+ </view>
41
+ </viewController>
42
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
43
+ </objects>
44
+ <point key="canvasLocation" x="52.173913043478265" y="375"/>
45
+ </scene>
46
+ </scenes>
47
+ </document>
@@ -0,0 +1,9 @@
1
+ #import <UIKit/UIKit.h>
2
+
3
+ #import "AppDelegate.h"
4
+
5
+ int main(int argc, char * argv[]) {
6
+ @autoreleasepool {
7
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8
+ }
9
+ }