-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ui for signIn screen * Ui for phone login screen * Setup navigation * git ignore * Minor improvements * Complete phone login hookup * Complete google signIn hookup * Minor refactoring * Firestore hookup for auth * Fix navigation * Cleanup * Intro screen color fixes * Minor fixes * Minor fixes * Add Error banner * Refactor auth viewmodel and add unit test * Setup CI for test and lint check (#2) * Add GitHub actions
- Loading branch information
1 parent
17c3ff1
commit 5ae4916
Showing
56 changed files
with
2,992 additions
and
288 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,32 @@ | ||
name: Android Build | ||
|
||
on: [ push ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: 17 | ||
|
||
- name: Retrieve the secret and decode it to a file | ||
env: | ||
GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }} | ||
DEBUG_KEYSTORE_BASE64: ${{ secrets.DEBUG_KEYSTORE_BASE64 }} | ||
|
||
run: | | ||
echo $GOOGLE_SERVICES_JSON_BASE64 | base64 -di > app/google-services.json | ||
echo $DEBUG_KEYSTORE_BASE64 | base64 -di > app/debug.keystore | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
- name: Run Tests with Gradle | ||
run: ./gradlew test | ||
|
||
- name: Run Lint check | ||
run: ./gradlew ktlintCheck |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
/build | ||
/build | ||
debug.keystore | ||
google-services.json |
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
24 changes: 0 additions & 24 deletions
24
app/src/androidTest/java/com/canopas/catchme/ExampleInstrumentedTest.kt
This file was deleted.
Oops, something went wrong.
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
14 changes: 14 additions & 0 deletions
14
app/src/main/java/com/canopas/catchme/CatchMeApplication.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,14 @@ | ||
package com.canopas.catchme | ||
|
||
import android.app.Application | ||
import dagger.hilt.android.HiltAndroidApp | ||
import timber.log.Timber | ||
|
||
@HiltAndroidApp | ||
class CatchMeApplication : Application() { | ||
|
||
override fun onCreate() { | ||
super.onCreate() | ||
Timber.plant(Timber.DebugTree()) | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
app/src/main/java/com/canopas/catchme/di/AppDataProvider.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,26 @@ | ||
package com.canopas.catchme.di | ||
|
||
import com.canopas.catchme.BuildConfig | ||
import com.canopas.catchme.data.utils.AppDispatcher | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Named | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
class AppDataProvider { | ||
|
||
@Provides | ||
@Singleton | ||
@Named("app_version_code") | ||
fun provideAppVersionCode(): Long { | ||
return BuildConfig.VERSION_CODE.toLong() | ||
} | ||
|
||
@Provides | ||
@Singleton | ||
fun provideAppDispatcher() = AppDispatcher() | ||
} |
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
Oops, something went wrong.