@onekeyfe/react-native-cloud-fs 2.6.5 → 3.0.0

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 (39) hide show
  1. package/CloudFs.podspec +19 -0
  2. package/android/build.gradle +64 -42
  3. package/android/src/main/java/com/rncloudfs/RNCloudFsModule.kt +50 -0
  4. package/android/src/main/java/com/rncloudfs/RNCloudFsPackage.kt +33 -0
  5. package/ios/CloudFs.h +7 -0
  6. package/ios/{RNCloudFs.m → CloudFs.mm} +174 -225
  7. package/lib/module/NativeCloudFs.js +5 -0
  8. package/lib/module/NativeCloudFs.js.map +1 -0
  9. package/lib/module/index.js +5 -0
  10. package/lib/module/index.js.map +1 -0
  11. package/lib/module/package.json +1 -0
  12. package/lib/typescript/package.json +1 -0
  13. package/lib/typescript/src/NativeCloudFs.d.ts +14 -0
  14. package/lib/typescript/src/NativeCloudFs.d.ts.map +1 -0
  15. package/lib/typescript/src/index.d.ts +3 -0
  16. package/lib/typescript/src/index.d.ts.map +1 -0
  17. package/package.json +80 -7
  18. package/src/NativeCloudFs.ts +15 -0
  19. package/src/index.tsx +4 -0
  20. package/.github/workflows/package-publish.yml +0 -19
  21. package/README.md +0 -146
  22. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  23. package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  24. package/android/gradle.properties +0 -16
  25. package/android/gradlew +0 -160
  26. package/android/gradlew.bat +0 -90
  27. package/android/src/main/AndroidManifest.xml +0 -6
  28. package/android/src/main/java/org/rncloudfs/DriveServiceHelper.java +0 -214
  29. package/android/src/main/java/org/rncloudfs/RNCloudFsModule.java +0 -511
  30. package/android/src/main/java/org/rncloudfs/RNCloudFsPackage.java +0 -28
  31. package/docs/getting-started.md +0 -61
  32. package/docs/todo.md +0 -34
  33. package/docs/xcode.png +0 -0
  34. package/index.js +0 -7
  35. package/ios/RNCloudFs.h +0 -10
  36. package/ios/RNCloudFs.xcodeproj/project.pbxproj +0 -252
  37. package/ios/RNCloudFs.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  38. package/licesnse.txt +0 -21
  39. package/react-native-cloud-fs.podspec +0 -17
@@ -0,0 +1,14 @@
1
+ import type { TurboModule } from 'react-native';
2
+ export interface Spec extends TurboModule {
3
+ isAvailable(): Promise<boolean>;
4
+ createFile(options: Object): Promise<Object>;
5
+ fileExists(options: Object): Promise<boolean>;
6
+ listFiles(options: Object): Promise<Object>;
7
+ getIcloudDocument(filename: string): Promise<string>;
8
+ deleteFromCloud(item: Object): Promise<Object>;
9
+ copyToCloud(options: Object): Promise<Object>;
10
+ syncCloud(): Promise<void>;
11
+ }
12
+ declare const _default: Spec;
13
+ export default _default;
14
+ //# sourceMappingURL=NativeCloudFs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeCloudFs.d.ts","sourceRoot":"","sources":["../../../src/NativeCloudFs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7C,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9C,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/C,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9C,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;;AAED,wBAAmE"}
@@ -0,0 +1,3 @@
1
+ export declare const CloudFs: import("./NativeCloudFs").Spec;
2
+ export type { Spec as CloudFsSpec } from './NativeCloudFs';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,gCAAgB,CAAC;AACrC,YAAY,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,14 +1,87 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-cloud-fs",
3
- "version": "2.6.5",
4
- "description": "",
5
- "main": "index.js",
3
+ "version": "3.0.0",
4
+ "description": "react-native-cloud-fs TurboModule for OneKey",
5
+ "main": "./lib/module/index.js",
6
+ "types": "./lib/typescript/src/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "source": "./src/index.tsx",
10
+ "types": "./lib/typescript/src/index.d.ts",
11
+ "default": "./lib/module/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
15
+ "files": [
16
+ "src",
17
+ "lib",
18
+ "ios",
19
+ "*.podspec",
20
+ "!ios/build",
21
+ "!**/__tests__",
22
+ "!**/__fixtures__",
23
+ "!**/__mocks__",
24
+ "!**/.*",
25
+ "android"
26
+ ],
6
27
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
28
+ "prepare": "bob build",
29
+ "typecheck": "tsc",
30
+ "release": "yarn prepare && npm whoami && npm publish --access public"
8
31
  },
