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.
- package/CONTRIBUTING.md +37 -19
- package/MosquitoTransport.podspec +20 -0
- package/android/build.gradle +32 -42
- package/android/src/main/AndroidManifest.xml +1 -3
- package/android/src/main/java/com/mosquitotransport/MosquitoTransportModule.kt +101 -0
- package/android/src/main/java/com/mosquitotransport/MosquitoTransportPackage.kt +31 -0
- package/android/src/main/java/com/mosquitotransport/utils/FileUploader.kt +106 -0
- package/android/src/main/java/com/mosquitotransport/utils/UploadCallback.kt +7 -0
- package/ios/MosquitoTransport-Bridging-Header.h +1 -0
- package/ios/MosquitoTransport.h +6 -0
- package/ios/MosquitoTransport.mm +81 -0
- package/ios/{Mosquitodb.swift → MosquitoTransport.swift} +39 -42
- package/package.json +11 -3
- package/src/NativeMosquitoTransport.js +24 -0
- package/src/helpers/fs_manager.js +1 -1
- package/src/helpers/utils.js +2 -4
- package/src/helpers/variables.js +2 -1
- package/src/index.d.ts +55 -24
- package/src/index.js +20 -12
- package/src/products/auth/accessor.js +119 -95
- package/src/products/auth/index.js +11 -9
- package/src/products/database/index.js +1 -0
- package/src/products/http_callable/index.js +6 -5
- package/src/products/storage/index.js +65 -60
- package/.jshintignore +0 -4
- package/.jshintrc +0 -16
- package/TODO +0 -27
- package/android/gradle.properties +0 -5
- package/android/src/main/java/com/mosquitodb/MosquitodbModule.java +0 -82
- package/android/src/main/java/com/mosquitodb/MosquitodbPackage.java +0 -28
- package/android/src/main/java/com/mosquitodb/utils/FileUploader.java +0 -101
- package/android/src/main/java/com/mosquitodb/utils/UploadCallback.java +0 -7
- package/example/.bundle/config +0 -2
- package/example/.node-version +0 -1
- package/example/.watchmanconfig +0 -1
- package/example/Gemfile +0 -6
- package/example/android/app/build.gradle +0 -170
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/proguard-rules.pro +0 -10
- package/example/android/app/src/debug/AndroidManifest.xml +0 -13
- package/example/android/app/src/debug/java/com/mosquitodbexample/ReactNativeFlipper.java +0 -75
- package/example/android/app/src/main/AndroidManifest.xml +0 -25
- package/example/android/app/src/main/java/com/mosquitodbexample/MainActivity.java +0 -35
- package/example/android/app/src/main/java/com/mosquitodbexample/MainApplication.java +0 -62
- package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/values/strings.xml +0 -3
- package/example/android/app/src/main/res/values/styles.xml +0 -9
- package/example/android/app/src/release/java/com/mosquitodbexample/ReactNativeFlipper.java +0 -20
- package/example/android/build.gradle +0 -21
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/example/android/gradle.properties +0 -44
- package/example/android/gradlew +0 -234
- package/example/android/gradlew.bat +0 -89
- package/example/android/settings.gradle +0 -4
- package/example/app.json +0 -4
- package/example/babel.config.js +0 -17
- package/example/index.js +0 -5
- package/example/ios/.xcode.env +0 -11
- package/example/ios/File.swift +0 -6
- package/example/ios/MosquitodbExample/AppDelegate.h +0 -6
- package/example/ios/MosquitodbExample/AppDelegate.mm +0 -36
- package/example/ios/MosquitodbExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
- package/example/ios/MosquitodbExample/Images.xcassets/Contents.json +0 -6
- package/example/ios/MosquitodbExample/Info.plist +0 -55
- package/example/ios/MosquitodbExample/LaunchScreen.storyboard +0 -47
- package/example/ios/MosquitodbExample/main.m +0 -10
- package/example/ios/MosquitodbExample-Bridging-Header.h +0 -3
- package/example/ios/MosquitodbExample.xcodeproj/project.pbxproj +0 -703
- package/example/ios/MosquitodbExample.xcodeproj/xcshareddata/xcschemes/MosquitodbExample.xcscheme +0 -88
- package/example/ios/MosquitodbExample.xcworkspace/contents.xcworkspacedata +0 -10
- package/example/ios/MosquitodbExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/example/ios/MosquitodbExample.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -8
- package/example/ios/MosquitodbExample.xcworkspace/xcuserdata/anthony.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/example/ios/MosquitodbExample.xcworkspace/xcuserdata/anthony.xcuserdatad/WorkspaceSettings.xcsettings +0 -14
- package/example/ios/MosquitodbExampleTests/Info.plist +0 -24
- package/example/ios/MosquitodbExampleTests/MosquitodbExampleTests.m +0 -66
- package/example/ios/Podfile +0 -60
- package/example/metro.config.js +0 -40
- package/example/package.json +0 -22
- package/example/react-native.config.js +0 -10
- package/example/src/App.tsx +0 -31
- package/ios/Mosquitodb-Bridging-Header.h +0 -2
- package/ios/Mosquitodb.m +0 -22
- package/ios/Mosquitodb.xcodeproj/project.pbxproj +0 -283
- package/ios/Mosquitodb.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -4
- 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,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>
|