Skip to content

Commit

Permalink
Merge pull request #42 from OutSystems/development
Browse files Browse the repository at this point in the history
RMET-3341 ::: Prepare main for Release `1.2.0`
  • Loading branch information
OS-ricardomoreirasilva committed Apr 15, 2024
2 parents a8ca71c + 7a123a3 commit 3a88c45
Show file tree
Hide file tree
Showing 33 changed files with 8,453 additions and 339 deletions.
23 changes: 22 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

The changes documented here do not include those from the original repository.

## [Unreleased]
## 1.2.0

### Features
- Update the iOS framework. This adds the Privacy Manifest file (https://outsystemsrd.atlassian.net/browse/RMET-3283).

### Chores
- Update cordova hooks with new OutSystems specific errors. (https://outsystemsrd.atlassian.net/browse/RMET-3311)

## [Version 1.1.2]

### 21-12-2023
- Fix: [Android] Updates dependency to OSCore and OSCordova (https://outsystemsrd.atlassian.net/browse/RMET-2993).

## [Version 1.1.1]

### 03-10-2023
- Fix: [iOS] Fixes path, removing duplicate string (https://outsystemsrd.atlassian.net/browse/RMET-2855).

### 13-07-2023
- Feat: Update hook to consider new resources paths (https://outsystemsrd.atlassian.net/browse/RMET-2477).

- Chore: Update cordova hooks with new OutSystems specific errors. (https://outsystemsrd.atlassian.net/browse/RMET-3311)

## [Version 1.1.2]

Expand Down
10 changes: 5 additions & 5 deletions hooks/android/androidCopyPreferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ module.exports = function (context) {
jsonParsed = JSON.parse(jsonConfigFile);
}
catch {
throw new Error("Missing configuration file or error trying to obtain the configuration.");
throw new Error("OUTSYSTEMS_PLUGIN_ERROR: Missing configuration file or error trying to obtain the configuration.");
}

jsonParsed.app_configurations.forEach(function(configItem) {
jsonParsed.app_configurations.forEach((configItem) => {
if (configItem.service_id == ServiceEnum.GooglePay) {
hasGooglePay = true;
var error_list = [];
let error_list = [];

if(configItem.merchant_name && configItem.merchant_name !== ""){
merchant_name = configItem.merchant_name;
Expand Down Expand Up @@ -109,9 +109,9 @@ module.exports = function (context) {
}

if (error_list.length > 0) {
throw new Error("The following fields are either missing or empty in the configuration: " + error_list);
console.error("Missing fields: " + error_list);
throw new Error("OUTSYSTEMS_PLUGIN_ERROR: Payments configuration is missing some fields. Please check build logs to know more.");
}
return;
}
});

Expand Down
12 changes: 5 additions & 7 deletions hooks/ios/iOSCopyPreferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const et = require('elementtree');
const path = require('path');
const fs = require('fs');
const plist = require('plist');
const child_process = require('child_process');
const { ConfigParser } = require('cordova-common');

module.exports = function (context) {
Expand Down Expand Up @@ -40,12 +39,12 @@ module.exports = function (context) {
let jsonConfigFile = fs.readFileSync(jsonConfig, 'utf8');
jsonParsed = JSON.parse(jsonConfigFile);
} catch {
throw new Error("Missing configuration file or error trying to obtain the configuration.");
throw new Error("OUTSYSTEMS_PLUGIN_ERROR: Missing configuration file or error trying to obtain the configuration.");
}

jsonParsed.app_configurations.forEach(function(configItem) {
jsonParsed.app_configurations.forEach((configItem) => {
if (configItem.service_id == ServiceEnum.ApplePay) {
var error_list = [];
let error_list = [];

if (configItem.merchant_id != null && configItem.merchant_id !== "") {
merchant_id = configItem.merchant_id;
Expand Down Expand Up @@ -102,10 +101,9 @@ module.exports = function (context) {
}

if (error_list.length > 0) {
throw new Error("Configuration is missing the following fields: " + error_list);
console.error("Missing fields: " + error_list);
throw new Error("OUTSYSTEMS_PLUGIN_ERROR: Payments configuration is missing some fields. Please check build logs to know more.");
}

return;
}
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.outsystems.payments",
"version": "1.1.2",
"version": "1.2.0",
"description": "OutSystems-owned plugin for mobile payments",
"keywords": [
"ecosystem:cordova",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<plugin id="com.outsystems.payments" version="1.1.2" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<plugin id="com.outsystems.payments" version="1.2.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>OSPayments</name>
<description>OutSystems-owned plugin for mobile payments</description>
<author>OutSystems Inc</author>
Expand Down
14 changes: 9 additions & 5 deletions src/ios/frameworks/OSPaymentsLib.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,35 @@
<key>AvailableLibraries</key>
<array>
<dict>
<key>BinaryPath</key>
<string>OSPaymentsLib.framework/OSPaymentsLib</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>OSPaymentsLib.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>OSPaymentsLib.framework/OSPaymentsLib</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>OSPaymentsLib.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 3a88c45

Please sign in to comment.