9
32
  "keywords": [
10
- "react-native"
33
+ "react-native",
34
+ "ios",
35
+ "android"
11
36
  ],
12
- "author": "",
13
- "license": ""
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "git+https://github.com/OneKeyHQ/app-modules/react-native-cloud-fs.git"
40
+ },
41
+ "author": "@onekeyhq <huanming@onekey.so> (https://github.com/OneKeyHQ/app-modules)",
42
+ "license": "MIT",
43
+ "bugs": {
44
+ "url": "https://github.com/OneKeyHQ/app-modules/react-native-cloud-fs/issues"
45
+ },
46
+ "homepage": "https://github.com/OneKeyHQ/app-modules/react-native-cloud-fs#readme",
47
+ "publishConfig": {
48
+ "registry": "https://registry.npmjs.org/"
49
+ },
50
+ "peerDependencies": {
51
+ "react": "*",
52
+ "react-native": "*"
53
+ },
54
+ "devDependencies": {
55
+ "@react-native/babel-preset": "0.83.0",
56
+ "react": "19.2.0",
57
+ "react-native": "0.83.0",
58
+ "react-native-builder-bob": "^0.40.17",
59
+ "typescript": "^5.9.2"
60
+ },
61
+ "react-native-builder-bob": {
62
+ "source": "src",
63
+ "output": "lib",
64
+ "targets": [
65
+ [
66
+ "module",
67
+ {
68
+ "esm": true
69
+ }
70
+ ],
71
+ [
72
+ "typescript",
73
+ {
74
+ "project": "tsconfig.build.json"
75
+ }
76
+ ]
77
+ ]
78
+ },
79
+ "codegenConfig": {
80
+ "name": "RNCloudFsSpec",
81
+ "type": "modules",
82
+ "jsSrcsDir": "src",
83
+ "android": {
84
+ "javaPackageName": "com.rncloudfs"
85
+ }
86
+ }
14
87
  }
