Support F-Droid Android builds (#1768)
* fix(android): support source-based APK builds Co-authored-by: Anton Lazarev <22821309+antonok-edm@users.noreply.github.com> * fix(android): address fdroid review feedback Co-authored-by: Anton Lazarev <22821309+antonok-edm@users.noreply.github.com> * fix(android): complete the F-Droid build profile * fix(app): isolate the F-Droid runtime flag --------- Co-authored-by: Anton Lazarev <22821309+antonok-edm@users.noreply.github.com>
This commit is contained in:
co-authored by
Anton Lazarev
parent
1f7efbd185
commit
b6d49da4df
@@ -0,0 +1,18 @@
|
||||
const DENIED_CAMERA_PERMISSION = {
|
||||
canAskAgain: false,
|
||||
expires: "never",
|
||||
granted: false,
|
||||
status: "denied",
|
||||
} as const;
|
||||
|
||||
async function requestCameraPermission() {
|
||||
return DENIED_CAMERA_PERMISSION;
|
||||
}
|
||||
|
||||
export function useCameraPermissions() {
|
||||
return [DENIED_CAMERA_PERMISSION, requestCameraPermission] as const;
|
||||
}
|
||||
|
||||
export function CameraView(): null {
|
||||
return null;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
const DENIED_NOTIFICATION_PERMISSION = {
|
||||
canAskAgain: false,
|
||||
expires: "never",
|
||||
granted: false,
|
||||
status: "denied",
|
||||
} as const;
|
||||
|
||||
export const PermissionStatus = {
|
||||
DENIED: "denied",
|
||||
GRANTED: "granted",
|
||||
UNDETERMINED: "undetermined",
|
||||
} as const;
|
||||
|
||||
export const AndroidImportance = { DEFAULT: 3 } as const;
|
||||
|
||||
export async function getPermissionsAsync() {
|
||||
return DENIED_NOTIFICATION_PERMISSION;
|
||||
}
|
||||
|
||||
export async function requestPermissionsAsync() {
|
||||
return DENIED_NOTIFICATION_PERMISSION;
|
||||
}
|
||||
|
||||
export async function getExpoPushTokenAsync() {
|
||||
return { data: "" };
|
||||
}
|
||||
|
||||
export async function setNotificationChannelAsync() {
|
||||
return null;
|
||||
}
|
||||
|
||||
export function setNotificationHandler(): void {}
|
||||
|
||||
export function addNotificationResponseReceivedListener() {
|
||||
return { remove() {} };
|
||||
}
|
||||
|
||||
export async function getLastNotificationResponseAsync() {
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user