react-native-mosquito-transport 0.0.47 → 0.0.49

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 (97) hide show
  1. package/CONTRIBUTING.md +37 -19
  2. package/MosquitoTransport.podspec +20 -0
  3. package/android/build.gradle +32 -42
  4. package/android/src/main/AndroidManifest.xml +1 -3
  5. package/android/src/main/java/com/mosquitotransport/MosquitoTransportModule.kt +101 -0
  6. package/android/src/main/java/com/mosquitotransport/MosquitoTransportPackage.kt +31 -0
  7. package/android/src/main/java/com/mosquitotransport/utils/FileUploader.kt +106 -0
  8. package/android/src/main/java/com/mosquitotransport/utils/UploadCallback.kt +7 -0
  9. package/ios/MosquitoTransport-Bridging-Header.h +1 -0
  10. package/ios/MosquitoTransport.h +6 -0
  11. package/ios/MosquitoTransport.mm +81 -0
  12. package/ios/{Mosquitodb.swift → MosquitoTransport.swift} +39 -42
  13. package/package.json +11 -3
  14. package/src/NativeMosquitoTransport.js +24 -0
  15. package/src/helpers/fs_manager.js +1 -1
  16. package/src/helpers/utils.js +2 -4
  17. package/src/helpers/variables.js +2 -1
  18. package/src/index.d.ts +55 -24
  19. package/src/index.js +20 -12
  20. package/src/products/auth/accessor.js +119 -95
  21. package/src/products/auth/index.js +11 -9
  22. package/src/products/database/index.js +1 -0
  23. package/src/products/http_callable/index.js +6 -5
  24. package/src/products/storage/index.js +65 -60
  25. package/.jshintignore +0 -4
  26. package/.jshintrc +0 -16
  27. package/TODO +0 -27
  28. package/android/gradle.properties +0 -5
  29. package/android/src/main/java/com/mosquitodb/MosquitodbModule.java +0 -82
  30. package/android/src/main/java/com/mosquitodb/MosquitodbPackage.java +0 -28
  31. package/android/src/main/java/com/mosquitodb/utils/FileUploader.java +0 -101
  32. package/android/src/main/java/com/mosquitodb/utils/UploadCallback.java +0 -7
  33. package/example/.bundle/config +0 -2
  34. package/example/.node-version +0 -1
  35. package/example/.watchmanconfig +0 -1
  36. package/example/Gemfile +0 -6
  37. package/example/android/app/build.gradle +0 -170
  38. package/example/android/app/debug.keystore +0 -0
  39. package/example/android/app/proguard-rules.pro +0 -10
  40. package/example/android/app/src/debug/AndroidManifest.xml +0 -13
  41. package/example/android/app/src/debug/java/com/mosquitodbexample/ReactNativeFlipper.java +0 -75
  42. package/example/android/app/src/main/AndroidManifest.xml +0 -25
  43. package/example/android/app/src/main/java/com/mosquitodbexample/MainActivity.java +0 -35
  44. package/example/android/app/src/main/java/com/mosquitodbexample/MainApplication.java +0 -62
  45. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
  46. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  47. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  48. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  49. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  50. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  51. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  52. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  53. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  54. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  55. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  56. package/example/android/app/src/main/res/values/strings.xml +0 -3
  57. package/example/android/app/src/main/res/values/styles.xml +0 -9
  58. package/example/android/app/src/release/java/com/mosquitodbexample/ReactNativeFlipper.java +0 -20
  59. package/example/android/build.gradle +0 -21
  60. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  61. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  62. package/example/android/gradle.properties +0 -44
  63. package/example/android/gradlew +0 -234
  64. package/example/android/gradlew.bat +0 -89
  65. package/example/android/settings.gradle +0 -4
  66. package/example/app.json +0 -4
  67. package/example/babel.config.js +0 -17
  68. package/example/index.js +0 -5
  69. package/example/ios/.xcode.env +0 -11
  70. package/example/ios/File.swift +0 -6
  71. package/example/ios/MosquitodbExample/AppDelegate.h +0 -6
  72. package/example/ios/MosquitodbExample/AppDelegate.mm +0 -36
  73. package/example/ios/MosquitodbExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  74. package/example/ios/MosquitodbExample/Images.xcassets/Contents.json +0 -6
  75. package/example/ios/MosquitodbExample/Info.plist +0 -55
  76. package/example/ios/MosquitodbExample/LaunchScreen.storyboard +0 -47
  77. package/example/ios/MosquitodbExample/main.m +0 -10
  78. package/example/ios/MosquitodbExample-Bridging-Header.h +0 -3
  79. package/example/ios/MosquitodbExample.xcodeproj/project.pbxproj +0 -703
  80. package/example/ios/MosquitodbExample.xcodeproj/xcshareddata/xcschemes/MosquitodbExample.xcscheme +0 -88
  81. package/example/ios/MosquitodbExample.xcworkspace/contents.xcworkspacedata +0 -10
  82. package/example/ios/MosquitodbExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  83. package/example/ios/MosquitodbExample.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -8
  84. package/example/ios/MosquitodbExample.xcworkspace/xcuserdata/anthony.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  85. package/example/ios/MosquitodbExample.xcworkspace/xcuserdata/anthony.xcuserdatad/WorkspaceSettings.xcsettings +0 -14
  86. package/example/ios/MosquitodbExampleTests/Info.plist +0 -24
  87. package/example/ios/MosquitodbExampleTests/MosquitodbExampleTests.m +0 -66
  88. package/example/ios/Podfile +0 -60
  89. package/example/metro.config.js +0 -40
  90. package/example/package.json +0 -22
  91. package/example/react-native.config.js +0 -10
  92. package/example/src/App.tsx +0 -31
  93. package/ios/Mosquitodb-Bridging-Header.h +0 -2
  94. package/ios/Mosquitodb.m +0 -22
  95. package/ios/Mosquitodb.xcodeproj/project.pbxproj +0 -283
  96. package/ios/Mosquitodb.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -4
  97. package/react-native-mosquitodb.podspec +0 -35
