-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert firestore quickstart to Kotlin (#638)
- Loading branch information
Showing
38 changed files
with
1,498 additions
and
173 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
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
22 changes: 22 additions & 0 deletions
22
firestore/app/src/main/java/com/google/firebase/example/fireeats/EntryChoiceActivity.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,22 @@ | ||
package com.google.firebase.example.fireeats | ||
|
||
import android.content.Intent | ||
import com.firebase.example.internal.BaseEntryChoiceActivity | ||
import com.firebase.example.internal.Choice | ||
|
||
class EntryChoiceActivity : BaseEntryChoiceActivity() { | ||
|
||
override fun getChoices(): List<Choice> { | ||
return listOf( | ||
Choice( | ||
"Java", | ||
"Run the Cloud Firestore quickstart written in Java.", | ||
Intent(this, com.google.firebase.example.fireeats.java.MainActivity::class.java)), | ||
Choice( | ||
"Kotlin", | ||
"Run the Cloud Firestore quickstart written in Kotlin.", | ||
Intent(this, com.google.firebase.example.fireeats.kotlin.MainActivity::class.java)) | ||
) | ||
} | ||
|
||
} |
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
7 changes: 4 additions & 3 deletions
7
...le/firebase/example/fireeats/Filters.java → ...rebase/example/fireeats/java/Filters.java
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
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
2 changes: 1 addition & 1 deletion
2
...le/fireeats/adapter/FirestoreAdapter.java → ...reeats/java/adapter/FirestoreAdapter.java
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.