rnbuilder 0.6.59 โ†’ 0.6.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,7 +20,7 @@ $ npm install -g rnbuilder
20
20
  $ rnbuilder COMMAND
21
21
  running command...
22
22
  $ rnbuilder (-v|--version|version)
23
- rnbuilder/0.6.59 darwin-arm64 node-v24.9.0
23
+ rnbuilder/0.6.61 darwin-arm64 node-v24.9.0
24
24
  $ rnbuilder --help [COMMAND]
25
25
  USAGE
26
26
  $ rnbuilder COMMAND
@@ -73,7 +73,7 @@ EXAMPLE
73
73
  hello world from ./src/build.ts!
74
74
  ```
75
75
 
76
- _See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.59/src/commands/build.ts)_
76
+ _See code: [src/commands/build.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.61/src/commands/build.ts)_
77
77
 
78
78
  ## `rnbuilder check-version [MATCH-CHECK]`
79
79
 
@@ -92,7 +92,7 @@ EXAMPLE
92
92
  Nuke certificates ./src/match-check.ts!
93
93
  ```
94
94
 
95
- _See code: [src/commands/check-version.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.59/src/commands/check-version.ts)_
95
+ _See code: [src/commands/check-version.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.61/src/commands/check-version.ts)_
96
96
 
97
97
  ## `rnbuilder codepush [BUILD]`
98
98
 
@@ -111,7 +111,7 @@ EXAMPLE
111
111
  Push changes to existing apps ./src/firebase-sync-udids.ts!
112
112
  ```
113
113
 
114
- _See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.59/src/commands/codepush.ts)_
114
+ _See code: [src/commands/codepush.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.61/src/commands/codepush.ts)_
115
115
 
116
116
  ## `rnbuilder google-key [MATCH-CHECK]`
117
117
 
@@ -130,7 +130,7 @@ EXAMPLE
130
130
  Nuke certificates ./src/match-check.ts!
131
131
  ```
132
132
 
133
- _See code: [src/commands/google-key.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.59/src/commands/google-key.ts)_
133
+ _See code: [src/commands/google-key.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.61/src/commands/google-key.ts)_
134
134
 
135
135
  ## `rnbuilder help [COMMAND]`
136
136
 
@@ -162,7 +162,7 @@ EXAMPLE
162
162
  initialize environment for first run from ./src/initialize.ts!
163
163
  ```
164
164
 
165
- _See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.59/src/commands/initialize.ts)_
165
+ _See code: [src/commands/initialize.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.61/src/commands/initialize.ts)_
166
166
 
167
167
  ## `rnbuilder match-check [MATCH-CHECK]`
168
168
 
@@ -181,7 +181,7 @@ EXAMPLE
181
181
  Nuke certificates ./src/match-check.ts!
182
182
  ```
183
183
 
184
- _See code: [src/commands/match-check.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.59/src/commands/match-check.ts)_
184
+ _See code: [src/commands/match-check.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.61/src/commands/match-check.ts)_
185
185
 
186
186
  ## `rnbuilder match-nuke [BUILD]`
187
187
 
@@ -200,7 +200,7 @@ EXAMPLE
200
200
  Nuke certificates ./src/match-nuke.ts!
201
201
  ```
202
202
 
203
- _See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.59/src/commands/match-nuke.ts)_
203
+ _See code: [src/commands/match-nuke.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.61/src/commands/match-nuke.ts)_
204
204
 
205
205
  ## `rnbuilder onesignal [BUILD]`
206
206
 
@@ -222,7 +222,7 @@ EXAMPLE
222
222
  Create and upload push certificate to One Signal from ./src/commands/onesignal.ts!
223
223
  ```
224
224
 
225
- _See code: [src/commands/onesignal.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.59/src/commands/onesignal.ts)_
225
+ _See code: [src/commands/onesignal.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.61/src/commands/onesignal.ts)_
226
226
 
227
227
  ## `rnbuilder setup [SETUP]`
228
228
 
@@ -240,7 +240,7 @@ EXAMPLE
240
240
  hello world from ./src/setup.ts!
241
241
  ```
242
242
 
243
- _See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.59/src/commands/setup.ts)_
243
+ _See code: [src/commands/setup.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.61/src/commands/setup.ts)_
244
244
 
245
245
  ## `rnbuilder submit-review [SUBMIT-REVIEW]`
246
246
 
@@ -259,7 +259,7 @@ EXAMPLE
259
259
  Push changes to existing apps ./src/firebase-sync-udids.ts!
260
260
  ```
