@@ -192,10 +192,22 @@ mobile-release-android:
192
192
193
193
# Deploy Solana saga dApp store
194
194
mobile-release-saga-dapp-store :
195
+ parameters :
196
+ bundle-id :
197
+ default : ' co.audius.app'
198
+ type : string
199
+ track :
200
+ default : ' alpha'
201
+ type : string
195
202
steps :
196
203
- checkout
197
204
- attach_workspace :
198
205
at : ./
206
+ - run :
207
+ name : Add Java to PATH
208
+ command : |
209
+ echo 'export PATH=$PATH:$JAVA_HOME/bin' >> ~/.bashrc
210
+ source ~/.bashrc
199
211
- run :
200
212
name : Install nvm
201
213
command : |
@@ -219,7 +231,13 @@ mobile-release-saga-dapp-store:
219
231
- run :
220
232
name : Recover key
221
233
command : |
234
+ cd packages/mobile/dapp-store
222
235
echo $SOLANA_DAPP_STORE_PRIVATE_KEY > app-keypair.json
236
+ - run :
237
+ name : Increment version code
238
+ command : |
239
+ cd packages/mobile/android
240
+ bundle exec fastlane incrementVersionCode package_name:<<parameters.bundle-id>> track:<<parameters.track>>
223
241
- run :
224
242
name : Build Android
225
243
command : |
@@ -228,22 +246,31 @@ mobile-release-saga-dapp-store:
228
246
- run :
229
247
name : Validate release
230
248
command : |
249
+ cd packages/mobile/dapp-store
231
250
nvm use
232
- npx dapp-store validate release -k app-keypair.json -b $ANDROID_HOME/build-tools/30 .0.3
251
+ npx dapp-store validate release -k app-keypair.json -b $ANDROID_HOME/build-tools/33 .0.0
233
252
- run :
234
253
name : Publish APK
235
254
command : |
255
+ cd packages/mobile/dapp-store
236
256
nvm use
237
- npx dapp-store create release -k app-keypair.json -b $ANDROID_HOME/build-tools/30 .0.3 -u https://audius-fe.rpcpool. com
257
+ npx dapp-store create release -k app-keypair.json -b $ANDROID_HOME/build-tools/33 .0.0 -u https://solana-mainnet.g.alchemy. com/v2/9j3Y1hc042MCH0_TqunwotlaFLHF6K4l
238
258
- run :
239
259
name : Issue update to dapp store
240
260
command : |
261
+ cd packages/mobile/dapp-store
241
262
nvm use
242
- npx dapp-store publish update -k app-keypair.json -u https://audius-fe.rpcpool. com --requestor-is-authorized --complies-with-solana-dapp-store-policies
263
+ npx dapp-store publish update -k app-keypair.json -u https://solana-mainnet.g.alchemy. com/v2/9j3Y1hc042MCH0_TqunwotlaFLHF6K4l --requestor-is-authorized --complies-with-solana-dapp-store-policies
243
264
- run :
244
265
name : Commit changes
245
266
command : |
246
- git checkout main -f
267
+ cd packages/mobile/dapp-store
268
+ git stash
269
+ git checkout main
247
270
git pull
248
- git commit -am 'Update dapp-store build artifacts'
271
+ git stash pop
272
+ git add .
273
+ git config --global user.email "[email protected] "
274
+ git config --global user.name "audius-infra"
275
+ git commit -m 'Update dapp-store build artifacts'
249
276
git push origin main
0 commit comments