-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from dead8309/dead8309
Setup Github Actions
- Loading branch information
Showing
4 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Test Build | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build Apk | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Base Url | ||
env: | ||
BASE_URL: $ | ||
run: echo BASE_URL=\"$BASE_URL\" > ./local.properties | ||
|
||
|
||
- name: Setup jdk-17 | ||
uses: actions/setup-java@main | ||
with: | ||
java-version: 17 | ||
distribution: 'adopt' | ||
cache: gradle | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Assemble Debug | ||
run: ./gradlew assembleDebug | ||
|
||
- name: Upload APK | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: apk-debug | ||
path: app/build/outputs/apk/debug/**.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
app/src/main/java/in/iot/lab/teacherreview/core/utils/Constants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package `in`.iot.lab.teacherreview.core.utils | ||
|
||
import `in`.iot.lab.teacherreview.BuildConfig | ||
|
||
/** | ||
* @property Constants is a class which provides all the ENDPOINTS related to the APP and keeps the | ||
* BASE URL for the App backend DATA | ||
* | ||
* @property BASE_URL this is the Base Url of the App | ||
* @property LOGIN_AUTHENTICATION_ENDPOINT this endpoint checks the Login Data given by the User and helps | ||
* in logging the User inside the App. It also provides the User Data like his accessToken which is | ||
* needed for all the other network calls inside the APP | ||
* @property TEACHER_LIST_ENDPOINT This is the endpoint which accepts the teacher List Api Call | ||
* @property | ||
*/ | ||
object Constants { | ||
const val BASE_URL = BuildConfig.BASE_URL | ||
const val LOGIN_AUTHENTICATION_ENDPOINT = "authentication" | ||
const val TEACHER_LIST_ENDPOINT = "faculties" | ||
const val POST_TEACHER_REVIEW_ENDPOINT = "reviews" | ||
} |