@@ -1,53 +0,0 @@
1
- {
2
- "images" : [
3
- {
4
- "idiom" : "iphone",
5
- "scale" : "2x",
6
- "size" : "20x20"
7
- },
8
- {
9
- "idiom" : "iphone",
10
- "scale" : "3x",
11
- "size" : "20x20"
12
- },
13
- {
14
- "idiom" : "iphone",
15
- "scale" : "2x",
16
- "size" : "29x29"
17
- },
18
- {
19
- "idiom" : "iphone",
20
- "scale" : "3x",
21
- "size" : "29x29"
22
- },
23
- {
24
- "idiom" : "iphone",
25
- "scale" : "2x",
26
- "size" : "40x40"
27
- },
28
- {
29
- "idiom" : "iphone",
30
- "scale" : "3x",
31
- "size" : "40x40"
32
- },
33
- {
34
- "idiom" : "iphone",
35
- "scale" : "2x",
36
- "size" : "60x60"
37
- },
38
- {
39
- "idiom" : "iphone",
40
- "scale" : "3x",
41
- "size" : "60x60"
42
- },
43
- {
44
- "idiom" : "ios-marketing",
45
- "scale" : "1x",
46
- "size" : "1024x1024"
47
- }
48
- ],
49
- "info" : {
50
- "author" : "xcode",
51
- "version" : 1
52
- }
53
- }
@@ -1,6 +0,0 @@
1
- {
2
- "info" : {
3
- "version" : 1,
4
- "author" : "xcode"
5
- }
6
- }
@@ -1,55 +0,0 @@
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>MosquitodbExample</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>$(MARKETING_VERSION)</string>
21
- <key>CFBundleSignature</key>
22
- <string>????</string>
23
- <key>CFBundleVersion</key>
24
- <string>$(CURRENT_PROJECT_VERSION)</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>
@@ -1,47 +0,0 @@
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="MosquitodbExample" 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>
@@ -1,10 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
-
3
- #import "AppDelegate.h"
4
-
5
- int main(int argc, char *argv[])
6
- {
7
- @autoreleasepool {
8
- return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
9
- }
10
- }
@@ -1,3 +0,0 @@
1
- //
2
- // Use this file to import your target's public headers that you would like to expose to Swift.
3
- //