@expo/repack-app 0.0.2 → 0.0.3
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/build/android/build-tools.js +1 -1
- package/build/android/index.js +1 -1
- package/build/android/resources.js +2 -2
- package/build/cjs-wrapper.d.ts +5 -0
- package/build/cjs-wrapper.js +5 -0
- package/build/expo.js +1 -1
- package/build/ios/build-tools.js +1 -1
- package/build/ios/index.js +1 -1
- package/build/ios/resources.js +1 -2
- package/build/utils.js +2 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import spawnAsync from '@expo/turtle-spawn';
|
|
2
1
|
import { glob } from 'glob';
|
|
3
2
|
import assert from 'node:assert';
|
|
4
3
|
import fs from 'node:fs/promises';
|
|
5
4
|
import path from 'node:path';
|
|
5
|
+
import { spawnAsync } from '../cjs-wrapper.js';
|
|
6
6
|
let cachedAndroidTools = null;
|
|
7
7
|
/**
|
|
8
8
|
* Get the paths to the Android build-tools.
|
package/build/android/index.js
CHANGED
|
@@ -38,7 +38,7 @@ export async function repackAppAndroidAsync(_options) {
|
|
|
38
38
|
logger.time(`Creating updated apk`);
|
|
39
39
|
const outputApk = await createResignedApkAsync(binaryApkPath, appConfigPath, options, {
|
|
40
40
|
keyStorePath: options.androidSigningOptions?.keyStorePath ??
|
|
41
|
-
path.resolve(
|
|
41
|
+
path.resolve(import.meta.dirname, '../assets/debug.keystore'),
|
|
42
42
|
keyStorePassword: options.androidSigningOptions?.keyStorePassword ?? 'android',
|
|
43
43
|
keyAlias: options.androidSigningOptions?.keyAlias,
|
|
44
44
|
keyPassword: options.androidSigningOptions?.keyPassword,
|
|
@@ -7,7 +7,7 @@ import { requireNotNull } from '../utils.js';
|
|
|
7
7
|
* Update resources inside the **resources.pb** file.
|
|
8
8
|
*/
|
|
9
9
|
export async function updateResourcesAsync(config, resourcesPbFilePath) {
|
|
10
|
-
const root = await protobuf.load(path.join(
|
|
10
|
+
const root = await protobuf.load(path.join(import.meta.dirname, '../../assets', 'Resources.proto'));
|
|
11
11
|
const resourceTableType = root.lookupType('aapt.pb.ResourceTable');
|
|
12
12
|
const resourceTable = await decodeProtoFile(resourceTableType, resourcesPbFilePath);
|
|
13
13
|
// [0] Update the package name
|
|
@@ -26,7 +26,7 @@ export async function updateResourcesAsync(config, resourcesPbFilePath) {
|
|
|
26
26
|
* Update the proto-based AndroidManiest.xml.
|
|
27
27
|
*/
|
|
28
28
|
export async function updateAndroidManifestAsync(config, androidManiestFilePath, options, updatesRuntimeVersion) {
|
|
29
|
-
const root = await protobuf.load(path.join(
|
|
29
|
+
const root = await protobuf.load(path.join(import.meta.dirname, '../../assets', 'Resources.proto'));
|
|
30
30
|
const xmlNodeType = root.lookupType('aapt.pb.XmlNode');
|
|
31
31
|
const rootNode = await decodeProtoFile(xmlNodeType, androidManiestFilePath);
|
|
32
32
|
// [0] Update the package name
|
package/build/expo.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import spawnAsync from '@expo/turtle-spawn';
|
|
2
1
|
import fs from 'node:fs/promises';
|
|
3
2
|
import path from 'node:path';
|
|
4
3
|
import resolveFrom from 'resolve-from';
|
|
4
|
+
import { spawnAsync } from './cjs-wrapper.js';
|
|
5
5
|
/**
|
|
6
6
|
* Generate the app.config file for the Android app.
|
|
7
7
|
*/
|
package/build/ios/build-tools.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import spawnAsync from '@expo/turtle-spawn';
|
|
2
1
|
import assert from 'node:assert';
|
|
3
2
|
import fs from 'node:fs/promises';
|
|
4
3
|
import path from 'node:path';
|
|
4
|
+
import { spawnAsync } from '../cjs-wrapper.js';
|
|
5
5
|
import { directoryExistsAsync } from '../utils.js';
|
|
6
6
|
/**
|
|
7
7
|
* Unzip the IPA file.
|
package/build/ios/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getConfig } from '@expo/config';
|
|
2
|
-
import spawnAsync from '@expo/turtle-spawn';
|
|
3
2
|
import fs from 'node:fs/promises';
|
|
4
3
|
import path from 'node:path';
|
|
5
4
|
import pico from 'picocolors';
|
|
6
5
|
import { createIpaAsync, unzipIpaAsync, updateFilesAsync } from './build-tools.js';
|
|
7
6
|
import { updateExpoPlistAsync, updateInfoPlistAsync } from './resources.js';
|
|
7
|
+
import { spawnAsync } from '../cjs-wrapper.js';
|
|
8
8
|
import { generateAppConfigAsync, resolveRuntimeVersionAsync } from '../expo.js';
|
|
9
9
|
import logger from '../log.js';
|
|
10
10
|
import { normalizeOptionAsync } from '../utils.js';
|
package/build/ios/resources.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import plist from '@expo/plist';
|
|
2
|
-
import spawnAsync from '@expo/turtle-spawn';
|
|
3
1
|
import assert from 'node:assert';
|
|
4
2
|
import fs from 'node:fs/promises';
|
|
3
|
+
import { plist, spawnAsync } from '../cjs-wrapper.js';
|
|
5
4
|
import { requireNotNull } from '../utils.js';
|
|
6
5
|
/**
|
|
7
6
|
* Update the Info.plist file.
|
package/build/utils.js
CHANGED