Skip to content

Commit

Permalink
feat(places): add full-text search (#394)
Browse files Browse the repository at this point in the history
* feat(places): add full-text search to places

* fix: type errors

* feat(places): enable link to EventPlacesScreen from ExamScreen

* fix(places): event places query wrongly overwriting single place cache
  • Loading branch information
umbopepato authored Dec 7, 2023
1 parent 5fc507e commit 1dc6bd0
Show file tree
Hide file tree
Showing 49 changed files with 5,425 additions and 6,406 deletions.
2 changes: 2 additions & 0 deletions assets/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"loading": "Loading",
"location": "Location",
"logout": "Logout",
"mightTakeAWhile": "This might take a while",
"minutes": "Minutes",
"navigate": "Navigate",
"newItems": "New item",
Expand Down Expand Up @@ -583,6 +584,7 @@
"noPlacesFound": "No places found",
"searchCategories": "Search categories",
"title": "Places",
"unwrappingMap": "Unwrapping the map",
"viewWholeCampus": "View the whole campus"
},
"placesSearchScreen": {
Expand Down
2 changes: 2 additions & 0 deletions assets/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"loading": "Caricamento",
"location": "Sede",
"logout": "Logout",
"mightTakeAWhile": "Potrebbe volerci un momento",
"minutes": "Minuti",
"navigate": "Naviga",
"newItems": "Nuovo elemento",
Expand Down Expand Up @@ -583,6 +584,7 @@
"noPlacesFound": "Nessun posto trovato",
"searchCategories": "Cerca categorie",
"title": "Luoghi",
"unwrappingMap": "Aprendo la mappa",
"viewWholeCampus": "Vedi tutta la sede"
},
"placesSearchScreen": {
Expand Down
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = function (api) {
return {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
'@babel/plugin-proposal-export-namespace-from',
[
'module-resolver',
{
Expand Down
19 changes: 4 additions & 15 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ prepare_react_native_project!
# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
$RNMapboxMapsImpl = 'mapbox'
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled(["Debug"], { 'Flipper' => '0.189.0' })
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled(["Debug"], { 'Flipper' => '0.233.0' })
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
Expand Down Expand Up @@ -42,7 +42,7 @@ target 'students' do
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
# :flipper_configuration => flipper_config,
:flipper_configuration => flipper_config,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
Expand All @@ -69,20 +69,9 @@ target 'students' do
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
end
end

# NOTE: Change IPHONEOS_DEPLOYMENT_TARGET to 12.4.
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
end
end

installer.pods_project.targets.each do |target|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
Expand Down
Loading

0 comments on commit 1dc6bd0

Please sign in to comment.