From 23b4bd42381e5bc7a1e2fabe9767c9649d8d55fc Mon Sep 17 00:00:00 2001 From: "dylan.volk" Date: Sat, 1 Jun 2019 16:08:33 -0700 Subject: [PATCH 1/2] added package alias --- config/project-scratch-def.json | 8 +++++--- sfdx-project.json | 10 ++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/config/project-scratch-def.json b/config/project-scratch-def.json index 76764a4..6065823 100644 --- a/config/project-scratch-def.json +++ b/config/project-scratch-def.json @@ -1,7 +1,9 @@ { "orgName": "Company", "edition": "Developer", - "orgPreferences" : { - "enabled": ["S1DesktopEnabled"] + "settings": { + "orgPreferenceSettings": { + "s1DesktopEnabled": true + } } -} +} \ No newline at end of file diff --git a/sfdx-project.json b/sfdx-project.json index 02a98b9..f3cc6cb 100644 --- a/sfdx-project.json +++ b/sfdx-project.json @@ -2,10 +2,16 @@ "packageDirectories": [ { "path": "force-app", - "default": true + "default": true, + "package": "SamplePkg", + "versionName": "ver 0.1", + "versionNumber": "0.1.0.NEXT" } ], "namespace": "", "sfdcLoginUrl": "https://login.salesforce.com", - "sourceApiVersion": "43.0" + "sourceApiVersion": "43.0", + "packageAliases": { + "SamplePkg": "0Ho4P000000fxUCSAY" + } } \ No newline at end of file From c331fa87e1961809a8986f244f572c2e73a14604 Mon Sep 17 00:00:00 2001 From: dvolk20 <40338446+dvolk20@users.noreply.github.com> Date: Sat, 1 Jun 2019 16:42:34 -0700 Subject: [PATCH 2/2] Update DemoController.cls --- force-app/main/default/classes/DemoController.cls | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/force-app/main/default/classes/DemoController.cls b/force-app/main/default/classes/DemoController.cls index b90a42f..6ded922 100644 --- a/force-app/main/default/classes/DemoController.cls +++ b/force-app/main/default/classes/DemoController.cls @@ -1,4 +1,7 @@ public with sharing class DemoController { + + private String appVersion = '1.0.0'; + /** * An empty constructor for the testing */ @@ -8,6 +11,6 @@ public with sharing class DemoController { * Get the version of the SFDX demo app */ public String getAppVersion() { - return '1.0.0'; + return appVersion; } }