Skip to content

Commit

Permalink
Update API version to 51 & regenerate unlocked package
Browse files Browse the repository at this point in the history
  • Loading branch information
benahm committed May 16, 2021
1 parent 1ab1592 commit 8159bb1
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 9 deletions.
15 changes: 15 additions & 0 deletions COMMANDS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### Generate an Unlocked Package

Create the package

sfdx force:package:create --name ApexTestDataFactory --packagetype Unlocked --path force-app --targetdevhubusername MyDevOrg

Note : if there is already a promoted package version, update the version in `sfdx-project.json` before generating a new version

Create a package version

sfdx force:package:version:create --package ApexTestDataFactory --codecoverage --installationkeybypass --wait 20

Promote the package version

sfdx force:package:version:promote --package "04t..."
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Inserted data*:
Click on the package image to install the TestDataFactory Unlocked Package 🔓📦

<p align="center">
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t1n000001YVMdAAO">
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04t1n000002aDxKAAU">
<img src ="/docs/assets/package.png" width="100"/>
</a>
</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

#### Installation

Get the ``TestDataFactory`` class by installing the [TestDataFactory Unlocked Package](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t1n000001YVMdAAO) 🔓📦 in your org using the UI or by running the following DX command
Get the ``TestDataFactory`` class by installing the [TestDataFactory Unlocked Package](https://test.salesforce.com/packaging/installPackage.apexp?p0=04t1n000002aDxKAAU) 🔓📦 in your org using the UI or by running the following DX command

sfdx force:package:install --wait 10 --publishwait 10 --package 04t1n000001YVMdAAO -r -u AliasOfYourOrg
sfdx force:package:install --wait 10 --publishwait 10 --package 04t1n000002aDxKAAU -r -u AliasOfYourOrg

## Next

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>48.0</apiVersion>
<apiVersion>51.0</apiVersion>
<status>Active</status>
</ApexClass>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>48.0</apiVersion>
<apiVersion>51.0</apiVersion>
<status>Active</status>
</ApexClass>
10 changes: 6 additions & 4 deletions sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
{
"path": "force-app",
"package": "ApexTestDataFactory",
"versionName": "ver 3.0",
"versionNumber": "3.0.0.NEXT",
"versionName": "ver 3.1",
"versionNumber": "3.1.0.NEXT",
"versionDescription": "Apex Test Data Factory",
"default": true
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "48.0",
"sourceApiVersion": "51.0",
"packageAliases": {
"ApexTestDataFactory": "0Ho1n000000TN3pCAG"
"ApexTestDataFactory": "0Ho1n000000TN3pCAG",
"ApexTestDataFactory@3.0.0-2": "04t1n000002aDxFAAU",
"ApexTestDataFactory@3.1.0-1": "04t1n000002aDxKAAU"
}
}

0 comments on commit 8159bb1

Please sign in to comment.