Skip to content

Commit 1dcf094

Browse files
committed
Restructure project and update build workflows
Reorganized Android and iOS source directories, updated package and configuration files, and replaced legacy GitHub Actions workflows with new, more focused build and release workflows. Removed old configuration, template, and lock files, and migrated Android and iOS package code to new namespaces. Added new example app setup and updated build scripts for improved maintainability.
1 parent acc2583 commit 1dcf094

89 files changed

Lines changed: 4673 additions & 11444 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 0 additions & 15 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/actions/setup/action.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
version: 2
2+
enable-beta-ecosystems: true
3+
updates:
4+
- package-ecosystem: 'github-actions'
5+
directory: '/'
6+
schedule:
7+
interval: 'daily'
8+
labels:
9+
- 'dependencies'
10+
11+
- package-ecosystem: 'gradle'
12+
directories:
13+
- '/android/'
14+
- '/example/android/'
15+
schedule:
16+
interval: 'daily'
17+
labels:
18+
- 'nitro-core'
19+
- 'nitrogen'
20+
- 'dependencies'
21+
- 'kotlin'
22+
23+
- package-ecosystem: 'bundler'
24+
directory: '/example/'
25+
schedule:
26+
interval: 'daily'
27+
labels:
28+
- 'dependencies'
29+
- 'ruby'
30+
31+
- package-ecosystem: 'npm'
32+
directories:
33+
- '/example/'
34+
- '/'
35+
schedule:
36+
interval: 'daily'
37+
labels:
38+
- 'nitro-core'
39+
- 'dependencies'
40+
- 'typescript'
41+
- 'nitrogen'
42+
43+
groups:
44+
react-native-cli:
45+
patterns:
46+
- '@react-native-community/cli*'
47+
babel:
48+
patterns:
49+
- '@babel/*'
50+
react-native:
51+
patterns:
52+
- '@react-native/*'
53+
nitro:
54+
patterns:
55+
- 'nitrogen'
56+
- 'react-native-nitro-modules'
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Build Android
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- '.github/workflows/android-build.yml'
12+
- 'example/android/**'
13+
- 'nitrogen/generated/shared/**'
14+
- 'nitrogen/generated/android/**'
15+
- 'cpp/**'
16+
- 'android/**'
17+
- '**/bun.lock'
18+
- '**/react-native.config.js'
19+
- '**/nitro.json'
20+
pull_request:
21+
paths:
22+
- '.github/workflows/android-build.yml'
23+
- 'example/android/**'
24+
- '**/nitrogen/generated/shared/**'
25+
- '**/nitrogen/generated/android/**'
26+
- 'cpp/**'
27+
- 'android/**'
28+
- '**/bun.lock'
29+
- '**/react-native.config.js'
30+
- '**/nitro.json'
31+
workflow_dispatch:
32+
33+
concurrency:
34+
group: ${{ github.workflow }}-${{ github.ref }}
35+
cancel-in-progress: true
36+
37+
jobs:
38+
build:
39+
name: Build Android Example App (${{ matrix.arch }})
40+
runs-on: ubuntu-latest
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
arch: [new, old]
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: oven-sh/setup-bun@v2
48+
49+
- name: Install dependencies (bun)
50+
run: bun install
51+
52+
- name: Disable new architecture in gradle.properties
53+
if: matrix.arch == 'old'
54+
run: sed -i "s/newArchEnabled=true/newArchEnabled=false/g" example/android/gradle.properties
55+
56+
- name: Setup JDK 17
57+
uses: actions/setup-java@v5
58+
with:
59+
distribution: 'zulu'
60+
java-version: '17'
61+
cache: 'gradle'
62+
63+
- name: Cache Gradle
64+
uses: actions/cache@v4
65+
with:
66+
path: |
67+
~/.gradle/caches
68+
~/.gradle/wrapper
69+
key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/**/*.gradle*') }}
70+
restore-keys: |
71+
${{ runner.os }}-gradle-
72+
73+
- name: Run Gradle build
74+
working-directory: example/android
75+
run: ./gradlew assembleDebug --no-daemon --build-cache
76+
77+
- name: Stop Gradle daemon
78+
working-directory: example/android
79+
run: ./gradlew --stop

0 commit comments

Comments
 (0)