diff --git a/README.md b/README.md
index 7ea0f8a..be36a43 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,8 @@
The GIF-to-Chatter app for Lightning Platform you didn't know you needed!
+This repo was developed for the [Quick Start: Unlocked Packages](https://trailhead.salesforce.com/projects/quick-start-unlocked-packages?trailmix_creator_id=00550000006yDdKAAU&trailmix_id=dreamforce-18-how-build-your-first-sfdx-app-with-unlocked-pkg) Trailhead project.
+

## Get a GIPHY API Key
@@ -11,8 +13,9 @@ Go to [https://developers.giphy.com/](https://developers.giphy.com/) and create
## Create an Unlocked Package
Create an Unlocked package:
+
```
-sfdx force:package2:create -n GIFter -d "Using GIPHY to find GIFs and post to Chatter" -o Unlocked
+sfdx force:package:create -n GIFter -d "Using GIPHY to find GIFs and post to Chatter" -r force-app -t Unlocked -v DevHub
```
This will only take a moment, and you'll have the following output:
@@ -21,23 +24,26 @@ This will only take a moment, and you'll have the following output:
=== Ids
NAME VALUE
───────────────────── ──────────────────
-Package2 Id 0Ho6A0000004C9hSAE
-Subscriber Package Id 0336A0000001JQ6QAM
+Package Id 0Hoxxx
```
-Grab the `Package2 Id`.
-Open the `sfdx-project.json` file and replace `YOUR_PACKAGE_ID` with the ID from above (e.g. `0Ho6A0000004C9hSAE`).
+Grab the `Package Id`.
+
+Open the `sfdx-project.json` file.
+Notice that the `package:create` command updates the project file to include important details about the package. In `packageDirectories`, you can see the package name you defined, with placeholders for the version name and version number. The command also creates a `packageAliases` section, which maps the package name (alias) to its corresponding package ID (`0Ho`).
Now, create a version of your package:
+
```
-sfdx force:package2:version:create -d force-app --wait 10
+sfdx force:package:version:create -p GIFter -d force-app -k test1234 --wait 10 -v DevHub
```
This will take a few moments. When complete, you'll have a message like the following:
```
-Successfully created the package2 version [08c6A0000004CFWQA2]. Package2 Version Id: 05i6A000000CaSoQAK.
-Subscriber Package2 Version Id: 04t6A000001aR9rQAE.
+Successfully created the package version [08cxxx]. Subscriber Package Version Id: 04txxx.
+Package Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04txxx
+As an alternative, you can use the "sfdx force:package:install" command.
```
Grab the last ID that starts with `04t` as that's what we'll use when installing into a new environment.
@@ -51,7 +57,7 @@ sfdx force:org:create -s -f config/project-scratch-def.json
Install the package version:
```
-sfdx force:package:install -i 04t6A000001aR9rQAE --wait 10
+sfdx force:package:install --wait 10 --publishwait 10 --package GIFter@0.1.0-1 -k test1234 --noprompt
```
Assign the permission set:
@@ -63,7 +69,7 @@ sfdx force:user:permset:assign -n GIFter
Open the app:
```
-sfdx force:org:open -p one/one.app#/n/GIFter
+sfdx force:org:open -p //lightning/n/GIFter
```
-Enjoy!
\ No newline at end of file
+Enjoy!
diff --git a/config/project-scratch-def.json b/config/project-scratch-def.json
index 1a179ba..15456a5 100644
--- a/config/project-scratch-def.json
+++ b/config/project-scratch-def.json
@@ -1,8 +1,9 @@
{
- "orgName": "wade.wegner Company",
+ "orgName": "GIFter",
"edition": "Developer",
- "orgPreferences" : {
- "enabled": ["S1DesktopEnabled", "ChatterEnabled"],
- "disabled": ["S1EncryptedStoragePref2"]
+ "settings" : {
+ "orgPreferenceSettings" : {
+ "s1EncryptedStoragePref2" : false
+ }
}
}
diff --git a/force-app/main/default/aura/SearchGIPHY/SearchGIPHY.auradoc b/force-app/main/default/aura/SearchGIPHY/SearchGIPHY.auradoc
deleted file mode 100644
index d0d6eb5..0000000
--- a/force-app/main/default/aura/SearchGIPHY/SearchGIPHY.auradoc
+++ /dev/null
@@ -1,6 +0,0 @@
-
- Documentation
-
- Example Description
-
-
\ No newline at end of file
diff --git a/force-app/main/default/aura/SearchGIPHY/SearchGIPHY.cmp-meta.xml b/force-app/main/default/aura/SearchGIPHY/SearchGIPHY.cmp-meta.xml
index 885369a..66a06fe 100644
--- a/force-app/main/default/aura/SearchGIPHY/SearchGIPHY.cmp-meta.xml
+++ b/force-app/main/default/aura/SearchGIPHY/SearchGIPHY.cmp-meta.xml
@@ -1,5 +1,5 @@
- 42.0
+ 44.0
A Lightning Component Bundle
diff --git a/force-app/main/default/aura/SearchGIPHY/SearchGIPHY.design b/force-app/main/default/aura/SearchGIPHY/SearchGIPHY.design
deleted file mode 100644
index d247163..0000000
--- a/force-app/main/default/aura/SearchGIPHY/SearchGIPHY.design
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/force-app/main/default/aura/SearchGIPHY/SearchGIPHYRenderer.js b/force-app/main/default/aura/SearchGIPHY/SearchGIPHYRenderer.js
deleted file mode 100644
index 3a11ff5..0000000
--- a/force-app/main/default/aura/SearchGIPHY/SearchGIPHYRenderer.js
+++ /dev/null
@@ -1,5 +0,0 @@
-({
-
-// Your renderer method overrides go here
-
-})
diff --git a/force-app/main/default/classes/ChatterHelper.cls-meta.xml b/force-app/main/default/classes/ChatterHelper.cls-meta.xml
index 3384ca7..a620a55 100644
--- a/force-app/main/default/classes/ChatterHelper.cls-meta.xml
+++ b/force-app/main/default/classes/ChatterHelper.cls-meta.xml
@@ -1,5 +1,5 @@
- 42.0
+ 44.0
Active
\ No newline at end of file
diff --git a/sfdx-project.json b/sfdx-project.json
index 31b5f42..51cc86b 100644
--- a/sfdx-project.json
+++ b/sfdx-project.json
@@ -1,14 +1,11 @@
{
-"packageDirectories": [
- {
- "path": "force-app",
- "default": true,
- "id": "YOUR_PACKAGE_ID",
- "versionNumber": "1.0.0.NEXT",
- "versionName": "Spring ‘18"
- }
- ],
- "namespace": "",
- "sfdcLoginUrl": "https://login.salesforce.com",
- "sourceApiVersion": "42.0"
-}
+ "packageDirectories": [
+ {
+ "path": "force-app",
+ "default": true
+ }
+ ],
+ "namespace": "",
+ "sfdcLoginUrl": "https://login.salesforce.com",
+ "sourceApiVersion": "44.0"
+}
\ No newline at end of file