@@ -0,0 +1,15 @@
1
+ import { TurboModuleRegistry } from 'react-native';
2
+ import type { TurboModule } from 'react-native';
3
+
4
+ export interface Spec extends TurboModule {
5
+ isAvailable(): Promise<boolean>;
6
+ createFile(options: Object): Promise<Object>;
7
+ fileExists(options: Object): Promise<boolean>;
8
+ listFiles(options: Object): Promise<Object>;
9
+ getIcloudDocument(filename: string): Promise<string>;
10
+ deleteFromCloud(item: Object): Promise<Object>;
11
+ copyToCloud(options: Object): Promise<Object>;
12
+ syncCloud(): Promise<void>;
13
+ }
14
+
15
+ export default TurboModuleRegistry.getEnforcing<Spec>('RNCloudFs');
package/src/index.tsx ADDED
@@ -0,0 +1,4 @@
1
+ import NativeCloudFs from './NativeCloudFs';
2
+
3
+ export const CloudFs = NativeCloudFs;
4
+ export type { Spec as CloudFsSpec } from './NativeCloudFs';
@@ -1,19 +0,0 @@
1
- name: package-publish
2
-
3
- on: workflow_dispatch
4
-
5
- jobs:
6
- package-publish:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v2
10
- - uses: actions/setup-node@v2
11
- with:
12
- node-version: '20.x'
13
- registry-url: 'https://registry.npmjs.org'
14
- - name: Install Package
15
- run: yarn
16
- - name: Publish
17
- env:
18
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
19
- run: npm whoami && npm publish --access public
package/README.md DELETED
@@ -1,146 +0,0 @@
1
-
2
- # react-native-cloud-fs
3
-
4
- A react-native library for reading and writing files to _iCloud Drive_ (iOS) and _Google Drive_ (Android).
5
-
6
- [Getting started](./docs/getting-started.md)
7
-
8
- ## Usage
9
- ```javascript
10
- import RNCloudFs from 'react-native-cloud-fs';
11
- ```
12
-
13
- ### fileExists (options)
14
- Returns a promise which when resolved returns a boolean value indicating if the specified path already exists.
15
-
16
- ```javascript
17
- const destinationPath = "foo-bar/docs/info.pdf";
18
- const scope = 'visible';
19
-
20
- RNCloudFs.fileExists({
21
- targetPath: destinationPath,
22
- scope: scope
23
- })
24
- .then((exists) => {
25
- console.log(exists ? "this file exists" : "this file does not exist");
26
- })
27
- .catch((err) => {
28
- console.warn("it failed", err);
29
- })
30
- ```
31
- _targetPath_: a path
32
-
33
- _scope_: determines if the user-visible documents (`visible`) or the app-visible documents (`hidden`) are searched for the specified path
34
-
35
- ### copyToCloud (options)
36
- Copies the content of a file (or uri) to the target file system. The files will appear in a either a user visible
37
- directory, or a dectory that only the app can see. The directory is named after `destinationPath`. The directory
38
- hierarchy for the destination path will be created if it doesn't already exist. If the target file already exists
39
- it a new filename is chosen and returned when the promise is resolved.
40
-
41
- ```javascript
42
- const sourceUri = {uri: 'https://foo.com/bar.pdf'};
43
- const destinationPath = "foo-bar/docs/info.pdf";
44
- const mimeType = null;
45
- const scope = 'visible';
46
-
47
- RNCloudFs.copyToCloud({
48
- sourcePath: sourceUri,
49
- targetPath: destinationPath,
50
- mimeType: mimeType,
51
- scope: scope
52
- })
53
- .then((path) => {
54
- console.log("it worked", path);
55
- })
56
- .catch((err) => {
57
- console.warn("it failed", err);
58
- })
59
- ```
60
-
61
- _sourceUri_: object with any uri or an **absolute** file path and optional http headers, e.g:
62
- * `{path: '/foo/bar/file.txt'}`
63
- * `{uri: 'file://foo/bar/file.txt'}`
64
- * `{uri: 'http://www.files.com/foo/bar/file.txt', 'http-headers': {user: 'foo', password: 'bar'}}` (http-headers are android only)
65
- * `{uri: 'content://media/external/images/media/296'}` (android only)
66
- * `{uri: 'assets-library://asset/asset.JPG?id=106E99A1-4F6A-45A2-B320-B0AD4A8E8473&ext=JPG'}` (iOS only)
67
-
68
- _targetPath_: a **relative** path including a filename under which the file will be placed, e.g:
69
- * `my-cloud-text-file.txt`
70
- * `foo/bar/my-cloud-text-file.txt`
71
-
72
- _mimeType_: a mime type to store the file with **or null** (android only) , e.g:
73
- * `text/plain`
74
- * `application/json`
75
- * `image/jpeg`
76
-
77
- _scope_: a string to specify if the user can access the document (`visible`) or not (`hidden`)
78
-
79
- ### listFiles (options)
80
- Lists files in a directory along with some file metadata. The scope determines if the file listing takes place in the app folder or the public user documents folder.
81
-
82
- ```javascript
83
- const path = "dirA/dirB";
84
- const scope = 'hidden';
85
-
86
- RNCloudFs.listFiles({targetPath: path, scope: scope})
87
- .then((res) => {
88
- console.log("it worked", res);
89
- })
90
- .catch((err) => {
91
- console.warn("it failed", err);
92
- })
93
- ```
94
-
95
- _targetPath_: a path representing a folder to list files from
96
-
97
- _scope_: a string to specify if the files are the user-visible documents (`visible`) or the app-visible documents (`hidden`)
98
-
99
-
100
- ## Android
101
-
102
- After following the instructions in [Getting started](./docs/getting-started.md) I recommend using [react-native-google-signin](https://github.com/react-native-google-signin/google-signin) to authenticate the user, especially if you need additional scopes besides `auth/drive.file` which is the only scope this package requests, and let that package handle auth.
103
-
104
- Example of usage on Android:
105
-
106
- ```js
107
- import { Platform } from 'react-native';
108
- import { GoogleSignin, statusCodes } from '@react-native-community/google-signin';
109
- import RNCloudFS from 'react-native-cloud-fs';
110
-
111
- if (Platform.OS === 'android') {
112
- GoogleSignin.configure({
113
- scopes: [
114
- 'https://www.googleapis.com/auth/userinfo.profile',
115
- 'https://www.googleapis.com/auth/userinfo.email',
116
- 'https://www.googleapis.com/auth/drive.file',
117
- // other scopes your app needs
118
- ],
119
- webClientId: '...' // you may not need this depending on scopes,
120
- offlineAccess: true,
121
- forceConsentPrompt: true,
122
- });
123
-
124
- // Ensure play services exist. Cannot sign in otherwise. If unavailable, this
125
- // will show a modal asking the user to get play services before continuing.
126
- await GoogleSignin.hasPlayServices({
127
- showPlayServicesUpdateDialog: true
128
- });
129
-
130
- // If user is already signed in, don't need to call signIn again
131
- const isSignedIn = await GoogleSignin.isSignedIn();
132
- if (!isSignedIn) {
133
- await GoogleSignin.signIn();
134
- }
135
-
136
- // Syncs signed in state to RNCloudFS
137
- await RNCloudFS.loginIfNeeded();
138
-
139
- // Now you can copy to cloud
140
- await RNCloudFS.copyToCloud({
141
- sourcePath: { path: 'some/path.txt' },
142
- targetPath: `some/path.txt`,
143
- scope: 'visible'
144
- });
145
- }
146
- ```
@@ -1,6 +0,0 @@
1
- #Mon Dec 28 10:00:20 PST 2015
2
- distributionBase=GRADLE_USER_HOME
3
- distributionPath=wrapper/dists
4
- zipStoreBase=GRADLE_USER_HOME
5
- zipStorePath=wrapper/dists
6
- distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
@@ -1,16 +0,0 @@
1
- ## Project-wide Gradle settings.
2
- #
3
- # For more details on how to configure your build environment visit
4
- # http://www.gradle.org/docs/current/userguide/build_environment.html
5
- #
6
- # Specifies the JVM arguments used for the daemon process.
7
- # The setting is particularly useful for tweaking memory settings.
8
- # Default value: -Xmx1024m -XX:MaxPermSize=256m
9
- # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
10
- #
11
- # When configured, Gradle will run in incubating parallel mode.
12
- # This option should only be used with decoupled projects. More details, visit
13
- # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
14
- # org.gradle.parallel=true
15
- #Tue Nov 08 10:30:44 GMT 2016
16
- android.useDeprecatedNdk=true
package/android/gradlew DELETED
@@ -1,160 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- ##############################################################################
4
- ##
5
- ## Gradle start up script for UN*X
6
- ##
7
- ##############################################################################
8
-
9
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10
- DEFAULT_JVM_OPTS=""
11
-
12
- APP_NAME="Gradle"
13
- APP_BASE_NAME=`basename "$0"`
14
-
15
- # Use the maximum available, or set MAX_FD != -1 to use that value.
16
- MAX_FD="maximum"
17
-
18
- warn ( ) {
19
- echo "$*"
20
- }
21
-
22
- die ( ) {
23
- echo
24
- echo "$*"
25
- echo
26
- exit 1
27
- }
28
-
29
- # OS specific support (must be 'true' or 'false').
30
- cygwin=false
31
- msys=false
32
- darwin=false
33
- case "`uname`" in
34
- CYGWIN* )
35
- cygwin=true
36
- ;;
37
- Darwin* )
38
- darwin=true
39
- ;;
40
- MINGW* )
41
- msys=true
42
- ;;
43
- esac
44
-
45
- # Attempt to set APP_HOME
46
- # Resolve links: $0 may be a link
47
- PRG="$0"
48
- # Need this for relative symlinks.
49
- while [ -h "$PRG" ] ; do
50
- ls=`ls -ld "$PRG"`
51
- link=`expr "$ls" : '.*-> \(.*\)$'`
52
- if expr "$link" : '/.*' > /dev/null; then
53
- PRG="$link"
54
- else
55
- PRG=`dirname "$PRG"`"/$link"
56
- fi
57
- done
58
- SAVED="`pwd`"
59
- cd "`dirname \"$PRG\"`/" >/dev/null
60
- APP_HOME="`pwd -P`"
61
- cd "$SAVED" >/dev/null
62
-
63
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64
-
65
- # Determine the Java command to use to start the JVM.
66
- if [ -n "$JAVA_HOME" ] ; then
67
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68
- # IBM's JDK on AIX uses strange locations for the executables
69
- JAVACMD="$JAVA_HOME/jre/sh/java"
70
- else
71
- JAVACMD="$JAVA_HOME/bin/java"
72
- fi
73
- if [ ! -x "$JAVACMD" ] ; then
74
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75
-
76
- Please set the JAVA_HOME variable in your environment to match the
77
- location of your Java installation."
78
- fi
79
- else
80
- JAVACMD="java"
81
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82
-
83
- Please set the JAVA_HOME variable in your environment to match the
84
- location of your Java installation."
85
- fi
86
-
87
- # Increase the maximum file descriptors if we can.
88
- if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89
- MAX_FD_LIMIT=`ulimit -H -n`
90
- if [ $? -eq 0 ] ; then
91
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92
- MAX_FD="$MAX_FD_LIMIT"
93
- fi
94
- ulimit -n $MAX_FD
95
- if [ $? -ne 0 ] ; then
96
- warn "Could not set maximum file descriptor limit: $MAX_FD"
97
- fi
98
- else
99
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100
- fi
101
- fi
102
-
103
- # For Darwin, add options to specify how the application appears in the dock
104
- if $darwin; then
105
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106
- fi
107
-
108
- # For Cygwin, switch paths to Windows format before running java
109
- if $cygwin ; then
110
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112
- JAVACMD=`cygpath --unix "$JAVACMD"`
113
-
114
- # We build the pattern for arguments to be converted via cygpath
115
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116
- SEP=""
117
- for dir in $ROOTDIRSRAW ; do
118
- ROOTDIRS="$ROOTDIRS$SEP$dir"
119
- SEP="|"
120
- done
121
- OURCYGPATTERN="(^($ROOTDIRS))"
122
- # Add a user-defined pattern to the cygpath arguments
123
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125
- fi
126
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
127
- i=0
128
- for arg in "$@" ; do
129
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131
-
132
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134
- else
135
- eval `echo args$i`="\"$arg\""
136
- fi
137
- i=$((i+1))
138
- done
139
- case $i in
140
- (0) set -- ;;
141
- (1) set -- "$args0" ;;
142
- (2) set -- "$args0" "$args1" ;;
143
- (3) set -- "$args0" "$args1" "$args2" ;;
144
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150
- esac
151
- fi
152
-
153
- # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154
- function splitJvmOpts() {
155
- JVM_OPTS=("$@")
156
- }
157
- eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158
- JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159
-
160
- exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
@@ -1,90 +0,0 @@
1
- @if "%DEBUG%" == "" @echo off
2
- @rem ##########################################################################
3
- @rem
4
- @rem Gradle startup script for Windows
5
- @rem
6
- @rem ##########################################################################
7
-
8
- @rem Set local scope for the variables with windows NT shell
9
- if "%OS%"=="Windows_NT" setlocal
10
-
11
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12
- set DEFAULT_JVM_OPTS=
13
-
14
- set DIRNAME=%~dp0
15
- if "%DIRNAME%" == "" set DIRNAME=.
16
- set APP_BASE_NAME=%~n0
17
- set APP_HOME=%DIRNAME%
18
-
19
- @rem Find java.exe
20
- if defined JAVA_HOME goto findJavaFromJavaHome
21
-
22
- set JAVA_EXE=java.exe
23
- %JAVA_EXE% -version >NUL 2>&1
24
- if "%ERRORLEVEL%" == "0" goto init
25
-
26
- echo.
27
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28
- echo.
29
- echo Please set the JAVA_HOME variable in your environment to match the
30
- echo location of your Java installation.
31
-
32
- goto fail
33
-
34
- :findJavaFromJavaHome
35
- set JAVA_HOME=%JAVA_HOME:"=%
36
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
-
38
- if exist "%JAVA_EXE%" goto init
39
-
40
- echo.
41
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42
- echo.
43
- echo Please set the JAVA_HOME variable in your environment to match the
44
- echo location of your Java installation.
45
-
46
- goto fail
47
-
48
- :init
49
- @rem Get command-line arguments, handling Windowz variants
50
-
51
- if not "%OS%" == "Windows_NT" goto win9xME_args
52
- if "%@eval[2+2]" == "4" goto 4NT_args
53
-
54
- :win9xME_args
55
- @rem Slurp the command line arguments.
56
- set CMD_LINE_ARGS=
57
- set _SKIP=2
58
-
59
- :win9xME_args_slurp
60
- if "x%~1" == "x" goto execute
61
-
62
- set CMD_LINE_ARGS=%*
63
- goto execute
64
-
65
- :4NT_args
66
- @rem Get arguments from the 4NT Shell from JP Software
67
- set CMD_LINE_ARGS=%$
68
-
69
- :execute
70
- @rem Setup the command line
71
-
72
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73
-
74
- @rem Execute Gradle
75
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76
-
77
- :end
78
- @rem End local scope for the variables with windows NT shell
79
- if "%ERRORLEVEL%"=="0" goto mainEnd
80
-
81
- :fail
82
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
- rem the _cmd.exe /c_ return code!
84
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85
- exit /b 1
86
-
87
- :mainEnd
88
- if "%OS%"=="Windows_NT" endlocal
89
-
90
- :omega
@@ -1,6 +0,0 @@
1
-
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="org.rncloudfs">
4
-
5
- </manifest>
6
-