template_0205

This commit is contained in:
Sofio
2026-02-05 13:16:05 +08:00
commit d93e4d9c9f
197 changed files with 52810 additions and 0 deletions

50
RN_TEMPLATE/app.config.ts Normal file
View File

@@ -0,0 +1,50 @@
import { ExpoConfig, ConfigContext } from "@expo/config"
/**
* Use tsx/cjs here so we can use TypeScript for our Config Plugins
* and not have to compile them to JavaScript.
*
* See https://docs.expo.dev/config-plugins/plugins/#add-typescript-support-and-convert-to-dynamic-app-config
*/
import "tsx/cjs"
/**
* @param config ExpoConfig coming from the static config app.json if it exists
*
* You can read more about Expo's Configuration Resolution Rules here:
* https://docs.expo.dev/workflow/configuration/#configuration-resolution-rules
*/
module.exports = ({ config }: ConfigContext): Partial<ExpoConfig> => {
const existingPlugins = config.plugins ?? []
return {
...config,
ios: {
...config.ios,
// This privacyManifests is to get you started.
// See Expo's guide on apple privacy manifests here:
// https://docs.expo.dev/guides/apple-privacy/
// You may need to add more privacy manifests depending on your app's usage of APIs.
// More details and a list of "required reason" APIs can be found in the Apple Developer Documentation.
// https://developer.apple.com/documentation/bundleresources/privacy-manifest-files
privacyManifests: {
NSPrivacyAccessedAPITypes: [
{
NSPrivacyAccessedAPIType: "NSPrivacyAccessedAPICategoryUserDefaults",
NSPrivacyAccessedAPITypeReasons: ["CA92.1"], // CA92.1 = "Access info from same app, per documentation"
},
],
},
},
plugins: [
...existingPlugins,
[
"@react-native-google-signin/google-signin",
{
// iOS URL Scheme = reversed iOS Client ID (for Google Sign-In callback)
iosUrlScheme: "com.googleusercontent.apps.500211604129-uiln0fhiaj05jjg256oahkdcucpi6cqb",
},
],
],
}
}