Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
0fe8f31
feat: replace with OMS React Native SDK wrapper
tolgahan-arikan May 13, 2026
34e8053
chore: update Swift SDK pod dependency
tolgahan-arikan May 13, 2026
dc2b57f
feat: expose session state
tolgahan-arikan May 13, 2026
5b0250a
chore: show session details in example
tolgahan-arikan May 13, 2026
68ffaf4
fix: prevent android example auto-scroll
tolgahan-arikan May 14, 2026
ab47b04
chore: organize sdk example workspace
tolgahan-arikan May 18, 2026
345ac97
feat: add trails actions example app
tolgahan-arikan May 18, 2026
abc61d4
ci: limit workflow token permissions
tolgahan-arikan May 18, 2026
6674cde
feat: align react native sdk with native auth APIs
tolgahan-arikan May 26, 2026
1c6e6ce
feat: update react native example apps
tolgahan-arikan May 26, 2026
5059049
ci: align workflows with master
tolgahan-arikan May 26, 2026
8e29167
fix: align react native sdk parity details
tolgahan-arikan May 26, 2026
35ca5a1
docs: add npm publishing steps
tolgahan-arikan May 26, 2026
9669989
chore: align package prerelease version
tolgahan-arikan May 26, 2026
326ea0f
docs: clarify npm publishing prerequisites
tolgahan-arikan May 26, 2026
b43a27e
docs: label alpha publishing steps
tolgahan-arikan May 26, 2026
016792a
docs: add consumer app requirements
tolgahan-arikan May 26, 2026
fd9ebcb
docs: simplify redirect auth requirement
tolgahan-arikan May 26, 2026
1fb268c
ci: update example bundler lockfiles
tolgahan-arikan May 26, 2026
1fa7027
ci: limit native builds to master
tolgahan-arikan May 26, 2026
574fd09
docs: clarify alpha publishing flow
tolgahan-arikan May 26, 2026
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
4 changes: 4 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ runs:
with:
node-version-file: .nvmrc

- name: Enable Corepack
run: corepack enable
shell: bash

- name: Restore dependencies
id: yarn-cache
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
Expand Down
123 changes: 102 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,23 @@ name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
merge_group:
types:
- checks_requested
- master
workflow_dispatch:

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

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup
uses: ./.github/actions/setup
Expand All @@ -31,42 +29,125 @@ jobs:
- name: Typecheck files
run: yarn typecheck

test:

build-library:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup
uses: ./.github/actions/setup

- name: Run unit tests
run: yarn test --maxWorkers=2 --coverage
- name: Build package
run: yarn prepare

build-library:
build-android:
runs-on: ubuntu-latest

env:
TURBO_CACHE_DIR: .turbo/android

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup
uses: ./.github/actions/setup

- name: Build package
run: yarn prepare
- name: Cache turborepo for Android
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ env.TURBO_CACHE_DIR }}
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-turborepo-android-

build-web:
runs-on: ubuntu-latest
- name: Check turborepo cache for Android
run: |
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android --filter=oms-client-react-native-sdk-example --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")

if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
echo "turbo_cache_hit=1" >> $GITHUB_ENV
fi

- name: Install JDK
if: env.turbo_cache_hit != '1'
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
distribution: 'zulu'
java-version: '17'

- name: Finalize Android SDK
if: env.turbo_cache_hit != '1'
run: |
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"


- name: Cache Gradle
if: env.turbo_cache_hit != '1'
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: |
~/.gradle/wrapper
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('examples/sdk-example/android/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: Build example for Android
env:
JAVA_OPTS: "-XX:MaxHeapSize=6g"
run: |
yarn turbo run build:android --filter=oms-client-react-native-sdk-example --cache-dir="${{ env.TURBO_CACHE_DIR }}"

build-ios:
runs-on: macos-latest

env:
XCODE_VERSION: 26
TURBO_CACHE_DIR: .turbo/ios
RCT_USE_RN_DEP: 1
RCT_USE_PREBUILT_RNCORE: 1

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup
uses: ./.github/actions/setup

- name: Build example for Web
- name: Cache turborepo for iOS
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ env.TURBO_CACHE_DIR }}
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-turborepo-ios-

- name: Check turborepo cache for iOS
run: |
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --filter=oms-client-react-native-sdk-example --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")

if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
echo "turbo_cache_hit=1" >> $GITHUB_ENV
fi

- name: Use appropriate Xcode version
if: env.turbo_cache_hit != '1'
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
with:
xcode-version: ${{ env.XCODE_VERSION }}

- name: Install cocoapods
if: env.turbo_cache_hit != '1'
run: |
cd examples/sdk-example
bundle install
bundle exec pod repo update --verbose
bundle exec pod install --project-directory=ios

- name: Build example for iOS
run: |
yarn example expo export --platform web
yarn turbo run build:ios --filter=oms-client-react-native-sdk-example --cache-dir="${{ env.TURBO_CACHE_DIR }}"
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
31 changes: 31 additions & 0 deletions .github/workflows/quick-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Quick Checks

on:
push:
branches-ignore:
- master
workflow_dispatch:

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

permissions:
contents: read

jobs:
lint-typecheck:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup
uses: ./.github/actions/setup

- name: Lint files
run: yarn lint

- name: Typecheck files
run: yarn typecheck
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ android.iml

# Cocoapods
#
example/ios/Pods
examples/*/ios/Pods

# Ruby
example/vendor/
examples/*/vendor/

# node.js
#
Expand Down Expand Up @@ -84,4 +84,3 @@ android/generated

# React Native Nitro Modules
nitrogen/
/flattened
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.19.0
v24.13.0
541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.1.cjs

This file was deleted.

942 changes: 942 additions & 0 deletions .yarn/releases/yarn-4.11.0.cjs

Large diffs are not rendered by default.

43 changes: 1 addition & 42 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,4 @@
nodeLinker: node-modules
nmHoistingLimits: workspaces

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.6.1.cjs

packageExtensions:
"@commitlint/load@*":
peerDependencies:
"@types/node": "*"
"typescript": "*"
"@commitlint/cli@*":
peerDependencies:
"@types/node": "*"
"typescript": "*"
"commitlint@*":
peerDependencies:
"@types/node": "*"
"typescript": "*"
"@react-native/eslint-config@*":
peerDependencies:
"typescript": "*"
"eslint-plugin-jest@*":
peerDependencies:
"typescript": "*"
"babel-plugin-transform-flow-enums@*":
peerDependencies:
"@babel/core": "*"
"babel-preset-expo@*":
peerDependencies:
"@babel/core": "*"
"expo-linking@*":
peerDependencies:
"expo": "*"
"expo@*":
peerDependencies:
"@babel/core": "*"
"react-native@*":
peerDependencies:
"@babel/core": "*"
yarnPath: .yarn/releases/yarn-4.11.0.cjs
Loading
Loading