Skip to content

Commit 72f9a25

Browse files
RezaulRezaul
authored andcommitted
fix: resolve iOS issues
1 parent 2423cfd commit 72f9a25

12 files changed

Lines changed: 2994 additions & 56 deletions

File tree

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,66 @@ jobs:
152152
- name: Build example for iOS
153153
run: |
154154
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
155+
156+
release:
157+
name: 🚀 Release & Publish to NPM
158+
runs-on: ubuntu-latest
159+
needs: [lint, build-library, build-android, build-ios]
160+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
161+
162+
permissions:
163+
contents: write
164+
packages: write
165+
166+
steps:
167+
- name: ⬇️ Checkout Code
168+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
169+
with:
170+
fetch-depth: 0
171+
172+
- name: 🟨 Setup Node.js
173+
uses: actions/setup-node@v4
174+
with:
175+
node-version: '18'
176+
registry-url: 'https://registry.npmjs.org'
177+
178+
- name: 📦 Install Dependencies
179+
run: yarn install --frozen-lockfile
180+
181+
- name: 🛠️ Build Project
182+
run: yarn prepare
183+
184+
- name: 🔖 Read Version from package.json
185+
id: version
186+
run: |
187+
echo "VERSION=v$(node -p "require('./package.json').version")" >> $GITHUB_ENV
188+
echo "Version: $VERSION"
189+
190+
- name: 🏷️ Create Git Tag & Push
191+
env:
192+
VERSION: ${{ env.VERSION }}
193+
run: |
194+
git config user.name "github-actions[bot]"
195+
git config user.email "github-actions[bot]@users.noreply.github.com"
196+
git tag -f $VERSION
197+
git push origin $VERSION --force
198+
199+
- name: 📝 Get Full Last Commit Message
200+
id: release_notes
201+
run: |
202+
RELEASE_NOTES="$(git log -1 --pretty=format:%B)"
203+
printf "RELEASE_NOTES<<EOF\n%s\nEOF\n" "$RELEASE_NOTES" >> $GITHUB_ENV
204+
205+
- name: 📢 Create GitHub Release
206+
uses: softprops/action-gh-release@v2
207+
with:
208+
tag_name: ${{ env.VERSION }}
209+
name: ${{ env.VERSION }}
210+
body: ${{ env.RELEASE_NOTES }}
211+
env:
212+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
213+
214+
- name: 🚚 Publish to NPM
215+
run: npm publish --access public
216+
env:
217+
NODE_AUTH_TOKEN: ${{ secrets.USB_SERIAL }}

UsbSerial.podspec

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

example/Gemfile.lock

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.9)
5+
activesupport (6.1.7.10)
6+
concurrent-ruby (~> 1.0, >= 1.0.2)
7+
i18n (>= 1.6, < 2)
8+
minitest (>= 5.1)
9+
tzinfo (~> 2.0)
10+
zeitwerk (~> 2.3)
11+
addressable (2.8.9)
12+
public_suffix (>= 2.0.2, < 8.0)
13+
algoliasearch (1.27.5)
14+
httpclient (~> 2.8, >= 2.8.3)
15+
json (>= 1.5.1)
16+
atomos (0.1.3)
17+
benchmark (0.5.0)
18+
bigdecimal (4.0.1)
19+
claide (1.1.0)
20+
cocoapods (1.15.2)
21+
addressable (~> 2.8)
22+
claide (>= 1.0.2, < 2.0)
23+
cocoapods-core (= 1.15.2)
24+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
25+
cocoapods-downloader (>= 2.1, < 3.0)
26+
cocoapods-plugins (>= 1.0.0, < 2.0)
27+
cocoapods-search (>= 1.0.0, < 2.0)
28+
cocoapods-trunk (>= 1.6.0, < 2.0)
29+
cocoapods-try (>= 1.1.0, < 2.0)
30+
colored2 (~> 3.1)
31+
escape (~> 0.0.4)
32+
fourflusher (>= 2.3.0, < 3.0)
33+
gh_inspector (~> 1.0)
34+
molinillo (~> 0.8.0)
35+
nap (~> 1.0)
36+
ruby-macho (>= 2.3.0, < 3.0)
37+
xcodeproj (>= 1.23.0, < 2.0)
38+
cocoapods-core (1.15.2)
39+
activesupport (>= 5.0, < 8)
40+
addressable (~> 2.8)
41+
algoliasearch (~> 1.0)
42+
concurrent-ruby (~> 1.1)
43+
fuzzy_match (~> 2.0.4)
44+
nap (~> 1.0)
45+
netrc (~> 0.11)
46+
public_suffix (~> 4.0)
47+
typhoeus (~> 1.0)
48+
cocoapods-deintegrate (1.0.5)
49+
cocoapods-downloader (2.1)
50+
cocoapods-plugins (1.0.0)
51+
nap
52+
cocoapods-search (1.0.1)
53+
cocoapods-trunk (1.6.0)
54+
nap (>= 0.8, < 2.0)
55+
netrc (~> 0.11)
56+
cocoapods-try (1.2.0)
57+
colored2 (3.1.2)
58+
concurrent-ruby (1.3.3)
59+
escape (0.0.4)
60+
ethon (0.15.0)
61+
ffi (>= 1.15.0)
62+
ffi (1.17.3)
63+
fourflusher (2.3.1)
64+
fuzzy_match (2.0.4)
65+
gh_inspector (1.1.3)
66+
httpclient (2.9.0)
67+
mutex_m
68+
i18n (1.14.8)
69+
concurrent-ruby (~> 1.0)
70+
json (2.7.6)
71+
logger (1.7.0)
72+
minitest (5.25.4)
73+
molinillo (0.8.0)
74+
mutex_m (0.3.0)
75+
nanaimo (0.3.0)
76+
nap (1.1.0)
77+
netrc (0.11.0)
78+
public_suffix (4.0.7)
79+
rexml (3.4.4)
80+
ruby-macho (2.5.1)
81+
typhoeus (1.5.0)
82+
ethon (>= 0.9.0, < 0.16.0)
83+
tzinfo (2.0.6)
84+
concurrent-ruby (~> 1.0)
85+
xcodeproj (1.25.1)
86+
CFPropertyList (>= 2.3.3, < 4.0)
87+
atomos (~> 0.1.3)
88+
claide (>= 1.0.2, < 2.0)
89+
colored2 (~> 3.1)
90+
nanaimo (~> 0.3.0)
91+
rexml (>= 3.3.6, < 4.0)
92+
zeitwerk (2.6.18)
93+
94+
PLATFORMS
95+
ruby
96+
97+
DEPENDENCIES
98+
activesupport (>= 6.1.7.5, != 7.1.0)
99+
benchmark
100+
bigdecimal
101+
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
102+
concurrent-ruby (< 1.3.4)
103+
logger
104+
mutex_m
105+
xcodeproj (< 1.26.0)
106+
107+
RUBY VERSION
108+
ruby 2.6.10p210
109+
110+
BUNDLED WITH
111+
1.17.2

0 commit comments

Comments
 (0)