Skip to content

Commit ca04a6d

Browse files
feat: add build-actions folder
References: https://outsystemsrd.atlassian.net/browse/RMET-3654
1 parent 97787e3 commit ca04a6d

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

build-actions/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Build Actions
2+
3+
This folder contains .yaml files for configuring build actions to use in a plugin on ODC with Capacitor. The purpose of these build actions is to provide the same functionality as cordova hooks, but on a Capacitor shell.
4+
5+
## Contents
6+
7+
The file `setiOSConfigurations.yaml` contains two build actions:
8+
9+
- iOS specific. Adds entries to the Debug and Release entitlement files.
10+
11+
- iOS specific. Adds an entry to the application's .plist file.
12+
13+
There is also a Capacitor hook present - `insert_azure_repository.js`, with the purpose of inserting our Maven Azure repository (where the native library is released to), which fixes release builds on Android with Capacitor.
14+
15+
## Outsystems' Usage
16+
17+
1. Copy the build action yaml file (which can contain multiple build actions inside) into the ODC Plugin, placing them in "Data" -> "Resources" and set "Deploy Action" to "Deploy to Target Directory", with target directory empty.
18+
2. Update the Plugin's Extensibility configuration to use the build action.
19+
20+
```json
21+
{
22+
"buildConfigurations": {
23+
"buildAction": {
24+
"config": $resources.buildActionFileName.yaml,
25+
"parameters": {
26+
// parameters go here; if there are no parameters then the block can be ommited
27+
}
28+
}
29+
}
30+
}
31+
```
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
platforms:
2+
ios:
3+
builds:
4+
Debug:
5+
entitlements:
6+
entries:
7+
- aps-environment: 'development'
8+
plist:
9+
- replace: true
10+
entries:
11+
- UIBackgroundModes:
12+
- remote-notification
13+
Release:
14+
entitlements:
15+
entries:
16+
- aps-environment: 'production'
17+
plist:
18+
- replace: true
19+
entries:
20+
- UIBackgroundModes:
21+
- remote-notification

0 commit comments

Comments
 (0)