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 @@ -12,11 +12,6 @@
- [ ] Refactor (cosmetic changes)
- [ ] Breaking change (change that would cause existing functionality to not work as expected)

## Platforms affected
- [ ] Android
- [ ] iOS
- [ ] JavaScript

## Tests
<!--- Describe how you tested your changes in detail -->
<!--- Include details of your test environment if relevant -->
Expand All @@ -27,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 code style of this project
- [ ] CHANGELOG.md file is correctly updated
- [ ] Changes require an update to the documentation
- [ ] Documentation has been updated accordingly
7 changes: 5 additions & 2 deletions .github/workflows/github_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
test:
name: Unit-Tests
runs-on: macos-15
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -22,7 +22,7 @@ jobs:
run: brew link --overwrite swiftlint || brew install swiftlint

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

- name: Bundle Install
run: bundle install
Expand All @@ -39,8 +39,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 @@ -93,3 +93,7 @@ iOSInjectionProject/
scripts/build/
build/
.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} \"OSBarcodeLib.xcodeproj/project.pbxproj\" && bash ./scripts/update_readme_version.sh ${nextRelease.version} \"OSBarcodeLib\" \"README.md\" && bash ./scripts/build_framework.sh \"OSBarcodeLib\" \"LICENSE\""
}
],
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"OSBarcodeLib.xcodeproj/project.pbxproj",
"OSBarcodeLib.podspec",
"package.json",
"README.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "OSBarcodeLib.zip",
"label": "OSBarcodeLib XCFramework"
}
],
"successComment": false,
"failComment": false,
"releasedLabels": false
}
],
[
"@semantic-release/exec",
{
"publishCmd": "bash ./scripts/publish_cocoapods.sh ${nextRelease.version} \"OSBarcodeLib\""
}
]
]
}
12 changes: 0 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +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).

## [Unreleased]

### Fix

- Bundle missing resources into the Swift Package [RMET-4952](https://outsystemsrd.atlassian.net/browse/RMET-4952).

## 2.1.0

### Features
Expand Down
15 changes: 9 additions & 6 deletions OSBarcodeLib.podspec
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |spec|
spec.name = "OSBarcodeLib"
spec.version = "2.1.0"
spec.name = package['name']
spec.version = package['version']

spec.summary = "The OSBarcodeLib is a library built using Swift that offers you a barcode scanner for your iOS application."
spec.summary = package['description']

spec.homepage = "https://github.com/OutSystems/OSBarcodeLib-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/OSBarcodeLib-iOS/releases/download/#{spec.version}/OSBarcodeLib.zip", :type => "zip" }
spec.vendored_frameworks = "OSBarcodeLib.xcframework"

spec.ios.deployment_target = '13.0'
spec.swift_versions = ['5.0', '5.1', '5.2', '5.3', '5.4', '5.5', '5.6', '5.7', '5.8', '5.9']
end
end
Binary file removed OSBarcodeLib.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": "OSBarcodeLib",
"version": "2.1.0",
"description": "The OSBarcodeLib is a library built using Swift that offers you a barcode scanner for your iOS application.",
"author": "OutSystems Mobile Ecosystem",
"email": "rd.mobileecosystem.team@outsystems.com",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/OutSystems/OSBarcodeLib-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