Skip to content

Commit 1f1e41c

Browse files
committed
Initial commit
0 parents  commit 1f1e41c

File tree

341 files changed

+24785
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

341 files changed

+24785
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
name: Android Internal Build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
Internal_App_Version_Build:
8+
runs-on: ubuntu-latest
9+
env:
10+
KEYSIGNPASSWORD: ${{ secrets.KEYSIGNPASSWORD }}
11+
KEYSIGNALIAS: ${{ secrets.KEYSIGNALIAS }}
12+
KEYSIGNALIASPASSWORD: ${{ secrets.KEYSIGNALIASPASSWORD }}
13+
debug_url_callnow: ${{ secrets.DEBUG_URL_CALLNOW }}
14+
url_callnow: ${{ secrets.URL_CALLNOW }}
15+
debug_url_getprofile: ${{ secrets.DEBUG_URL_GETPROFILE }}
16+
url_getprofile: ${{ secrets.URL_GETPROFILE }}
17+
debug_url_ping: ${{ secrets.DEBUG_URL_PING }}
18+
url_ping: ${{ secrets.URL_PING }}
19+
url_synccontact: ${{ secrets.URL_CONTACTSYNC }}
20+
debug_url_synccontact: ${{ secrets.DEBUG_CONTACTSYNC_URL }}
21+
admob_app_id: ${{ secrets.ADMOB_APP_ID }}
22+
admob_ad_int_id: ${{ secrets.ADMOB_AD_INT_ID }}
23+
admob_ad_banner_id1: ${{ secrets.ADMOB_AD_BANNER_ID1 }}
24+
admob_native_ad1: ${{ secrets.AD_NATIVE1 }}
25+
debug_apprtc_url: ${{ secrets.DEBUG_APPRTC_URL }}
26+
apprtc_url: ${{ secrets.APPRTC_URL }}
27+
msAppCenterKey: ${{ secrets.MS_APP_CENTER_KEY }}
28+
debug_twilio_config_url: ${{ secrets.DEBUG_TWILIO_CONFIG_URL }}
29+
twilio_config_url: ${{ secrets.TWILIO_CONFIG_URL }}
30+
31+
steps:
32+
- uses: actions/checkout@v2
33+
- name: set up JDK 16
34+
uses: actions/setup-java@v2
35+
with:
36+
java-version: "16"
37+
distribution: "temurin"
38+
cache: gradle
39+
check-latest: true
40+
41+
42+
- name: getting google-services.json (1)
43+
id: GOOGLE_SERVICES_JSON_APP_FOLDER
44+
uses: timheuer/base64-to-file@v1.1
45+
with:
46+
fileName: "google-services.json"
47+
fileDir: "./app/"
48+
encodedString: ${{ secrets.GOOGLE_SERVICES_JSON_APP_FOLDER }}
49+
50+
- name: getting google-services.json (2)
51+
id: GOOGLE_SERVICES_JSON_DEBUG
52+
uses: timheuer/base64-to-file@v1.1
53+
with:
54+
fileName: "google-services.json"
55+
fileDir: "./app/debug/"
56+
encodedString: ${{ secrets.GOOGLE_SERVICES_JSON_DEBUG }}
57+
58+
- name: getting google-services.json (3)
59+
id: GOOGLE_SERVICES_JSON_RELEASE
60+
uses: timheuer/base64-to-file@v1.1
61+
with:
62+
fileName: "google-services.json"
63+
fileDir: "./app/release/"
64+
encodedString: ${{ secrets.GOOGLE_SERVICES_JSON_RELEASE }}
65+
66+
67+
- name: getting sign keystore
68+
id: SIGN_KEYSTORE
69+
uses: timheuer/base64-to-file@v1.1
70+
with:
71+
fileName: "key.jks"
72+
fileDir: "./"
73+
encodedString: ${{ secrets.SIGN_KEY_BASE64 }}
74+
75+
76+
77+
- name: Grant execute permission for gradlew
78+
run: chmod +x gradlew
79+
80+
- name: Gradle Clean
81+
run: ./gradlew clean
82+
83+
# - name: Gradle Build
84+
# run: ./gradlew build
85+
86+
# Internal Version
87+
- name: Building Internal Version
88+
run: ./gradlew assembleInternalRelease --stacktrace
89+
90+
# - uses: r0adkll/sign-android-release@v1
91+
# name: Sign app APK
92+
# id: sign_app
93+
# with:
94+
# releaseDirectory: app/build/outputs/apk/Internal/release/
95+
# signingKeyBase64: ${{ secrets.SIGN_KEY_BASE64 }}
96+
# alias: ${{ secrets.KEYSIGNALIAS }}
97+
# keyStorePassword: ${{ secrets.KEYSIGNALIASPASSWORD }}
98+
# keyPassword: ${{ secrets.KEYSIGNPASSWORD }}
99+
100+
101+
- name: upload artifact to Firebase App Distribution
102+
uses: wzieba/Firebase-Distribution-Github-Action@v1
103+
with:
104+
appId: ${{secrets.FIREBASE_INTERNAL_APP_ID}}
105+
token: ${{secrets.FIREBASE_TOKEN}}
106+
groups: main
107+
file: app/build/outputs/apk/Internal/release/app-Internal-release.apk
108+
109+
# Upload Build APK & Bundles
110+
- uses: actions/upload-artifact@v2
111+
name: Upload APK & Bundles
112+
with:
113+
name: Internal App Android Build APK
114+
path: |
115+
app/build/outputs/apk/Internal/release/app-Internal-release.apk
116+
117+
#app-Internal-release-unsigned-signed.apk

0 commit comments

Comments
 (0)