Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(common): added a flag to opt out of bundling sqlite3 for windows apps #5680

Merged
merged 17 commits into from
Nov 25, 2024

Conversation

Equartey
Copy link
Contributor

@Equartey Equartey commented Nov 19, 2024

Issue #, if available:
#5477

Description of changes:
Adds a flag for a consuming App to opt out of having Amplify DB Common bundle sqlite3 at build time. This avoids name collisions when a downstream app includes sqlite3 which is globally defined. Even when the flag is ON, amplify is able to find and use the dependency.

Usage:
Paste the following near the top of your_project/windows/CMakeLists.txt to opt out of amplify building sqlite3 for windows. Example is also shown in files changed.

set(USE_CUSTOM_SQLITE3 ON)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Equartey Equartey requested a review from a team as a code owner November 19, 2024 17:57
@Equartey Equartey changed the title Fix/windows cmake namespace fix(common): namespace sqlite3 within windows cmake Nov 19, 2024
@Equartey Equartey changed the title fix(common): namespace sqlite3 within windows cmake fix(common): added a flag to opt out of bundling sqlite3 for windows apps Nov 22, 2024
@Equartey Equartey merged commit bc314f6 into main Nov 25, 2024
59 checks passed
@Equartey Equartey deleted the fix/windows-cmake-namespace branch November 25, 2024 17:13
Equartey added a commit that referenced this pull request Nov 25, 2024
### Fixes
- fix(authenticator): recover from exceptions during reset password flow ([#5672](#5672))
- fix(common): added a flag to opt out of bundling sqlite3 for windows apps ([#5680](#5680))
- fix(storage): Only allow 1 batch to run at a time ([#5704](#5704))

Updated-Components: amplify_lints, Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
Equartey added a commit that referenced this pull request Nov 25, 2024
### Fixes
- fix(authenticator): recover from exceptions during reset password flow ([#5672](#5672))
- fix(common): added a flag to opt out of bundling sqlite3 for windows apps ([#5680](#5680))
- fix(storage): Only allow 1 batch to run at a time ([#5704](#5704))

Updated-Components: amplify_lints, Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
Equartey added a commit that referenced this pull request Nov 26, 2024
### Fixes
- fix(authenticator): recover from exceptions during reset password flow ([#5672](#5672))
- fix(common): added a flag to opt out of bundling sqlite3 for windows apps ([#5680](#5680))
- fix(storage): Only allow 1 batch to run at a time ([#5704](#5704))

Updated-Components: amplify_lints, Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
Equartey added a commit that referenced this pull request Nov 26, 2024
### Fixes
- fix(authenticator): recover from exceptions during reset password flow ([#5672](#5672))
- fix(common): added a flag to opt out of bundling sqlite3 for windows apps ([#5680](#5680))
- fix(storage): Only allow 1 batch to run at a time ([#5704](#5704))

Updated-Components: amplify_lints, Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants