@bubblewrap/core 1.21.0 → 1.22.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 (35) hide show
  1. package/dist/lib/Config.js +6 -4
  2. package/dist/lib/FetchUtils.d.ts +2 -2
  3. package/dist/lib/FetchUtils.js +4 -4
  4. package/dist/lib/GooglePlay.d.ts +1 -1
  5. package/dist/lib/GooglePlay.js +3 -3
  6. package/dist/lib/GradleWrapper.d.ts +0 -1
  7. package/dist/lib/GradleWrapper.js +1 -1
  8. package/dist/lib/ImageHelper.js +2 -2
  9. package/dist/lib/ShortcutInfo.js +5 -5
  10. package/dist/lib/TwaGenerator.d.ts +1 -1
  11. package/dist/lib/TwaGenerator.js +10 -8
  12. package/dist/lib/TwaManifest.d.ts +6 -6
  13. package/dist/lib/TwaManifest.js +16 -14
  14. package/dist/lib/androidSdk/AndroidSdkTools.d.ts +1 -2
  15. package/dist/lib/androidSdk/AndroidSdkTools.js +17 -12
  16. package/dist/lib/errors/ValidatePathError.d.ts +1 -1
  17. package/dist/lib/features/AppsFlyerFeature.d.ts +1 -1
  18. package/dist/lib/features/LocationDelegationFeature.d.ts +1 -1
  19. package/dist/lib/features/PlayBillingFeature.d.ts +1 -1
  20. package/dist/lib/features/PlayBillingFeature.js +1 -1
  21. package/dist/lib/jdk/JarSigner.js +1 -1
  22. package/dist/lib/jdk/JdkHelper.d.ts +0 -1
  23. package/dist/lib/jdk/JdkHelper.js +4 -4
  24. package/dist/lib/jdk/KeyTool.js +12 -12
  25. package/dist/lib/types/WebManifest.d.ts +2 -2
  26. package/dist/lib/util.d.ts +0 -1
  27. package/dist/lib/util.js +21 -22
  28. package/dist/lib/wrappers/svg2img.d.ts +0 -1
  29. package/dist/lib/wrappers/svg2img.js +4 -4
  30. package/package.json +4 -4
  31. package/template_project/app/build.gradle +3 -2
  32. package/template_project/build.gradle +1 -1
  33. package/template_project/gradle/wrapper/gradle-wrapper.properties +3 -1
  34. package/template_project/gradlew +172 -111
  35. package/template_project/gradlew.bat +25 -33
@@ -14,7 +14,7 @@
14
14
  @rem limitations under the License.
15
15
  @rem
16
16
 
17
- @if "%DEBUG%" == "" @echo off
17
+ @if "%DEBUG%"=="" @echo off
18
18
  @rem ##########################################################################
19
19
  @rem
20
20
  @rem Gradle startup script for Windows
@@ -25,10 +25,14 @@
25
25
  if "%OS%"=="Windows_NT" setlocal
26
26
 
27
27
  set DIRNAME=%~dp0
28
- if "%DIRNAME%" == "" set DIRNAME=.
28
+ if "%DIRNAME%"=="" set DIRNAME=.
29
+ @rem This is normally unused
29
30
  set APP_BASE_NAME=%~n0
30
31
  set APP_HOME=%DIRNAME%
31
32
 
33
+ @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34
+ for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35
+
32
36
  @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
33
37
  set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
34
38
 
@@ -37,13 +41,13 @@ if defined JAVA_HOME goto findJavaFromJavaHome
37
41
 
38
42
  set JAVA_EXE=java.exe
39
43
  %JAVA_EXE% -version >NUL 2>&1
40
- if "%ERRORLEVEL%" == "0" goto init
44
+ if %ERRORLEVEL% equ 0 goto execute
41
45
 
42
- echo.
43
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
44
- echo.
45
- echo Please set the JAVA_HOME variable in your environment to match the
46
- echo location of your Java installation.
46
+ echo. 1>&2
47
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48
+ echo. 1>&2
49
+ echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50
+ echo location of your Java installation. 1>&2
47
51
 
48
52
  goto fail
49
53
 
@@ -51,48 +55,36 @@ goto fail
51
55
  set JAVA_HOME=%JAVA_HOME:"=%
52
56
  set JAVA_EXE=%JAVA_HOME%/bin/java.exe
53
57
 
54
- if exist "%JAVA_EXE%" goto init
58
+ if exist "%JAVA_EXE%" goto execute
55
59
 
56
- echo.
57
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
58
- echo.
59
- echo Please set the JAVA_HOME variable in your environment to match the
60
- echo location of your Java installation.
60
+ echo. 1>&2
61
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62
+ echo. 1>&2
63
+ echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64
+ echo location of your Java installation. 1>&2
61
65
 
62
66
  goto fail
63
67
 
64
- :init
65
- @rem Get command-line arguments, handling Windows variants
66
-
67
- if not "%OS%" == "Windows_NT" goto win9xME_args
68
-
69
- :win9xME_args
70
- @rem Slurp the command line arguments.
71
- set CMD_LINE_ARGS=
72
- set _SKIP=2
73
-
74
- :win9xME_args_slurp
75
- if "x%~1" == "x" goto execute
76
-
77
- set CMD_LINE_ARGS=%*
78
-
79
68
  :execute
80
69
  @rem Setup the command line
81
70
 
82
71
  set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
83
72
 
73
+
84
74
  @rem Execute Gradle
85
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
75
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
86
76
 
87
77
  :end
88
78
  @rem End local scope for the variables with windows NT shell
89
- if "%ERRORLEVEL%"=="0" goto mainEnd
79
+ if %ERRORLEVEL% equ 0 goto mainEnd
90
80
 
91
81
  :fail
92
82
  rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
93
83
  rem the _cmd.exe /c_ return code!
94
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
95
- exit /b 1
84
+ set EXIT_CODE=%ERRORLEVEL%
85
+ if %EXIT_CODE% equ 0 set EXIT_CODE=1
86
+ if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87
+ exit /b %EXIT_CODE%
96
88
 
97
89
  :mainEnd
98
90
  if "%OS%"=="Windows_NT" endlocal