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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @atomicfi/sdk
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
updates:
- package-ecosystem: 'swift'
directory: '/'
schedule:
interval: 'daily'
allow:
- dependency-name: 'github.com/atomicfi/atomic-transact-ios'

- package-ecosystem: 'gradle'
directory: '/android'
schedule:
interval: 'daily'
allow:
- dependency-name: 'financial.atomic:transact'

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
groups:
github-actions:
patterns:
- '*'
81 changes: 81 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Build

on:
pull_request:
branches:
- master
types: [opened, ready_for_review, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-ios-spm:
name: Build iOS (SPM)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"

- name: Enable Swift Package Manager
run: flutter config --enable-swift-package-manager

- name: Install dependencies
working-directory: ./example
run: flutter pub get

- name: Build iOS
working-directory: ./example
run: flutter build ios --no-codesign

build-ios-cocoapods:
name: Build iOS (CocoaPods)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"

- name: Disable Swift Package Manager
run: flutter config --no-enable-swift-package-manager

- name: Install dependencies
working-directory: ./example
run: flutter pub get

- name: Build iOS
working-directory: ./example
run: flutter build ios --no-codesign

build-android:
name: Build Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"

- name: Install dependencies
working-directory: ./example
run: flutter pub get

- name: Build Android
working-directory: ./example
run: flutter build apk --debug
42 changes: 42 additions & 0 deletions .github/workflows/sync-ios-frameworks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Sync iOS Frameworks

on:
pull_request:
branches: [master]
paths:
- "ios/atomic_transact_flutter/Package.swift"

permissions:
contents: write

jobs:
sync-frameworks:
runs-on: ubuntu-latest

steps:
- name: Checkout PR branch
uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Download iOS SDK frameworks
run: ./scripts/update-ios-sdk-frameworks.sh

- name: Check for changes
id: changes
run: |
if git diff --quiet && git diff --cached --quiet; then
echo "has_changes=false" >> "$GITHUB_OUTPUT"
else
echo "has_changes=true" >> "$GITHUB_OUTPUT"
fi

- name: Commit updated frameworks
if: steps.changes.outputs.has_changes == 'true'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add ios/frameworks/
git commit -m "chore: sync vendored iOS frameworks"
git push
93 changes: 0 additions & 93 deletions .github/workflows/update_sdks.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .semgrepignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# vendored iOS frameworks
ios/frameworks/
16 changes: 5 additions & 11 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
*.iml
Expand All @@ -18,21 +21,17 @@
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
.vscode/
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart
/coverage/

# Symbolication related
app.*.symbols
Expand All @@ -44,8 +43,3 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
/android/app/.cxx

# Flutter Version Manager
.fvm/
.fvmrc
12 changes: 6 additions & 6 deletions example/.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: "c519ee916eaeb88923e67befb89c0f1dabfa83e6"
revision: "db50e20168db8fee486b9abf32fc912de3bc5b6a"
channel: "stable"

project_type: app
Expand All @@ -13,11 +13,11 @@ project_type: app
migration:
platforms:
- platform: root
create_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
base_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
- platform: android
create_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
base_revision: c519ee916eaeb88923e67befb89c0f1dabfa83e6
create_revision: db50e20168db8fee486b9abf32fc912de3bc5b6a
base_revision: db50e20168db8fee486b9abf32fc912de3bc5b6a
- platform: ios
create_revision: db50e20168db8fee486b9abf32fc912de3bc5b6a
base_revision: db50e20168db8fee486b9abf32fc912de3bc5b6a

# User provided section

Expand Down
Loading
Loading