@expo-harmony/prebuild-config 55.0.0-harmony.7 → 55.0.0-harmony.8

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.
@@ -171,6 +171,7 @@ function withEntryMods(config) {
171
171
  ...module,
172
172
  name: harmony.moduleName,
173
173
  type: 'entry',
174
+ srcEntry: './ets/abilitystage/EntryAbilityStage.ets',
174
175
  description: '$string:expo_harmony_module_desc',
175
176
  mainElement: harmony.abilityName,
176
177
  deviceTypes: harmony.deviceTypes,
@@ -38,10 +38,11 @@ const config_plugins_1 = require("@expo-harmony/config-plugins");
38
38
  const dependencies_1 = require("../dependencies");
39
39
  const render = __importStar(require("../renderers"));
40
40
  const SourceMods = [
41
+ [config_plugins_1.withAbilityStage, config_plugins_1.HarmonyPaths.HARMONY_PATHS.abilityStage],
41
42
  [config_plugins_1.withEntryAbility, config_plugins_1.HarmonyPaths.HARMONY_PATHS.entryAbility, render.renderEntryAbility],
42
- [config_plugins_1.withIndexPage, config_plugins_1.HarmonyPaths.HARMONY_PATHS.indexPage, render.renderIndexPage],
43
+ [config_plugins_1.withIndexPage, config_plugins_1.HarmonyPaths.HARMONY_PATHS.indexPage],
43
44
  [config_plugins_1.withWorker, config_plugins_1.HarmonyPaths.HARMONY_PATHS.worker],
44
- [config_plugins_1.withArkTSPackageProvider, config_plugins_1.HarmonyPaths.HARMONY_PATHS.arktsPackageProvider],
45
+ [config_plugins_1.withArkTSPackageProvider, config_plugins_1.HarmonyPaths.HARMONY_PATHS.arktsPackageProvider, render.renderPackageProvider],
45
46
  [config_plugins_1.withCppPackageProvider, config_plugins_1.HarmonyPaths.HARMONY_PATHS.cppPackageProvider],
46
47
  [config_plugins_1.withCMakeLists, config_plugins_1.HarmonyPaths.HARMONY_PATHS.cmakeLists],
47
48
  ];
@@ -3,5 +3,5 @@ declare function renderCanonical(source: any, label: any): string;
3
3
  declare function renderReactNativeConfig(): string;
4
4
  declare function renderRootHvigor(source: any, build: HarmonyBuildDescriptor): any;
5
5
  declare function renderEntryAbility(source: any, harmony: any): any;
6
- declare function renderIndexPage(source: any, harmony: any): any;
7
- export { renderCanonical, renderEntryAbility, renderIndexPage, renderReactNativeConfig, renderRootHvigor, };
6
+ declare function renderPackageProvider(source: any, harmony: any): any;
7
+ export { renderCanonical, renderEntryAbility, renderPackageProvider, renderReactNativeConfig, renderRootHvigor, };
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.renderCanonical = renderCanonical;
4
4
  exports.renderEntryAbility = renderEntryAbility;
5
- exports.renderIndexPage = renderIndexPage;
5
+ exports.renderPackageProvider = renderPackageProvider;
6
6
  exports.renderReactNativeConfig = renderReactNativeConfig;
7
7
  exports.renderRootHvigor = renderRootHvigor;
8
8
  const template_1 = require("./template");
@@ -39,7 +39,7 @@ function renderEntryAbility(source, harmony) {
39
39
  source = renderCanonical(source, 'EntryAbility.ets');
40
40
  return replacePlaceholder(source, template_1.TEMPLATE_PLACEHOLDERS.abilityName, harmony.abilityName, 'ability class');
41
41
  }
42
- function renderIndexPage(source, harmony) {
43
- source = renderCanonical(source, 'Index.ets');
42
+ function renderPackageProvider(source, harmony) {
43
+ source = renderCanonical(source, 'PackageProvider.ets');
44
44
  return replacePlaceholder(source, JSON.stringify(template_1.TEMPLATE_PLACEHOLDERS.appLabel), JSON.stringify(harmony.label), 'RN instance name');
45
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo-harmony/prebuild-config",
3
- "version": "55.0.0-harmony.7",
3
+ "version": "55.0.0-harmony.8",
4
4
  "keywords": [
5
5
  "react-native",
6
6
  "expo",
@@ -43,9 +43,9 @@
43
43
  "./package.json": "./package.json"
44
44
  },
45
45
  "dependencies": {
46
- "@expo-harmony/config-plugins": "55.0.10-harmony.3",
47
- "@expo-harmony/expo-modules-autolinking": "55.0.25-harmony.3",
48
- "@expo-harmony/template": "55.0.0-harmony.4",
46
+ "@expo-harmony/config-plugins": "55.0.10-harmony.4",
47
+ "@expo-harmony/expo-modules-autolinking": "55.0.25-harmony.4",
48
+ "@expo-harmony/template": "55.0.0-harmony.5",
49
49
  "@expo/config": "55.0.17",
50
50
  "@expo/config-plugins": "55.0.10",
51
51
  "@react-native-community/cli-config": "15.1.3",
@@ -218,6 +218,7 @@ function withEntryMods(config) {
218
218
  ...module,
219
219
  name: harmony.moduleName,
220
220
  type: 'entry',
221
+ srcEntry: './ets/abilitystage/EntryAbilityStage.ets',
221
222
  description: '$string:expo_harmony_module_desc',
222
223
  mainElement: harmony.abilityName,
223
224
  deviceTypes: harmony.deviceTypes,
@@ -242,6 +243,7 @@ function withEntryMods(config) {
242
243
  'strings',
243
244
  mod._internal?.harmonyStaleConfigPlugins || []
244
245
  );
246
+
245
247
  const app = mod.modResults.app ??= {};
246
248
  const entry = mod.modResults.entry ??= {};
247
249
 
@@ -263,7 +265,9 @@ function withEntryMods(config) {
263
265
  'colors',
264
266
  mod._internal?.harmonyStaleConfigPlugins || []
265
267
  );
268
+
266
269
  const entry = mod.modResults.entry ??= {};
270
+
267
271
  mod.modResults.entryDark ??= {};
268
272
 
269
273
  HarmonyResources.setColor(entry, { name: 'expo_harmony_start_window_background', value: harmony.backgroundColor });
@@ -1,16 +1,17 @@
1
1
  import {
2
2
  normalizeHarmonyConfig, HarmonyPaths, withArkTSPackageProvider, withCMakeLists, withCppPackageProvider,
3
- withEntryAbility, withIndexPage, withWorker,
3
+ withAbilityStage, withEntryAbility, withIndexPage, withWorker,
4
4
  } from '@expo-harmony/config-plugins';
5
5
 
6
6
  import { readTemplateSource } from '../dependencies';
7
7
  import * as render from '../renderers';
8
8
 
9
9
  const SourceMods = [
10
+ [withAbilityStage, HarmonyPaths.HARMONY_PATHS.abilityStage],
10
11
  [withEntryAbility, HarmonyPaths.HARMONY_PATHS.entryAbility, render.renderEntryAbility],
11
- [withIndexPage, HarmonyPaths.HARMONY_PATHS.indexPage, render.renderIndexPage],
12
+ [withIndexPage, HarmonyPaths.HARMONY_PATHS.indexPage],
12
13
  [withWorker, HarmonyPaths.HARMONY_PATHS.worker],
13
- [withArkTSPackageProvider, HarmonyPaths.HARMONY_PATHS.arktsPackageProvider],
14
+ [withArkTSPackageProvider, HarmonyPaths.HARMONY_PATHS.arktsPackageProvider, render.renderPackageProvider],
14
15
  [withCppPackageProvider, HarmonyPaths.HARMONY_PATHS.cppPackageProvider],
15
16
  [withCMakeLists, HarmonyPaths.HARMONY_PATHS.cmakeLists],
16
17
  ] as const;
package/src/renderers.ts CHANGED
@@ -57,8 +57,8 @@ function renderEntryAbility(source, harmony) {
57
57
  );
58
58
  }
59
59
 
60
- function renderIndexPage(source, harmony) {
61
- source = renderCanonical(source, 'Index.ets');
60
+ function renderPackageProvider(source, harmony) {
61
+ source = renderCanonical(source, 'PackageProvider.ets');
62
62
 
63
63
  return replacePlaceholder(
64
64
  source,
@@ -71,7 +71,7 @@ function renderIndexPage(source, harmony) {
71
71
  export {
72
72
  renderCanonical,
73
73
  renderEntryAbility,
74
- renderIndexPage,
74
+ renderPackageProvider,
75
75
  renderReactNativeConfig,
76
76
  renderRootHvigor,
77
77
  };