Skip to content

Commit

Permalink
change pbxproj to latest, disable packager
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Blaga committed Sep 11, 2023
1 parent fd35dff commit 73ffbf7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 49 deletions.
76 changes: 34 additions & 42 deletions NOTES.md
Original file line number Diff line number Diff line change
@@ -1,74 +1,66 @@



LOAD FILES TO MEMORY (MIGHT TAKE SEVERAL ROUNDS?)

generate abstract runtime definitions
generate all injections

CREATE ABSTRACT CONTEXT INFO


GENERATE / COPY NEW FILES

copy over template files (.tpl files to be injected )



rnv


@rnv/cli
@rnv/core
@rnv/sdk-tizen
@rnv/sdk-webos
@rnv/sdk-apple



import { executeRnv } from '@rnv/core'

await executeRnv({
commandAsString: 'rnv run -p ios',
commandAsObject: {
command: 'run',
},
cwd: '',
errorHandler: async ({}) => {
return true;
},
inputHandler: async ({}) => {
await executeRnv({
commandAsString: 'rnv run -p ios',
commandAsObject: {
command: 'run',
},
cwd: '',
errorHandler: async ({}) => {
return true;
},
inputHandler: async ({}) => {

},
logger: ({}) => {

}
});

}

- make build hooks typescript (with autocomplete)
- split rnv into cli & core
- move sdkManger to separate sdk packages
- rethink templateFile injection system
- renative.json: engines.engine-rn.platforms.ios.template.ignoreFiles: []
- merge engine-rn + tvos + macos????
});

- make build hooks typescript (with autocomplete)
- split rnv into cli & core
- move sdkManger to separate sdk packages
- rethink templateFile injection system
- renative.json: engines.engine-rn.platforms.ios.template.ignoreFiles: []
- merge engine-rn + tvos + macos????

templateFiles: {
'ios/Info.plist': {
isTemplate: source.endsWith('.tpl'),
source: 'ios/Info.plist.tpl',
dest: 'ios/Info.plist',
injections: {
'{{NAME}}': 'myApp'
}
},
'ios/image.png': {
source: 'ios/image.png',
dest: 'ios/image.png'
}
'ios/Info.plist': {
isTemplate: source.endsWith('.tpl'),
source: 'ios/Info.plist.tpl',
dest: 'ios/Info.plist',
injections: {
'{{NAME}}': 'myApp'
}
},
'ios/image.png': {
source: 'ios/image.png',
dest: 'ios/image.png'
}
}


if isTemplate = true && injections = undefined => use global injections
if isTemplate = true && injections = {...} => use local injections
if isTemplate = true && injections = {...} => use local injections

reading config files 17 times in the first half of an rnv run :D
a plugin that was removed from renative.json still has it's orchestra-plugins/builds and renative.plugins.json overrides applied
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
752A9765F8A14465B24BF97C /* libPods-RNVApp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7C717EEC7024EA4A970A8C0B /* libPods-RNVApp.a */; };
9408A38A2A97997800B2E736 /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 9408A3872A97997800B2E736 /* AppDelegate.mm */; };
9408A38B2A97997800B2E736 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9408A3882A97997800B2E736 /* main.m */; };
6A66EBB832774DC797D46743 /* Inter-Light.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0589671279BD450C95EFE3FA /* Inter-Light.ttf */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -75,7 +74,6 @@
C7A51880565C9437FC383DF0 /* Pods-RNVApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNVApp.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RNVApp/Pods-RNVApp.debug.xcconfig"; sourceTree = "<group>"; };
FA2535CB3354D16A4910CDF1 /* Pods-RNVAppTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNVAppTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-RNVAppTests/Pods-RNVAppTests.release.xcconfig"; sourceTree = "<group>"; };
FB345A890161D745CEEFDE63 /* Pods-RNVApp-RNVAppTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNVApp-RNVAppTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RNVApp-RNVAppTests/Pods-RNVApp-RNVAppTests.debug.xcconfig"; sourceTree = "<group>"; };
0589671279BD450C95EFE3FA /* Inter-Light.ttf */ = {isa = PBXFileReference; name = "Inter-Light.ttf"; path = "/Users/lego/work/renative/packages/template-starter/appConfigs/base/fonts/Inter-Light.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -141,9 +139,7 @@
};
2030C437224AE567002469E4 /* Resources */ = {
isa = PBXGroup;
children = (
0589671279BD450C95EFE3FA /* Inter-Light.ttf */,
);
children = ();
path = Resources;
sourceTree = "<group>";
};
Expand Down Expand Up @@ -356,7 +352,6 @@
200132FE1F6BF9CF00450340 /* Assets.xcassets in Resources */,
207BDA4024AB543F00F32013 /* LaunchScreen.storyboard in Resources */,
20CB0E7D21C695460010854F /* images in Resources */,
6A66EBB832774DC797D46743 /* Inter-Light.ttf in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-apple/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ const _checkLockAndExec = async (c: Context, appPath: string, scheme: string, ru
// const cmd = `node ${doResolve(
// c.runtime.runtimeExtraProps?.reactNativePackageName || 'react-native'
// )}/local-cli/cli.js run-ios --project-path ${appPath} --scheme ${scheme} --configuration ${runScheme} ${p}`;
const cmd = `npx react-native run-ios --scheme=${scheme} --mode=${runScheme}`;
const cmd = `npx react-native run-ios --scheme=${scheme} --mode=${runScheme} --no-packager`;
try {
// Inherit full logs
// return executeAsync(c, cmd, { stdio: 'inherit', silent: true });
Expand Down

0 comments on commit 73ffbf7

Please sign in to comment.