MCPcopy Create free account
hub / github.com/expo/expo / withSQLiteAndroidProps

Function withSQLiteAndroidProps

packages/expo-sqlite/plugin/src/withSQLite.ts:40–77  ·  view source on GitHub ↗
(config, props)

Source from the content-addressed store, hash-verified

38};
39
40const withSQLiteAndroidProps: ConfigPlugin<Props> = (config, props) => {
41 return withGradleProperties(config, (config) => {
42 const customBuildFlags = props?.android?.customBuildFlags ?? props?.customBuildFlags;
43 const enableFTS = props?.android?.enableFTS ?? props?.enableFTS;
44 const useSQLCipher = props?.android?.useSQLCipher ?? props?.useSQLCipher;
45 const useLibSQL = props?.android?.useLibSQL ?? props?.useLibSQL;
46 const withSQLiteVecExtension =
47 props?.android?.withSQLiteVecExtension ?? props?.withSQLiteVecExtension;
48
49 config.modResults = updateAndroidBuildPropertyIfNeeded(
50 config.modResults,
51 'expo.sqlite.customBuildFlags',
52 customBuildFlags
53 );
54 config.modResults = updateAndroidBuildPropertyIfNeeded(
55 config.modResults,
56 'expo.sqlite.enableFTS',
57 enableFTS
58 );
59 config.modResults = updateAndroidBuildPropertyIfNeeded(
60 config.modResults,
61 'expo.sqlite.useSQLCipher',
62 useSQLCipher
63 );
64 config.modResults = updateAndroidBuildPropertyIfNeeded(
65 config.modResults,
66 'expo.sqlite.useLibSQL',
67 useLibSQL
68 );
69 config.modResults = updateAndroidBuildPropertyIfNeeded(
70 config.modResults,
71 'expo.sqlite.withSQLiteVecExtension',
72 withSQLiteVecExtension
73 );
74
75 return config;
76 });
77};
78
79const withSQLiteIOSProps: ConfigPlugin<Props> = (config, props) => {
80 return withPodfileProperties(config, (config) => {

Callers 1

withSQLiteFunction · 0.85

Calls 2

withGradlePropertiesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…