Skip to content

Commit 717cae0

Browse files
authored
Verzija 4.0.0 (#17)
* Započeo rad na najnovijoj verziji * Nova verzija 4.0.0
1 parent 864adaf commit 717cae0

File tree

129 files changed

+3177
-7340
lines changed

Some content is hidden

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

129 files changed

+3177
-7340
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -14,45 +14,31 @@ jobs:
1414
shell: bash
1515

1616
steps:
17-
- uses: actions/checkout@v2
18-
- name: set up JDK 11
19-
uses: actions/setup-java@v2
20-
with:
21-
java-version: '11'
22-
distribution: 'adopt'
23-
24-
- name: Grant execute permission for gradlew
25-
run: chmod +x gradlew
26-
27-
- name: Get Extra files
28-
uses: prewk/s3-cp-action@v1
29-
env:
30-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
31-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
32-
AWS_REGION: 'eu-west-1'
33-
SOURCE: 's3://splitbus/gmaps.zip'
34-
DEST: './app/src/main/java/com/am/stbus/presentation/screens'
35-
36-
- name: Unzip extra files
37-
run: |
38-
echo "Poceo unzip"
39-
cd app/src/main/java/com/am/stbus/presentation/screens
40-
ls
41-
unzip gmaps.zip
42-
echo "Gotov unzip"
43-
44-
- name: Add Google services JSON
45-
run: |
46-
cd app
47-
ls
48-
echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > google-services.json
49-
echo "Gotov Google services JSON"
50-
51-
- name: Update gradleProperties
52-
id: createServiceAccount
53-
run: |
54-
echo "first message"
55-
echo '${{ secrets.GRADLE_PROPERTIES }}' > gradle.properties
56-
57-
- name: Build with Gradle
58-
run: ./gradlew buildRelease
17+
- uses: actions/checkout@v3
18+
- name: Setup JDK 17
19+
uses: actions/setup-java@v3
20+
with:
21+
java-version: '17'
22+
distribution: 'temurin'
23+
24+
- name: Set up Android SDK
25+
uses: android-actions/setup-android@v2
26+
27+
- name: Grant execute permission for gradlew
28+
run: chmod +x gradlew
29+
30+
- name: Add Google services JSON
31+
run: |
32+
cd app
33+
ls
34+
echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > google-services.json
35+
echo "Gotov Google services JSON"
36+
37+
- name: Update secrets
38+
id: updateSecrets
39+
run: |
40+
echo "Updating Secrets.kt"
41+
echo '${{ secrets.SECRETS }}' > app/src/main/java/com/am/stbus/common/Secrets.kt
42+
43+
- name: Build with Gradle
44+
run: ./gradlew buildRelease

.github/workflows/upload.yml

Lines changed: 45 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -14,70 +14,56 @@ jobs:
1414
shell: bash
1515

1616
steps:
17-
- uses: actions/checkout@v2
18-
- name: set up JDK 11
19-
uses: actions/setup-java@v2
20-
with:
21-
java-version: '11'
22-
distribution: 'adopt'
17+
- uses: actions/checkout@v3
18+
- name: Setup JDK 17
19+
uses: actions/setup-java@v3
20+
with:
21+
java-version: '17'
22+
distribution: 'temurin'
2323

24-
- name: Grant execute permission for gradlew
25-
run: chmod +x gradlew
24+
- name: Set up Android SDK
25+
uses: android-actions/setup-android@v2
2626

27-
- name: Get Extra files
28-
uses: prewk/s3-cp-action@v1
29-
env:
30-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
31-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
32-
AWS_REGION: 'eu-west-1'
33-
SOURCE: 's3://splitbus/gmaps.zip'
34-
DEST: './app/src/main/java/com/am/stbus/presentation/screens'
27+
- name: Grant execute permission for gradlew
28+
run: chmod +x gradlew
3529

36-
- name: Unzip extra files
37-
run: |
38-
echo "Poceo unzip"
39-
cd app/src/main/java/com/am/stbus/presentation/screens
40-
ls
41-
unzip gmaps.zip
42-
echo "Gotov unzip"
30+
- name: Add Google services JSON
31+
run: |
32+
cd app
33+
ls
34+
echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > google-services.json
35+
echo "Gotov Google services JSON"
4336
44-
- name: Add Google services JSON
45-
run: |
46-
cd app
47-
ls
48-
echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > google-services.json
49-
echo "Gotov Google services JSON"
37+
- name: Update secrets
38+
id: updateSecrets
39+
run: |
40+
echo "Updating Secrets.kt"
41+
echo '${{ secrets.SECRETS }}' > app/src/main/java/com/am/stbus/common/Secrets.kt
5042
51-
- name: Update gradleProperties
52-
id: gradleProperties
53-
run: |
54-
echo "first message"
55-
echo '${{ secrets.GRADLE_PROPERTIES }}' > gradle.properties
43+
- name: Build Release AAB
44+
id: buildRelease
45+
run: ./gradlew bundleRelease
5646

57-
- name: Build Release AAB
58-
id: buildRelease
59-
run: ./gradlew bundleRelease
47+
- name: Sign AAB
48+
id: sign
49+
uses: r0adkll/sign-android-release@v1
50+
with:
51+
releaseDirectory: app/build/outputs/bundle/release
52+
signingKeyBase64: ${{ secrets.KEY_SIGNING }}
53+
alias: ${{ secrets.KEY_ALIAS }}
54+
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
55+
keyPassword: ${{ secrets.KEY_PASSWORD }}
6056

61-
- name: Sign AAB
62-
id: sign
63-
uses: r0adkll/sign-android-release@v1
64-
with:
65-
releaseDirectory: app/build/outputs/bundle/release
66-
signingKeyBase64: ${{ secrets.KEY_SIGNING }}
67-
alias: ${{ secrets.KEY_ALIAS }}
68-
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
69-
keyPassword: ${{ secrets.KEY_PASSWORD }}
57+
- name: Create service_account.json
58+
id: createServiceAccount
59+
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
7060

71-
- name: Create service_account.json
72-
id: createServiceAccount
73-
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
74-
75-
- name: Deploy to Play Store (BETA)
76-
id: deploy
77-
uses: r0adkll/upload-google-play@v1
78-
with:
79-
serviceAccountJson: service_account.json
80-
packageName: com.am.stbus
81-
releaseFiles: app/build/outputs/bundle/release/app-release.aab
82-
track: internal
83-
status: completed
61+
- name: Deploy to Play Store (BETA)
62+
id: deploy
63+
uses: r0adkll/upload-google-play@v1
64+
with:
65+
serviceAccountJson: service_account.json
66+
packageName: com.am.stbus
67+
releaseFiles: app/build/outputs/bundle/release/app-release.aab
68+
track: internal
69+
status: completed

.gitignore

Lines changed: 36 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,54 @@
1-
# Built application files
2-
*.apk
3-
*.ap_
4-
5-
# Files for the ART/Dalvik VM
6-
*.dex
7-
8-
# Java class files
9-
*.class
10-
11-
# Generated files
12-
bin/
13-
gen/
14-
out/
15-
161
# Gradle files
172
.gradle/
183
build/
4+
**/build/
195

206
# Local configuration file (sdk path, etc)
217
local.properties
8+
Secrets.kt
229

23-
# Proguard folder generated by Eclipse
24-
proguard/
25-
26-
# Log Files
10+
# Log files
2711
*.log
2812

29-
# Android Studio Navigation editor temp files
30-
.navigation/
31-
32-
# Android Studio captures folder
33-
captures/
34-
35-
# Intellij
13+
# Android Studio
14+
.idea/
3615
*.iml
37-
.idea/workspace.xml
38-
.idea/tasks.xml
39-
.idea/gradle.xml
40-
.idea/assetWizardSettings.xml
41-
.idea/dictionaries
42-
.idea/libraries
43-
# Android Studio 3 in .gitignore file.
44-
.idea/caches
45-
.idea/modules.xml
46-
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
47-
.idea/navEditor.xml
48-
49-
# Keystore files
50-
*.jks
51-
52-
# External native build folder generated in Android Studio 2.2 and later
53-
.externalNativeBuild
16+
*.ipr
17+
*.iws
18+
out/
5419

55-
# Google Services (e.g. APIs or Firebase)
56-
google-services.json
20+
# Kotlin and Java compiled files
21+
*.class
22+
*.jar
23+
*.war
24+
*.ear
25+
*.dex
5726

58-
# Freeline
59-
freeline.py
60-
freeline/
61-
freeline_project_description.json
27+
# Generated files
28+
gen/
29+
bin/
30+
captures/
31+
output.json
6232

63-
# Fastlane
64-
fastlane/
65-
Gemfile
66-
Gemfile.lock
33+
# IntelliJ
34+
*.hprof
6735

68-
# Android
69-
release/
70-
release/res/values/
36+
# Gradle caches and wrapper
37+
!gradle/wrapper/gradle-wrapper.jar
7138

72-
# Podatci za Google Maps
73-
gmaps/
39+
# Signing keys (don’t commit these!)
40+
*.keystore
41+
*.jks
7442

75-
# Gmaps config
76-
gradle.properties
43+
# NDK / CMake / Native build
44+
.externalNativeBuild/
45+
.cxx/
7746

78-
# Changelog generator
79-
changelog.sh
47+
# OS-specific
48+
.DS_Store
49+
Thumbs.db
8050

81-
/.idea/deploymentTargetDropDown.xml
82-
/.idea/kotlinc.xml
51+
# Others
52+
*.apk
53+
*.ap_
54+
*.aab

.idea/AndroidProjectSystem.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)