@@ -12,13 +12,13 @@ workflows:
12
12
title : Activate App SSH key
13
13
inputs :
14
14
- ssh_key_save_path : " $HOME/.ssh/steplib_ssh_step_id_rsa"
15
-
15
+
16
16
17
17
title : install node & npm
18
18
inputs :
19
19
- content : |-
20
20
#!/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 -
22
22
apt-get install -y nodejs
23
23
24
24
title : npm install -g npm3
@@ -63,57 +63,21 @@ workflows:
63
63
#!/bin/bash
64
64
65
65
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
95
66
96
67
title : gradlew
97
68
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"
101
70
opts :
102
71
is_expand : true
103
-
104
- title : restore build.gradle
72
+
105
73
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"
111
75
112
76
title : cp apk
113
77
inputs :
114
78
- content : |-
115
79
#!/bin/bash
116
- find . -name *.apk
117
80
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