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

Commit be9cf8f

Browse files
committed
Merge branch 'larubbio-bitrise-signing'
2 parents 9d127c0 + b34b1ee commit be9cf8f

File tree

2 files changed

+8
-140
lines changed

2 files changed

+8
-140
lines changed

android/app/build.gradle.sign

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

bitrise/bitrise-android.yml

Lines changed: 8 additions & 44 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-
15+
1616
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
2424
title: npm install -g npm3
@@ -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-
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-
74-
title: cp keystore
75-
inputs:
76-
- content: |-
77-
#!/bin/bash
78-
79-
cp ./$SNOWFLAKE_RELEASE_STORE_FILE android/app
80-
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-
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
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"
69+
- content: "#!/bin/bash\n\ncd android \n./gradlew assembleRelease"
10170
opts:
10271
is_expand: true
103-
104-
title: restore build.gradle
72+
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
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-
81+
cp $BITRISE_SIGNED_APK_PATH $BITRISE_DEPLOY_DIR/signed-app-release.apk
82+
83+
is_always_run: false

0 commit comments

Comments
 (0)