From 86aa966a2dd6aaa5ea9baae27a42e4df6856233a Mon Sep 17 00:00:00 2001 From: Eric Marchand <129385512+e-marchand@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:49:33 +0100 Subject: [PATCH] Update EditActionHasUniqueTask.md --- docs/EditActionHasUniqueTask.md | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/docs/EditActionHasUniqueTask.md b/docs/EditActionHasUniqueTask.md index f413b37..6a25baa 100644 --- a/docs/EditActionHasUniqueTask.md +++ b/docs/EditActionHasUniqueTask.md @@ -17,13 +17,20 @@ The feature is not for all, so a conf in ## MobileProject -maybe a key in mobile app project could be added, not mandatory, but useful if we want to generate new app with this feature, without the need to edit mobile project each time +Inside `Mobile Projects//project.4dmobileapp` add this to activate the feature -> 🚧 how to inject inside mobile app for new projet? (have a boolean inside mobileapp file, and "4d mobile app" + android project generator must do the following edit +```json + "extra": { + "editActionHasUniqueTask": true + } +} +``` + +⚠️ project must be close, and reopened ## Android -Inside `app/src/main/assets/appInfo.json` +Inside `app/src/main/assets/appInfo.json` add this to activate the feature for an already generated app ```json "action.edit.hasUniqueTask": true @@ -31,7 +38,7 @@ Inside `app/src/main/assets/appInfo.json` ## iOS -Inside `Settings/Settings.plist` +Inside `Settings/Settings.plist` add this to activate the feature for an already generated app ```xml action.edit.hasUniqueTask @@ -42,16 +49,16 @@ Inside `Settings/Settings.plist` ### for all type of action (doable quickly) -> :bulb: We could imagine have some definition by action, not only "edit" one. For that for instance a new boolean `hasUniqueTask` could be in the future added to the action json (or if we have time) +We could imagine have some definition by action, not only "edit" one. For that for instance a new boolean `hasUniqueTask` could be added to the action json -#### for iOS +#### for android -in storyboards definition inside `userDefinedRuntimeAttribute` +Inside `app/src/main/assets/actions.json` by action you could add `hasUniqueTask` to true -#### for android +#### for iOS -Inside `app/src/main/assets/actions.json` by action +in storyboards definition inside `userDefinedRuntimeAttribute`, find your action and edit in the one line json, the `hasUniqueTask` to true -#### allow to set action task unique in mobile project editor (will not do it) +#### allow to set action task unique in mobile project editor (IMPORTANT: will not do it) -adding for all in mobile project editor a way to edit project to set true or false by action +adding for all in mobile project editor a way to edit project to set true or false by action ie. a checkbox