261
261
 
262
- _See code: [src/commands/submit-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.59/src/commands/submit-review.ts)_
262
+ _See code: [src/commands/submit-review.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.61/src/commands/submit-review.ts)_
263
263
 
264
264
  ## `rnbuilder sync-udids [BUILD]`
265
265
 
@@ -278,5 +278,5 @@ EXAMPLE
278
278
  Sync device UDIDs from firebase from ./src/firebase-sync-udids.ts!
279
279
  ```
280
280
 
281
- _See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.59/src/commands/sync-udids.ts)_
281
+ _See code: [src/commands/sync-udids.ts](https://github.com/r0b0t3d/rnbuilder/blob/v0.6.61/src/commands/sync-udids.ts)_
282
282
  <!-- commandsstop -->
@@ -1 +1 @@
1
- {"version":"0.6.59","commands":{"build":{"id":"build","description":"Build react native apps","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder build\nhello world from ./src/build.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Set client that you want to build app"},"target":{"name":"target","type":"option","char":"t","description":"Set the build target: android, ios or both","options":["android","ios","android,ios"]},"env":{"name":"env","type":"option","char":"e","description":"Set the environment: prod, staging, dev"},"branch":{"name":"branch","type":"option","char":"b","description":"Set the source branch used to build the app"},"version":{"name":"version","type":"option","char":"v","description":"Set the version number for this build"},"installr":{"name":"installr","type":"option","char":"i","description":"If enabled, the build will be uploaded to installR"},"distribute":{"name":"distribute","type":"option","char":"d","description":"Specify where to distribute app"},"firebase":{"name":"firebase","type":"boolean","char":"f","description":"If enabled, the build will be uploaded to firebase","allowNo":false},"testersIos":{"name":"testersIos","type":"option","char":"t","description":"Tester ids for iOS distribution"},"testersAndroid":{"name":"testersAndroid","type":"option","char":"u","description":"Tester ids for Android distribution"},"ignore_git_reset":{"name":"ignore_git_reset","type":"boolean","char":"g","description":"Ignore git reset when building","allowNo":false},"cleanup":{"name":"cleanup","type":"boolean","char":"s","description":"Do cleanup when building","allowNo":false},"groupsIos":{"name":"groupsIos","type":"option","description":"Groups ids for iOS distribution"},"groupsAndroid":{"name":"groupsAndroid","type":"option","description":"Groups ids for Android distribution"},"skipCheckVersion":{"name":"skipCheckVersion","type":"boolean","description":"Skip checking current version on stores","allowNo":false}},"args":[{"name":"build"}]},"check-version":{"id":"check-version","description":"Check live versions","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder check-version\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"codepush":{"id":"codepush","description":"Push changes to existing apps","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder codepush\n Push changes to existing apps ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to push update"}},"args":[{"name":"build"}]},"google-key":{"id":"google-key","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-check\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"initialize":{"id":"initialize","description":"Initialize the environment for first run","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder initialize\ninitialize environment for first run from ./src/initialize.ts!\n"],"flags":{},"args":[]},"match-check":{"id":"match-check","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-check\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"match-nuke":{"id":"match-nuke","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-nuke\n Nuke certificates ./src/match-nuke.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"build"}]},"onesignal":{"id":"onesignal","description":"Create and upload push cerfiticate to One Signal","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder onesignal\n Create and upload push certificate to One Signal from ./src/commands/onesignal.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"},"auth_token":{"name":"auth_token","type":"option","description":"Auth token for OneSignal"},"android_token":{"name":"android_token","type":"option"},"android_gcm_sender_id":{"name":"android_gcm_sender_id","type":"option"}},"args":[{"name":"build"}]},"setup":{"id":"setup","description":"Setup new client","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder build\nhello world from ./src/setup.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"setup"}]},"submit-review":{"id":"submit-review","description":"Submit ios for review","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder submit-review\n Push changes to existing apps ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to push update"}},"args":[{"name":"submit-review"}]},"sync-udids":{"id":"sync-udids","description":"Sync device UDIDs from firebase","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder sync-udids\n Sync device UDIDs from firebase from ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"build"}]}}}
1
+ {"version":"0.6.61","commands":{"build":{"id":"build","description":"Build react native apps","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder build\nhello world from ./src/build.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Set client that you want to build app"},"target":{"name":"target","type":"option","char":"t","description":"Set the build target: android, ios or both","options":["android","ios","android,ios"]},"env":{"name":"env","type":"option","char":"e","description":"Set the environment: prod, staging, dev"},"branch":{"name":"branch","type":"option","char":"b","description":"Set the source branch used to build the app"},"version":{"name":"version","type":"option","char":"v","description":"Set the version number for this build"},"installr":{"name":"installr","type":"option","char":"i","description":"If enabled, the build will be uploaded to installR"},"distribute":{"name":"distribute","type":"option","char":"d","description":"Specify where to distribute app"},"firebase":{"name":"firebase","type":"boolean","char":"f","description":"If enabled, the build will be uploaded to firebase","allowNo":false},"testersIos":{"name":"testersIos","type":"option","char":"t","description":"Tester ids for iOS distribution"},"testersAndroid":{"name":"testersAndroid","type":"option","char":"u","description":"Tester ids for Android distribution"},"ignore_git_reset":{"name":"ignore_git_reset","type":"boolean","char":"g","description":"Ignore git reset when building","allowNo":false},"cleanup":{"name":"cleanup","type":"boolean","char":"s","description":"Do cleanup when building","allowNo":false},"groupsIos":{"name":"groupsIos","type":"option","description":"Groups ids for iOS distribution"},"groupsAndroid":{"name":"groupsAndroid","type":"option","description":"Groups ids for Android distribution"},"skipCheckVersion":{"name":"skipCheckVersion","type":"boolean","description":"Skip checking current version on stores","allowNo":false}},"args":[{"name":"build"}]},"check-version":{"id":"check-version","description":"Check live versions","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder check-version\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"codepush":{"id":"codepush","description":"Push changes to existing apps","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder codepush\n Push changes to existing apps ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to push update"}},"args":[{"name":"build"}]},"google-key":{"id":"google-key","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-check\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"initialize":{"id":"initialize","description":"Initialize the environment for first run","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder initialize\ninitialize environment for first run from ./src/initialize.ts!\n"],"flags":{},"args":[]},"match-check":{"id":"match-check","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-check\n Nuke certificates ./src/match-check.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"match-check"}]},"match-nuke":{"id":"match-nuke","description":"Nuke certificates","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder match-nuke\n Nuke certificates ./src/match-nuke.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"build"}]},"onesignal":{"id":"onesignal","description":"Create and upload push cerfiticate to One Signal","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder onesignal\n Create and upload push certificate to One Signal from ./src/commands/onesignal.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"},"auth_token":{"name":"auth_token","type":"option","description":"Auth token for OneSignal"},"android_token":{"name":"android_token","type":"option"},"android_gcm_sender_id":{"name":"android_gcm_sender_id","type":"option"}},"args":[{"name":"build"}]},"setup":{"id":"setup","description":"Setup new client","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder build\nhello world from ./src/setup.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"setup"}]},"submit-review":{"id":"submit-review","description":"Submit ios for review","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder submit-review\n Push changes to existing apps ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to push update"}},"args":[{"name":"submit-review"}]},"sync-udids":{"id":"sync-udids","description":"Sync device UDIDs from firebase","pluginName":"rnbuilder","pluginType":"core","aliases":[],"examples":["$ rnbuilder sync-udids\n Sync device UDIDs from firebase from ./src/firebase-sync-udids.ts!\n"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"client":{"name":"client","type":"option","char":"c","description":"Select client that you want to sync udids"}},"args":[{"name":"build"}]}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rnbuilder",
3
3
  "description": "React Native builder tool",
4
- "version": "0.6.59",
4
+ "version": "0.6.61",
5
5
  "author": "Tuan Luong @r0b0t3d",
6
6
  "bin": "./bin/run",
7
7
  "bugs": "https://github.com/r0b0t3d/rnbuilder/issues",
@@ -41,6 +41,7 @@
41
41
  "files": [
42
42
  "/bin",
43
43
  "/lib",
44
+ "/scripts",
44
45
  "/npm-shrinkwrap.json",
45
46
  "/oclif.manifest.json"
46
47
  ],
@@ -0,0 +1,71 @@
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ # Detect architecture
6
+ ARCH=$(uname -m)
7
+ echo "Detected architecture: $ARCH"
8
+
9
+ # Detect shell
10
+ CURRENT_SHELL=$(basename "$SHELL")
11
+ echo "Detected shell: $CURRENT_SHELL"
12
+
13
+ # Install Homebrew if needed
14
+ if ! command -v brew >/dev/null; then
15
+ echo "๐Ÿงช Installing Homebrew..."
16
+ NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
17
+ fi
18
+
19
+ # Add Homebrew to path
20
+ if [[ "$ARCH" == "arm64" ]]; then
21
+ eval "$(/opt/homebrew/bin/brew shellenv)"
22
+ else
23
+ eval "$(/usr/local/bin/brew shellenv)"
24
+ fi
25
+
26
+ # Install asdf via Homebrew
27
+ if ! command -v asdf >/dev/null; then
28
+ echo "๐Ÿ“ฆ Installing asdf..."
29
+ brew install asdf
30
+ fi
31
+
32
+ # Set appropriate shell rc file
33
+ if [[ "$CURRENT_SHELL" == "zsh" ]]; then
34
+ SHELL_RC="$HOME/.zshrc"
35
+ echo -e "\n๐Ÿ”ง Updating $SHELL_RC..."
36
+
37
+ {
38
+ echo ''
39
+ echo '# ๐Ÿ‘‰ asdf setup for zsh'
40
+ echo 'export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"'
41
+ echo 'fpath=(${ASDF_DATA_DIR:-$HOME/.asdf}/completions $fpath)'
42
+ echo 'autoload -Uz compinit && compinit'
43
+ } >> "$SHELL_RC"
44
+
45
+ mkdir -p "${ASDF_DATA_DIR:-$HOME/.asdf}/completions"
46
+ asdf completion zsh > "${ASDF_DATA_DIR:-$HOME/.asdf}/completions/_asdf"
47
+ elif [[ "$CURRENT_SHELL" == "bash" ]]; then
48
+ SHELL_RC="$HOME/.bashrc"
49
+ BASH_PROFILE="$HOME/.bash_profile"
50
+ echo -e "\n๐Ÿ”ง Updating $BASH_PROFILE and $SHELL_RC..."
51
+
52
+ {
53
+ echo ''
54
+ echo '# ๐Ÿ‘‰ asdf setup for bash'
55
+ echo 'export ASDF_DATA_DIR="$HOME/.asdf"'
56
+ echo 'export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"'
57
+ } >> "$BASH_PROFILE"
58
+
59
+ {
60
+ echo ''
61
+ echo '# ๐Ÿ‘‰ asdf bash completions'
62
+ echo '. <(asdf completion bash)'
63
+ } >> "$SHELL_RC"
64
+
65
+ else
66
+ echo "โŒ Unsupported shell: $CURRENT_SHELL"
67
+ exit 1
68
+ fi
69
+
70
+ echo -e "\n๐Ÿšจ Please run 'source $RC_FILE' or restart your terminal to apply changes to your shell environment."
71
+ echo -e "\n๐Ÿšจ Please run 'curl -fsSL https://gist.githubusercontent.com/r0b0t3d/92d9da44fe22190135c71572858a5a69/raw/2f689a89de21c7f09d1a8346a8ba37bf9e9a6bee/setup_plugins.sh | zsh' to install plugins"
@@ -0,0 +1,42 @@
1
+ #!/bin/bash
2
+
3
+ # Default versions
4
+ DEFAULT_RUBY="3.2.2"
5
+ DEFAULT_NODE="20.11.1"
6
+
7
+ # Use args or defaults
8
+ RUBY_VERSION="${1:-$DEFAULT_RUBY}"
9
+ NODE_VERSION="${2:-$DEFAULT_NODE}"
10
+
11
+ # Add plugins
12
+ echo "๐Ÿ”Œ Adding asdf plugins..."
13
+ asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
14
+ asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
15
+ asdf plugin add yarn
16
+
17
+ # Install Ruby
18
+ echo "๐Ÿ’Ž Installing Ruby $RUBY_VERSION..."
19
+ asdf install ruby "$RUBY_VERSION"
20
+ asdf set -u ruby "$RUBY_VERSION"
21
+
22
+ # Install Node.js
23
+ echo "๐ŸŸฉ Installing Node.js $NODE_VERSION..."
24
+ asdf install nodejs "$NODE_VERSION"
25
+ asdf set -u nodejs "$NODE_VERSION"
26
+
27
+ # Install Yarn
28
+ echo "๐ŸŸฉ Installing Yarn..."
29
+ asdf install yarn latest
30
+ asdf set -u yarn latest
31
+
32
+ # Install RubyGems tools
33
+ echo "๐Ÿ“ฆ Installing bundler and fastlane..."
34
+ gem install bundler
35
+ gem install fastlane
36
+
37
+ # Done
38
+ echo "โœ… Setup complete!"
39
+ ruby -v
40
+ node -v
41
+ yarn -v
42
+ fastlane -v