Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@
<!--- Go over all the following items and put an `x` in all the boxes that apply -->
- [ ] Pull request title follows the format `RNMT-XXXX <title>`
- [ ] Code follows the code style of this project
- [ ] CHANGELOG.md file is correctly updated
- [ ] Changes require an update to the documentation
- [ ] Documentation has been updated accordingly
5 changes: 4 additions & 1 deletion .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: brew link --overwrite swiftlint || brew install swiftlint

- name: Set up XCode
run: sudo xcode-select --switch /Applications/Xcode_26.0.app
run: sudo xcode-select --switch /Applications/Xcode_26.1.1.app/Contents/Developer

- name: Bundle Install
run: bundle install
Expand All @@ -42,8 +42,11 @@ jobs:
- name: Setup sonarqube
uses: warchant/setup-sonar-scanner@v8

# TODO: Sonarcloud integration is failing, so continue-on-error: true was added
# to prevent blocking the pipeline. This should be revisited when we work on fixing this integration.
- name: Send to Sonarcloud
run: bundle exec fastlane sonarqube
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_KEY }}
81 changes: 0 additions & 81 deletions .github/workflows/prepare_release.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release

on:
workflow_dispatch: {}

env:
XCODE_VERSION: 26.2
NODE_VERSION: '24'

permissions:
contents: write
packages: write

jobs:
release:
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install dependencies
run: |
npm i

- name: Install CocoaPods
run: |
gem install cocoapods --no-document

- name: Set Xcode version
run: |
sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer

- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: |
npx semantic-release


67 changes: 0 additions & 67 deletions .github/workflows/release_and_publish.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,7 @@ iOSInjectionProject/

# macOS
.DS_Store

# Node.js / npm
node_modules/
package-lock.json
54 changes: 54 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"branches": ["main"],
"tagFormat": "${version}",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"prepareCmd": "bash ./scripts/update_xcodeproj_version.sh ${nextRelease.version} \"OSInAppBrowserLib.xcodeproj/project.pbxproj\" && bash ./scripts/update_readme_version.sh ${nextRelease.version} \"OSInAppBrowserLib\" \"README.md\" && bash ./scripts/build_framework.sh \"OSInAppBrowserLib\" \"LICENSE\""
}
],
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"OSInAppBrowserLib.xcodeproj/project.pbxproj",
"OSInAppBrowserLib.podspec",
"package.json",
"README.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "OSInAppBrowserLib.zip",
"label": "OSInAppBrowserLib XCFramework"
}
],
"successComment": false,
"failComment": false,
"releasedLabels": false
}
],
[
"@semantic-release/exec",
{
"publishCmd": "bash ./scripts/publish_cocoapods.sh ${nextRelease.version} \"OSInAppBrowserLib\""
}
]
]
}
6 changes: 0 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2.3.1

### Fixes
Expand Down
13 changes: 8 additions & 5 deletions OSInAppBrowserLib.podspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |spec|
spec.name = 'OSInAppBrowserLib'
spec.version = '2.3.1'
spec.name = package['name']
spec.version = package['version']

spec.summary = 'The `OSInAppBrowserLib` is a library that provides a web browser view to load a web page within a Mobile Application.'
spec.summary = package['description']
spec.description = <<-DESC
The InAppBrowserLib library behaves as a standard web browser and is useful to load untrusted content without risking your application's security.

Expand All @@ -18,8 +21,8 @@ Pod::Spec.new do |spec|
DESC

spec.homepage = 'https://github.com/OutSystems/OSInAppBrowserLib-iOS'
spec.license = { :type => 'MIT', :file => 'LICENSE' }
spec.author = { 'OutSystems Mobile Ecosystem' => 'rd.mobileecosystem.team@outsystems.com' }
spec.license = { :type => package['license'], :file => 'LICENSE' }
spec.author = { package['author'] => package['email'] }

spec.source = { :http => "https://github.com/OutSystems/OSInAppBrowserLib-iOS/releases/download/#{spec.version}/OSInAppBrowserLib.zip", :type => "zip" }
spec.vendored_frameworks = "OSInAppBrowserLib.xcframework"
Expand Down
Binary file removed OSInAppBrowserLib.zip
Binary file not shown.
26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "OSInAppBrowserLib",
"version": "2.3.1",
"description": "The `OSInAppBrowserLib` is a library that provides a web browser view to load a web page within a Mobile Application.",
"author": "OutSystems Mobile Ecosystem",
"email": "rd.mobileecosystem.team@outsystems.com",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/OutSystems/OSInAppBrowserLib-iOS.git"
},
"private": true,
"scripts": {
"semantic-release": "semantic-release"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.0",
"@semantic-release/commit-analyzer": "^13.0.0",
"@semantic-release/exec": "^7.0.0",
"@semantic-release/npm": "^13.0.0",
"@semantic-release/git": "^10.0.0",
"@semantic-release/github": "^12.0.0",
"@semantic-release/release-notes-generator": "^14.0.0",
"semantic-release": "^25.0.0"
}
}
Loading
Loading