Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 2d784ab

Browse files
committed
Upgrade git-clone workflow step
Upgrade to node 5 Remove call to keytool and steps for copying the keystore Remove install of android sdk since it is included in the bitrise vm Remove params to gradlew since we are no longer signing in the compile step Remove copy and restore of build.gradle since we can use the unsigned version now Add bitrise sign-apk step Update copy step so it renames the apk to show it is now signed. Upgrade deploy-to-bitrise step version Delete no longer needed build.gradle.sign
1 parent 9d127c0 commit 2d784ab

2 files changed

Lines changed: 10 additions & 142 deletions

File tree

android/app/build.gradle.sign

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

bitrise/bitrise-android.yml

Lines changed: 10 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ workflows:
1212
title: Activate App SSH key
1313
inputs:
1414
- ssh_key_save_path: "$HOME/.ssh/steplib_ssh_step_id_rsa"
15-
- git-clone@3.1.0: {}
15+
- git-clone@3.1.1: {}
1616
- script@1.1.0:
1717
title: install node & npm
1818
inputs:
1919
- content: |-
2020
#!/bin/bash
21-
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
21+
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
2222
apt-get install -y nodejs
2323
- script@1.1.0:
2424
title: npm install -g npm3
@@ -53,7 +53,7 @@ workflows:
5353
inputs:
5454
- content: |-
5555
#!/bin/bash
56-
touch src/lib/config.js
56+
touch src/lib/config.js
5757
5858
echo "module.exports={ PARSE: {APP_ID: '$PARSE_APP_ID' ,REST_API_KEY: '$PARSE_REST_API_KEY', SESSION_TOKEN_KEY: 'SESSION_TOKEN_KEY'}}" >> src/lib/config.js
5959
- script@1.1.0:
@@ -63,57 +63,21 @@ workflows:
6363
#!/bin/bash
6464
6565
react-native bundle --entry-file ./index.android.js --platform android --bundle-output android/app/src/main/assets/index.android.bundle
66-
- script@1.1.0:
67-
title: keytool
68-
inputs:
69-
- content: |-
70-
#!/bin/bash
71-
72-
keytool -genkey -noprompt -alias $SNOWFLAKE_RELEASE_KEY_ALIAS -dname "CN=snowflake.bartonhammond.org, OU=bartonhammond.org, O=Unknown, L=Austin, ST=TX, C=US" -keystore $SNOWFLAKE_RELEASE_STORE_FILE -storepass $SNOWFLAKE_RELEASE_STORE_PASSWORD -keypass $SNOWFLAKE_RELEASE_KEY_PASSWORD
73-
- script@1.1.0:
74-
title: cp keystore
75-
inputs:
76-
- content: |-
77-
#!/bin/bash
78-
79-
cp ./$SNOWFLAKE_RELEASE_STORE_FILE android/app
80-
- script@1.1.0:
81-
title: Install Android SDK 23.0.1
82-
inputs:
83-
- content: |-
84-
#!/bin/bash
85-
86-
echo y | android update sdk --all --filter build-tools-23.0.1 --no-ui
87-
- script@1.1.0:
88-
title: rename build.gradle
89-
inputs:
90-
- content: |-
91-
#!/bin/bash
92-
93-
mv android/app/build.gradle android/app/build.gradle.nosign
94-
mv android/app/build.gradle.sign android/app/build.gradle
9566
- script@1.1.0:
9667
title: gradlew
9768
inputs:
98-
- content: "#!/bin/bash\n\ncd android \n\n./gradlew -PSNOWFLAKE_RELEASE_STORE_FILE=$SNOWFLAKE_RELEASE_STORE_FILE
99-
-PSNOWFLAKE_RELEASE_KEY_ALIAS=$SNOWFLAKE_RELEASE_KEY_ALIAS -PSNOWFLAKE_RELEASE_STORE_PASSWORD=$SNOWFLAKE_RELEASE_STORE_PASSWORD
100-
-PSNOWFLAKE_RELEASE_KEY_PASSWORD=$SNOWFLAKE_RELEASE_KEY_PASSWORD assembleRelease"
101-
opts:
69+
- content: "#!/bin/bash\n\ncd android \n\n./gradlew assembleRelease"
70+
opts:
10271
is_expand: true
103-
- script@1.1.0:
104-
title: restore build.gradle
72+
- sign-apk@0.9.4:
10573
inputs:
106-
- content: |-
107-
#!/bin/bash
108-
109-
mv android/app/build.gradle android/app/build.gradle.sign
110-
mv android/app/build.gradle.nosign android/app/build.gradle
74+
- apk_path: "/bitrise/src/android/app/build/outputs/apk/app-release-unsigned.apk"
11175
- script@1.1.0:
11276
title: cp apk
11377
inputs:
11478
- content: |-
11579
#!/bin/bash
116-
find . -name *.apk
11780
118-
cp ./android/app/build/outputs/apk/app-release.apk $BITRISE_DEPLOY_DIR
119-
- deploy-to-bitrise-io@1.2.0: {}
81+
cp $BITRISE_SIGNED_APK_PATH $BITRISE_DEPLOY_DIR/signed-app-release.apk
82+
- deploy-to-bitrise-io@1.2.2:
83+
is_always_run: false

0 commit comments

Comments
 (0)