-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Yang auth #476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Yang auth #476
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
aa21ca3
intergate auth
butterflyforever 2b1723c
get UserID
butterflyforever d0891ce
move const to companion object
butterflyforever bb6ce25
attach to PR
butterflyforever c1560e0
attach to PR
butterflyforever ac80bfe
implemented logout
butterflyforever 4f946c4
Merge branch 'yang-auth' of github.com:googlesamples/google-services …
butterflyforever dfde7f7
add google-service.json
butterflyforever a1daf87
naming style
butterflyforever 76c28af
json
butterflyforever c07e51f
1. Add login fragment. Seperate login process from MainActivity
butterflyforever 2c738ea
remove comment
butterflyforever fc9cf21
remove comment
butterflyforever 55e0185
remove comment
butterflyforever 9fd9d17
move login in check to ViewModel
butterflyforever 49337b0
resolve conflict
butterflyforever 4ec5ab3
resolve conflict
butterflyforever e99fae9
resolve conflict
butterflyforever 4bd8bac
resolve conflict
butterflyforever 9d511f9
Merge branch 'summer-2020' into yang-auth
butterflyforever b90072d
add LiveData class
butterflyforever f416fc5
1. Adapt it to MVVM architecture
butterflyforever File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
get UserID
- Loading branch information
commit 2b1723cda22d417c5709f67739395f4511176fe5
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
29 changes: 29 additions & 0 deletions
29
android/canonical/app/src/main/res/layout/login_in_page.xml
This file contains hidden or 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,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".MeFragment"> | ||
|
||
<!-- TODO: Update blank fragment layout --> | ||
<TextView | ||
android:id="@+id/textView" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center" | ||
android:text="This is Login Page" | ||
android:textSize="30sp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<com.google.android.gms.common.SignInButton | ||
android:id="@+id/sign_in_button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="40dp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
xyarco marked this conversation as resolved.
Show resolved
Hide resolved
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.