join #19

Merged
amaliadwiy merged 222 commits from join into v1 2026-02-09 11:18:03 +08:00
140 changed files with 3780 additions and 1136 deletions
Showing only changes of commit bc590b8cb5 - Show all commits

2
.gitignore vendored
View File

@@ -44,4 +44,4 @@ x.ts
x.sh
google-services.json
mobile-darmasaba-firebase-adminsdk-fbsvc-f5abb292b5.json
service-account.json

View File

@@ -21,6 +21,7 @@ export default {
},
android: {
package: "mobiledarmasaba.app",
versionCode: 1,
adaptiveIcon: {
foregroundImage: "./assets/images/splash-icon.png",
backgroundColor: "#ffffff"

View File

@@ -5,20 +5,52 @@
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
"distribution": "internal",
"android": {
"buildType": "apk"
},
"ios": {
"simulator": true
}
},
"preview": {
"distribution": "internal",
"android": {
"buildType": "apk"
},
"ios": {
"simulator": false
}
},
"production": {
"autoIncrement": true
"distribution": "store",
"android": {
"buildType": "app-bundle"
},
"ios": {
"simulator": false
}
}
},
"submit": {
"production": {}
"production": {
"android": {
"serviceAccountKeyPath": "./service-account.json",
"track": "production"
}
},
"beta": {
"android": {
"serviceAccountKeyPath": "./service-account.json",
"track": "beta",
"releaseStatus": "completed"
}
},
"internal": {
"android": {
"serviceAccountKeyPath": "./service-account.json",
"track": "internal"
}
}
}
}

View File

@@ -41,6 +41,7 @@ export const requestPermission = async () => {
}
return false
}
return true
} else if (Platform.OS === 'ios') {
const { status } = await Notifications.requestPermissionsAsync();
return status === 'granted';

View File

@@ -61,6 +61,8 @@ export default function AuthProvider({ children }: { children: ReactNode }): Rea
if (Platform.OS === 'android') {
const tokenDevice = await getToken()
const register = await apiRegisteredToken({ user: hasil, token: String(tokenDevice) })
}else{
const register = await apiRegisteredToken({ user: hasil, token: "" })
}
} catch (error) {
console.error(error)
@@ -84,6 +86,8 @@ export default function AuthProvider({ children }: { children: ReactNode }): Rea
if (Platform.OS === 'android') {
const token = await getToken()
const response = await apiUnregisteredToken({ user: hasil, token: String(token) })
}else{
const response = await apiUnregisteredToken({ user: hasil, token: "" })
}
} catch (error) {
console.error(error)