diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d411c5f7..accf8170 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -47,7 +47,7 @@ jobs: mv app/build/outputs/apk/release/*.apk . - name: Upload Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: YourSpace APK path: YourSpace*.apk diff --git a/data/src/main/java/com/canopas/yourspace/data/service/place/ApiPlaceService.kt b/data/src/main/java/com/canopas/yourspace/data/service/place/ApiPlaceService.kt index 127fde1a..4084ef38 100644 --- a/data/src/main/java/com/canopas/yourspace/data/service/place/ApiPlaceService.kt +++ b/data/src/main/java/com/canopas/yourspace/data/service/place/ApiPlaceService.kt @@ -8,18 +8,15 @@ import com.google.android.libraries.places.api.model.Place import com.google.android.libraries.places.api.net.PlacesClient import com.google.android.libraries.places.api.net.SearchByTextRequest import com.google.firebase.firestore.FirebaseFirestore -import com.google.firebase.functions.FirebaseFunctions import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.emptyFlow import kotlinx.coroutines.flow.first import kotlinx.coroutines.tasks.await -import timber.log.Timber import javax.inject.Inject class ApiPlaceService @Inject constructor( private val db: FirebaseFirestore, - private val placesClient: PlacesClient, - private val functions: FirebaseFunctions + private val placesClient: PlacesClient ) { private val spaceRef = db.collection(Config.FIRESTORE_COLLECTION_SPACES) @@ -65,18 +62,6 @@ class ApiPlaceService @Inject constructor( settings.forEach { setting -> spacePlacesSettingsRef(spaceId, place.id).document(setting.user_id).set(setting).await() } - - val data = mapOf( - "spaceId" to spaceId, - "placeName" to name, - "createdBy" to createdBy, - "spaceMemberIds" to spaceMemberIds - ) - functions.getHttpsCallable("sendNewPlaceNotification").call(data).addOnSuccessListener { - Timber.d("Notification sent successfully") - }.addOnFailureListener { - Timber.e(it, "Failed to send new place notification") - } } suspend fun joinUserToExistingPlaces(