-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "578948835811", | ||
"project_id": "dutch2023-b04c6", | ||
"storage_bucket": "dutch2023-b04c6.appspot.com" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:578948835811:android:9d0913290a78465d9cd8d6", | ||
"android_client_info": { | ||
"package_name": "com.dutch2019" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "578948835811-6kslfea9096rh2cmin2j8kc0ve02ms2a.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyCK_TUBV1g5lv7fvi5Z2zFMTpEQyfN9hW4" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [ | ||
{ | ||
"client_id": "578948835811-6kslfea9096rh2cmin2j8kc0ve02ms2a.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.dutch2019.repository | ||
|
||
import android.util.Log | ||
import com.google.firebase.ktx.Firebase | ||
import com.google.firebase.storage.ktx.storage | ||
import kotlinx.coroutines.suspendCancellableCoroutine | ||
import kotlin.coroutines.resume | ||
|
||
class FirebaseRepository { | ||
private val storage = Firebase.storage | ||
suspend fun readImage(): String = suspendCancellableCoroutine { continuation -> | ||
|
||
val storageRef = storage.reference | ||
val task = storageRef.listAll() | ||
|
||
task.addOnSuccessListener { listResult -> | ||
listResult.items[0].downloadUrl.addOnCompleteListener { task -> | ||
continuation.resume(task.result.toString()) | ||
} | ||
} | ||
task.addOnFailureListener {error -> | ||
Log.e("readImage error", error.toString()) | ||
continuation.resume("https://user-images.githubusercontent.com/32587845/255312406-b487bb92-8728-406a-8b78-310da211d765.jpg") | ||
} | ||
|
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:aapt="http://schemas.android.com/aapt" | ||
android:width="108dp" | ||
android:height="108dp" | ||
android:viewportWidth="142" | ||
android:viewportHeight="142"> | ||
<group android:scaleX="0.73944443" | ||
android:scaleY="0.73944443" | ||
android:translateX="18.499445" | ||
android:translateY="18.499445"> | ||
<group> | ||
<clip-path | ||
android:pathData="M0,0h142v142h-142z"/> | ||
<path | ||
android:pathData="M112.11,0H30C13.43,0 0,13.43 0,30V112.11C0,128.68 13.43,142.11 30,142.11H112.11C128.68,142.11 142.11,128.68 142.11,112.11V30C142.11,13.43 128.68,0 112.11,0Z" | ||
android:fillColor="#ffffff"/> | ||
<path | ||
android:pathData="M141.85,108H70L105.8,142.33H111.85C128.42,142.33 141.85,128.9 141.85,112.33V108Z" | ||
android:strokeAlpha="0.1" | ||
android:fillType="evenOdd" | ||
android:fillAlpha="0.1"> | ||
<aapt:attr name="android:fillColor"> | ||
<gradient | ||
android:startX="60.5" | ||
android:startY="177.87" | ||
android:endX="183.63" | ||
android:endY="177.87" | ||
android:type="linear"> | ||
<item android:offset="0" android:color="#FF000000"/> | ||
<item android:offset="1" android:color="#00000000"/> | ||
</gradient> | ||
</aapt:attr> | ||
</path> | ||
<path | ||
android:pathData="M48.93,42.97C37.02,54.94 37.02,74.35 48.93,86.32L70.5,108L92.07,86.32C103.98,74.35 103.98,54.94 92.07,42.97C80.15,31.01 60.84,31.01 48.93,42.97Z" | ||
android:fillColor="#EF4B33"/> | ||
<path | ||
android:pathData="M58.09,52.6C51.49,59.45 51.87,70.46 58.57,77.2L70.49,89.18L77.3,82.34C77.61,82.03 77.61,81.52 77.3,81.2L73.89,77.78C73.58,77.47 73.08,77.47 72.76,77.78L70.49,80.07L63.03,72.57C58.97,68.49 58.53,61.88 62.29,57.52C66.62,52.51 74.36,52.5 78.69,57.53C82.46,61.88 82.01,68.5 77.95,72.58L77.88,72.65C77.57,72.96 77.57,73.47 77.88,73.79L81.29,77.21C81.6,77.52 82.1,77.52 82.42,77.21C89.12,70.47 89.5,59.46 82.9,52.61C76.12,45.55 64.87,45.55 58.09,52.6Z" | ||
android:fillColor="#F7F2F2"/> | ||
</group> | ||
</group> | ||
</vector> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<vector | ||
android:height="108dp" | ||
android:width="108dp" | ||
android:viewportHeight="108" | ||
android:viewportWidth="108" | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="#3DDC84" | ||
android:pathData="M0,0h108v108h-108z"/> | ||
<path android:fillColor="#00000000" android:pathData="M9,0L9,108" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M19,0L19,108" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M29,0L29,108" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M39,0L39,108" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M49,0L49,108" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M59,0L59,108" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M69,0L69,108" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M79,0L79,108" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M89,0L89,108" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M99,0L99,108" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M0,9L108,9" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M0,19L108,19" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M0,29L108,29" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M0,39L108,39" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M0,49L108,49" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M0,59L108,59" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M0,69L108,69" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M0,79L108,79" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M0,89L108,89" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M0,99L108,99" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M19,29L89,29" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M19,39L89,39" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M19,49L89,49" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M19,59L89,59" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M19,69L89,69" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M19,79L89,79" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M29,19L29,89" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M39,19L39,89" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M49,19L49,89" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M59,19L59,89" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M69,19L69,89" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
<path android:fillColor="#00000000" android:pathData="M79,19L79,89" | ||
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | ||
</vector> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="21dp" | ||
android:height="24dp" | ||
android:viewportWidth="21" | ||
android:viewportHeight="24"> | ||
<path | ||
android:fillColor="#EF4B33" | ||
android:pathData="M3.026,2.91C-0.879,6.793 -0.879,13.088 3.026,16.97L10.098,24L17.169,16.97C21.074,13.088 21.074,6.793 17.169,2.91C13.262,-0.97 6.93,-0.97 3.026,2.91Z" /> | ||
</vector> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="30dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="30"> | ||
<path | ||
android:fillColor="#EF4B33" | ||
android:pathData="M3.515,3.638C-1.172,8.491 -1.172,16.36 3.515,21.213L12,30L20.485,21.213C25.171,16.36 25.171,8.491 20.485,3.638C15.797,-1.213 8.199,-1.213 3.515,3.638Z" /> | ||
</vector> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@drawable/ic_launcher_dutch_background"/> | ||
<foreground android:drawable="@drawable/ic_launcher_dutch_foreground"/> | ||
</adaptive-icon> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@drawable/ic_launcher_dutch_background"/> | ||
<foreground android:drawable="@drawable/ic_launcher_dutch_foreground"/> | ||
</adaptive-icon> |