-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fe44fb
commit 714ab84
Showing
13 changed files
with
481 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Replace the credentials below with your Supabase, PowerSync and Expo project details. | ||
EXPO_PUBLIC_SUPABASE_URL=https://foo.supabase.co | ||
EXPO_PUBLIC_SUPABASE_ANON_KEY=foo | ||
EXPO_PUBLIC_SUPABASE_URL=https://jkivpfqvwqruswyaaamh.supabase.co | ||
EXPO_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImpraXZwZnF2d3FydXN3eWFhYW1oIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTQxODIyMzQsImV4cCI6MjAwOTc1ODIzNH0.8qjvtLTaPCS7QQAraLeIu2JMiohyUPCuFxNcViRv7Hg | ||
EXPO_PUBLIC_SUPABASE_BUCKET= # Optional. Only required when syncing attachments and using Supabase Storage. See packages/powersync-attachments. | ||
EXPO_PUBLIC_POWERSYNC_URL=https://foo.powersync.journeyapps.com | ||
EXPO_PUBLIC_EAS_PROJECT_ID=foo # Optional. Only required when using EAS. | ||
EXPO_PUBLIC_POWERSYNC_URL=https://64fb2db705abf5983b3ca6eb.powersync.journeyapps.com | ||
#EXPO_PUBLIC_EAS_PROJECT_ID=foo # Optional. Only required when using EAS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
demos/react-native-supabase-todolist/app/views/todos/edit/[id].tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
demos/react-native-supabase-todolist/library/powersync/AppSchema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
demos/react-native-supabase-todolist/library/supabase/SupabaseConnector.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const production = process.env.NODE_ENV === 'production'; | ||
const TerserPlugin = require('terser-webpack-plugin'); | ||
const path = require('path'); | ||
module.exports = () => { | ||
return { | ||
entry: path.join(__dirname, './lib/src/index.js'), | ||
output: { | ||
filename: 'index.umd.js', | ||
path: path.join(__dirname, 'dist'), | ||
// libraryTarget: 'commonjs', | ||
library: { | ||
name: 'sdk_web', | ||
type: 'umd' | ||
} | ||
/** | ||
* Disables webpack top-level function wrapping (appears to be different in Webpack 4 -> 5) | ||
*/ | ||
// iife: false | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
enforce: 'pre', | ||
test: /\.js$/, | ||
loader: 'source-map-loader' | ||
} | ||
] | ||
}, | ||
resolve: { | ||
extensions: ['.tsx', '.ts', '.js'], | ||
fallback: { | ||
crypto: require.resolve('crypto-browserify'), | ||
stream: require.resolve('stream-browserify'), | ||
vm: require.resolve('vm-browserify') | ||
} | ||
}, | ||
devtool: production ? 'source-map' : 'cheap-module-source-map', | ||
mode: production ? 'production' : 'development', | ||
optimization: { | ||
minimizer: [new TerserPlugin()] | ||
} | ||
}; | ||
}; |
Oops, something went wrong.