@@ -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
@@ -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\n cd 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\n cd android \n ./gradlew assembleRelease"
10170 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