Skip to content

Commit 2128bfe

Browse files
Merge pull request #173 from CS386-Group-4/development
Finished Development of Version 2.0.0
2 parents f077b88 + 4349686 commit 2128bfe

47 files changed

Lines changed: 2421 additions & 440 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# This workflow will build an Android project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Android CI with Gradle
5+
6+
on:
7+
push:
8+
branches: [ main, development ]
9+
pull_request:
10+
branches: [ main, development ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
- name: Set up JDK 8
20+
uses: actions/setup-java@v2
21+
with:
22+
distribution: 'adopt'
23+
java-version: '8'
24+
- name: Cache gradle dependencies
25+
uses: actions/cache@v2.1.4
26+
with:
27+
path: |
28+
~/.gradle/caches
29+
~/.gradle/wrapper
30+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
31+
restore-keys: |
32+
${{ runner.os }}-gradle-
33+
- name: Grant execute permission for gradlew
34+
run: chmod +x android_app/gradlew
35+
- name: Build with Gradle
36+
run: |
37+
cd android_app
38+
./gradlew build --no-daemon --stacktrace
39+
env:
40+
GH_USER: ${{ secrets.GH_USER }}
41+
GH_PACKAGES_READ: ${{ secrets.GH_PACKAGES_READ }}
42+
- name: Upload results from lint tests
43+
uses: actions/upload-artifact@v2
44+
with:
45+
name: Lint reports
46+
path: android_app/app/build/reports/
47+
- name: Upload mapping files
48+
uses: actions/upload-artifact@v2
49+
with:
50+
name: Mappings
51+
path: android_app/app/build/outputs/mapping/
52+
- name: Upload compiled app APKs
53+
uses: actions/upload-artifact@v2
54+
with:
55+
name: APKs
56+
path: android_app/app/build/outputs/apk/
57+
- name: Cleanup Gradle cache
58+
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
59+
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
60+
run: |
61+
rm -f ~/.gradle/caches/modules-2/modules-2.lock
62+
rm -f ~/.gradle/caches/modules-2/gc.properties

android_app/.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,22 @@
1313
.externalNativeBuild
1414
.cxx
1515
local.properties
16+
17+
#amplify
18+
#amplify/\#current-cloud-backend
19+
#amplify/.config/local-*
20+
#amplify/logs
21+
#amplify/mock-data
22+
#amplify/backend/amplify-meta.json
23+
#amplify/backend/awscloudformation
24+
#amplify/backend/.temp
25+
build/
26+
dist/
27+
node_modules/
28+
#aws-exports.js
29+
#awsconfiguration.json
30+
#amplifyconfiguration.json
31+
#amplify-build-config.json
32+
#amplify-gradle-config.json
33+
#amplifytools.xcconfig
34+
.secret-*

android_app/.idea/jarRepositories.xml

Lines changed: 5 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)