build TF
This commit is contained in:
@@ -92,7 +92,7 @@ android {
|
|||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "2026.02.18"
|
versionName "2026.03.02"
|
||||||
}
|
}
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
debug {
|
debug {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"deeplinks": [
|
"deeplinks": [
|
||||||
"musicland://"
|
"musicland://"
|
||||||
],
|
],
|
||||||
"version": "2026.02.18",
|
"version": "2026.03.02",
|
||||||
"icon": "./assets/icon.png",
|
"icon": "./assets/icon.png",
|
||||||
"backgroundColor": "#0F0C14",
|
"backgroundColor": "#0F0C14",
|
||||||
"jsEngine": "hermes",
|
"jsEngine": "hermes",
|
||||||
|
|||||||
+1359
File diff suppressed because it is too large
Load Diff
+31
-31
@@ -1,18 +1,18 @@
|
|||||||
import AsyncStorage from '@react-native-async-storage/async-storage'
|
import AsyncStorage from "@react-native-async-storage/async-storage"
|
||||||
import { getReactNativePersistence, initializeAuth } from 'firebase/auth/react-native'
|
import { getReactNativePersistence, initializeAuth } from "firebase/auth/react-native"
|
||||||
import firebase from 'firebase/compat/app'
|
import firebase from "firebase/compat/app"
|
||||||
import 'firebase/compat/auth'
|
import "firebase/compat/auth"
|
||||||
import 'firebase/compat/firestore'
|
import "firebase/compat/firestore"
|
||||||
import 'firebase/compat/functions'
|
import "firebase/compat/functions"
|
||||||
import 'firebase/compat/storage'
|
import "firebase/compat/storage"
|
||||||
import { Platform } from 'react-native'
|
import { Platform } from "react-native"
|
||||||
|
|
||||||
const functionsInstances = {}
|
const functionsInstances = {}
|
||||||
const emulatorConfigured = {}
|
const emulatorConfigured = {}
|
||||||
const emulatorHost = Platform.OS === 'web' ? 'localhost' : '192.168.1.103'
|
const emulatorHost = Platform.OS === "web" ? "localhost" : "192.168.1.114"
|
||||||
const USE_FUNCTIONS_EMULATOR = false // Toggle to route functions traffic to the local emulator.
|
const USE_FUNCTIONS_EMULATOR = false // Toggle to route functions traffic to the local emulator.
|
||||||
|
|
||||||
const configureFunctionsEmulator = (instance, regionKey = 'us-central1') => {
|
const configureFunctionsEmulator = (instance, regionKey = "us-central1") => {
|
||||||
const shouldUseEmulator = USE_FUNCTIONS_EMULATOR && instance?.useEmulator
|
const shouldUseEmulator = USE_FUNCTIONS_EMULATOR && instance?.useEmulator
|
||||||
|
|
||||||
if (!shouldUseEmulator || emulatorConfigured[regionKey]) {
|
if (!shouldUseEmulator || emulatorConfigured[regionKey]) {
|
||||||
@@ -31,16 +31,16 @@ const configureFunctionsEmulator = (instance, regionKey = 'us-central1') => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const firebaseConfig = {
|
export const firebaseConfig = {
|
||||||
apiKey: 'AIzaSyCuHJHdwVN_F-VmUG4Hd7bGiMRqj6rPlLo',
|
apiKey: "AIzaSyCuHJHdwVN_F-VmUG4Hd7bGiMRqj6rPlLo",
|
||||||
authDomain: 'musicland-d33f9.firebaseapp.com',
|
authDomain: "musicland-d33f9.firebaseapp.com",
|
||||||
projectId: 'musicland-d33f9',
|
projectId: "musicland-d33f9",
|
||||||
storageBucket: 'musicland-d33f9.firebasestorage.app',
|
storageBucket: "musicland-d33f9.firebasestorage.app",
|
||||||
messagingSenderId: '305598753437',
|
messagingSenderId: "305598753437",
|
||||||
appId: '1:305598753437:web:9930f10af59e5cf7f28274',
|
appId: "1:305598753437:web:9930f10af59e5cf7f28274",
|
||||||
measurementId: 'G-RV4MS1SVTT',
|
measurementId: "G-RV4MS1SVTT",
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!firebase?.apps?.filter(({ name_ }) => name_ === '[DEFAULT]').length) {
|
if (!firebase?.apps?.filter(({ name_ }) => name_ === "[DEFAULT]").length) {
|
||||||
const defaultApp = firebase.initializeApp(firebaseConfig)
|
const defaultApp = firebase.initializeApp(firebaseConfig)
|
||||||
|
|
||||||
initializeAuth(defaultApp, {
|
initializeAuth(defaultApp, {
|
||||||
@@ -51,9 +51,9 @@ if (!firebase?.apps?.filter(({ name_ }) => name_ === '[DEFAULT]').length) {
|
|||||||
// firebase.functions().useEmulator("localhost", 5001);
|
// firebase.functions().useEmulator("localhost", 5001);
|
||||||
// }
|
// }
|
||||||
const defaultFunctions = firebase.functions()
|
const defaultFunctions = firebase.functions()
|
||||||
functionsInstances['us-central1'] = defaultFunctions
|
functionsInstances["us-central1"] = defaultFunctions
|
||||||
configureFunctionsEmulator(defaultFunctions, 'us-central1')
|
configureFunctionsEmulator(defaultFunctions, "us-central1")
|
||||||
console.log('Firebase init')
|
console.log("Firebase init")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Firestore settings for React Native/iOS: avoid streaming transport issues
|
// Firestore settings for React Native/iOS: avoid streaming transport issues
|
||||||
@@ -69,20 +69,20 @@ try {
|
|||||||
// Ignore if settings were already set elsewhere
|
// Ignore if settings were already set elsewhere
|
||||||
}
|
}
|
||||||
|
|
||||||
export const usersRef = firestore.collection('users')
|
export const usersRef = firestore.collection("users")
|
||||||
export const projectsRef = firestore.collection('projects')
|
export const projectsRef = firestore.collection("projects")
|
||||||
export const tasksRef = firestore.collection('tasks')
|
export const tasksRef = firestore.collection("tasks")
|
||||||
export const playlistsRef = firestore.collection('playlists')
|
export const playlistsRef = firestore.collection("playlists")
|
||||||
export const chatsRef = firestore.collection('chats')
|
export const chatsRef = firestore.collection("chats")
|
||||||
export const videosRef = firestore.collection('videos')
|
export const videosRef = firestore.collection("videos")
|
||||||
export const notificationsRef = firestore.collection('notifications')
|
export const notificationsRef = firestore.collection("notifications")
|
||||||
export const reportsRef = firestore.collection('reports')
|
export const reportsRef = firestore.collection("reports")
|
||||||
|
|
||||||
export const { arrayUnion, arrayRemove, increment, serverTimestamp } = firebase.firestore.FieldValue
|
export const { arrayUnion, arrayRemove, increment, serverTimestamp } = firebase.firestore.FieldValue
|
||||||
export const deleteField = firebase.firestore.FieldValue.delete
|
export const deleteField = firebase.firestore.FieldValue.delete
|
||||||
|
|
||||||
export const getFunctionsClient = (region = 'us-central1') => {
|
export const getFunctionsClient = (region = "us-central1") => {
|
||||||
const regionKey = region || 'us-central1'
|
const regionKey = region || "us-central1"
|
||||||
|
|
||||||
if (!functionsInstances[regionKey]) {
|
if (!functionsInstances[regionKey]) {
|
||||||
functionsInstances[regionKey] = firebase.app().functions(regionKey)
|
functionsInstances[regionKey] = firebase.app().functions(regionKey)
|
||||||
|
|||||||
Reference in New Issue
Block a user