@expo/repack-app 0.1.16 → 0.2.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-present 650 Industries, Inc. (aka Expo)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -22,9 +22,9 @@ repack-app [options] [project-root]
22
22
  #### Android-specific Options
23
23
 
24
24
  - `--ks <path>`: Path to the keystore file
25
- - `--ks-pass <password>`: Keystore password (supports formats: `pass:<password>`, `env:<name>`, `file:<file>`)
25
+ - `--ks-pass <password>`: Keystore password (supported formats: `pass:<password>`, `env:<name>`, `file:<file>`)
26
26
  - `--ks-key-alias <alias>`: Keystore key alias
27
- - `--ks-key-pass <password>`: Keystore key password (supports formats: `pass:<password>`, `env:<name>`, `file:<file>`)
27
+ - `--ks-key-pass <password>`: Keystore key password (supported formats: `pass:<password>`, `env:<name>`, `file:<file>`)
28
28
 
29
29
  #### iOS-specific Options
30
30
 
@@ -34,8 +34,8 @@ repack-app [options] [project-root]
34
34
 
35
35
  #### Bundle Options
36
36
 
37
- - `--embed-bundle-assets`: Execute export:embed to embed new bundle assets
38
- - `--bundle-assets-sourcemap-output <path>`: Generate sourcemap to the specified path (paired with --embed-bundle-assets)
37
+ - `--embed-bundle-assets`: Force embedding of bundle assets
38
+ - `--bundle-assets-sourcemap-output <path>`: Generate sourcemap at the specified path (used with --embed-bundle-assets)
39
39
 
40
40
  ### Programmatic Usage
41
41
 
@@ -101,7 +101,7 @@ The following options are available when using the API programmatically:
101
101
  - `workingDirectory?`: string - Working directory for temporary files
102
102
  - `outputPath?`: string - Path to the output app file (defaults to `projectRoot/repacked.apk` or `projectRoot/repacked.ipa`)
103
103
  - `verbose?`: boolean - Enable verbose logging
104
- - `exportEmbedOptions?`: ExportEmbedOptions - Options for embedding JS bundle
104
+ - `exportEmbedOptions?`: ExportEmbedOptions - Options for embedding JS bundle. When specified, repack will generate bundle assets.
105
105
  - `skipWorkingDirCleanup?`: boolean - Skip working directory cleanup
106
106
  - `env?`: Record<string, string | undefined> - Environment variables
107
107
 
@@ -109,9 +109,9 @@ The following options are available when using the API programmatically:
109
109
 
110
110
  - `androidSigningOptions?`: AndroidSigningOptions - Options for signing the Android app
111
111
  - `keyStorePath`: string - Path to the keystore file
112
- - `keyStorePassword`: string - Keystore password (supports formats: `pass:<password>`, `env:<name>`, `file:<file>`)
112
+ - `keyStorePassword`: string - Keystore password (supported formats: `pass:<password>`, `env:<name>`, `file:<file>`)
113
113
  - `keyAlias?`: string - Keystore key alias
114
- - `keyPassword?`: string - Keystore key password (supports formats: `pass:<password>`, `env:<name>`, `file:<file>`)
114
+ - `keyPassword?`: string - Keystore key password (supported formats: `pass:<password>`, `env:<name>`, `file:<file>`)
115
115
  - `androidBuildToolsDir?`: string - Path to Android SDK build-tools directory
116
116
 
117
117
  #### iOS-specific Options
package/bin/cli.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  const { Command } = require('commander');
4
4
  const pico = require('picocolors');
5
+
5
6
  const { ConsoleLogger, repackAppAndroidAsync, repackAppIosAsync } = require('../dist/index');
6
7
 
7
8
  /**
@@ -24,7 +25,7 @@ const program = new Command('repack-app')
24
25
  .option('--signing-identity <identity>', 'Signing identity')
25
26
  .option('--provisioning-profile <path>', 'Path to the provisioning profile')
26
27
  // export:embed options
27
- .option('--embed-bundle-assets', 'Whether to execute export:embed to embed new bundle assets')
28
+ .option('--embed-bundle-assets', 'Force embedding of bundle assets')
28
29
  .option(
29
30
  '--bundle-assets-sourcemap-output <path>',
30
31
  'Paired with --embed-bundle-assets and generate the sourcemap to the specified path'
package/dist/index.d.ts CHANGED
@@ -131,7 +131,9 @@ export declare interface Options {
131
131
  */
132
132
  verbose?: boolean;
133
133
  /**
134
- * Whether to use the `npx export:embed` command to embed the JS bundle.
134
+ * The options for the `npx expo export:embed` command to embed the JS bundle.
135
+ * If provided, repack will execute the `npx expo export:embed` command to embed the JS bundle.
136
+ * If not provided, repack will based on the source app type to determine whether to embed the JS bundle.
135
137
  */
136
138
  exportEmbedOptions?: ExportEmbedOptions;
137
139
  /**