Skip to content

Commit

Permalink
add integration to app-harness
Browse files Browse the repository at this point in the history
  • Loading branch information
pavjacko committed Mar 6, 2024
1 parent 062fab6 commit 9878ea5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions buildHooks/src/prePublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const VERSIONED_PACKAGES = [
'sdk-webos',
'sdk-utils',
'renative',
'integration-docker',
];

type PackageConfig = {
Expand Down
1 change: 1 addition & 0 deletions packages/app-harness/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"@rnv/engine-rn-next": "1.0.0-rc.12",
"@rnv/engine-rn-tvos": "1.0.0-rc.12",
"@rnv/engine-rn-web": "1.0.0-rc.12",
"@rnv/integration-starter": "1.0.0-rc.12",
"@rnv/template-starter": "1.0.0-rc.12",
"@types/react": "18.2.52",
"@types/react-dom": "18.2.18",
Expand Down
8 changes: 7 additions & 1 deletion packages/app-harness/renative.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"crypto": {
"path": "./secrets/privateConfigs.enc"
},
"integrations": {
"@rnv/integration-starter": {}
},
"plugins": {
"react-native-splash-screen": {
"android": {
Expand Down Expand Up @@ -151,7 +154,10 @@
"templateXcode": {
"AppDelegate_h": {
"appDelegateExtensions": ["UNUserNotificationCenterDelegate"],
"appDelegateImports": ["<UserNotifications/UNUserNotificationCenter.h>", "<UserNotifications/UserNotifications.h>"]
"appDelegateImports": [
"<UserNotifications/UNUserNotificationCenter.h>",
"<UserNotifications/UserNotifications.h>"
]
},
"AppDelegate_mm": {
"appDelegateImports": ["<RNCPushNotificationIOS.h>"],
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/logger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ export const logSuccess = (msg: string) => {
message: stripAnsi(_sanitizePaths(msg)),
});
}
logAndSave(currentChalk.magenta(`success:${_getCurrentTask()} ${_sanitizePaths(msg)}`));
logAndSave(currentChalk.magenta(`success: ${_getCurrentTask()} ${_sanitizePaths(msg)}`));
};

export const logError = (e: Error | string | unknown, isEnd = false, skipAnalytics = false) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/integration-starter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rnv/integration-starter",
"version": "1.0.0-rc.11",
"version": "1.0.0-rc.12",
"description": "ReNative Example Integration",
"keywords": [
"renative",
Expand Down
11 changes: 5 additions & 6 deletions packages/integration-starter/src/tasks/taskStarterHello.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { RnvContext, logTask, RnvTaskOptionPresets, logSuccess, RnvTask } from '@rnv/core';
import { RnvContext, RnvTaskOptionPresets, logSuccess, RnvTask, RnvTaskFn } from '@rnv/core';

const taskStarterHello = async (_c: RnvContext) => {
logTask('taskStarterHello');

logSuccess('Hello from Integration Starter!');
const taskStarterHello: RnvTaskFn = async (c: RnvContext) => {
logSuccess(`Hello from Integration Starter!
--my-opt: "${c.program.myOpt}"`);
};

const Task: RnvTask = {
description: 'Prints hello message',
fn: taskStarterHello,
task: 'starter hello',
options: RnvTaskOptionPresets.withBase(),
options: RnvTaskOptionPresets.withBase([{ key: 'my-opt', description: 'Hello', value: 'value' }]),
platforms: [],
};

Expand Down

0 comments on commit 9878ea5

Please sign in to comment.