diff --git a/ios/Podfile b/ios/Podfile index 3e44f9c..53332ae 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -40,5 +40,8 @@ end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) + target.build_configurations.each do |config| + config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET' + end end end diff --git a/ios/Podfile.lock b/ios/Podfile.lock index df72cec..550a32c 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -165,6 +165,6 @@ SPEC CHECKSUMS: RecaptchaInterop: 7d1a4a01a6b2cb1610a47ef3f85f0c411434cb21 sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a -PODFILE CHECKSUM: a57f30d18f102dd3ce366b1d62a55ecbef2158e5 +PODFILE CHECKSUM: 41c353e343192e6a9e83579ce8eddd1e313ec1a0 COCOAPODS: 1.13.0 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 4a96d94..292cda5 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -355,7 +355,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\n#!/bin/bash\nPATH=${PATH}:$FLUTTER_ROOT/bin:$HOME/.pub-cache/bin\nflutterfire bundle-service-file --plist-destination=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app --build-configuration=${CONFIGURATION} --platform=ios --apple-project-path=${SRCROOT}\n"; + shellScript = "environment=\"default\"\n\n# Regex to extract the scheme name from the Build Configuration\n# We have named our Build Configurations as Debug-dev, Debug-prod etc.\n# Here, dev and prod are the scheme names. This kind of naming is required by Flutter for flavors to work.\n# We are using the $CONFIGURATION variable available in the XCode build environment to extract \n# the environment (or flavor)\n# For eg.\n# If CONFIGURATION=\"Debug-prod\", then environment will get set to \"prod\".\nif [[ $CONFIGURATION =~ -([^-]*)$ ]]; then\necho $CONFIGURATION\nenvironment=${BASH_REMATCH[1]}\nfi\n\necho $environment\n\n# Name and path of the resource we're copying\nGOOGLESERVICE_INFO_PLIST=GoogleService-Info.plist\nGOOGLESERVICE_INFO_FILE=${PROJECT_DIR}/config/${environment}/${GOOGLESERVICE_INFO_PLIST}\n\n# Make sure GoogleService-Info.plist exists\necho \"Looking for ${GOOGLESERVICE_INFO_PLIST} in ${GOOGLESERVICE_INFO_FILE}\"\nif [ ! -f $GOOGLESERVICE_INFO_FILE ]\nthen\necho \"No GoogleService-Info.plist found. Please ensure it's in the proper directory.\"\nexit 1\nfi\n\n# Get a reference to the destination location for the GoogleService-Info.plist\n# This is the default location where Firebase init code expects to find GoogleServices-Info.plist file\nPLIST_DESTINATION=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app\necho \"Will copy ${GOOGLESERVICE_INFO_PLIST} to final destination: ${PLIST_DESTINATION}\"\n\n# Copy over the prod GoogleService-Info.plist for Release builds\ncp \"${GOOGLESERVICE_INFO_FILE}\" \"${PLIST_DESTINATION}\"\n"; }; 9740EEB61CF901F6004384FC /* Run Script */ = { isa = PBXShellScriptBuildPhase; @@ -370,7 +370,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n"; }; A19CFF7DFD49E236FDF37870 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; @@ -525,7 +525,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; GOOGLE_REVERSED_CLIENT_ID = "com.googleusercontent.apps.371448231205-7inrtv982orcdou42vs3sa6gjt89bkbt"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LAUNCH_SCREEN = productionLaunchScreen; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; @@ -663,7 +663,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; GOOGLE_REVERSED_CLIENT_ID = "com.googleusercontent.apps.371448231205-7inrtv982orcdou42vs3sa6gjt89bkbt"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LAUNCH_SCREEN = productionLaunchScreen; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; @@ -714,7 +714,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; GOOGLE_REVERSED_CLIENT_ID = "com.googleusercontent.apps.371448231205-7inrtv982orcdou42vs3sa6gjt89bkbt"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LAUNCH_SCREEN = productionLaunchScreen; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; @@ -829,7 +829,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; GOOGLE_REVERSED_CLIENT_ID = "com.googleusercontent.apps.719956441125-5l1gkghocnakpc462opncdmk8suhf7qm"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LAUNCH_SCREEN = developmentLaunchScreen; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; @@ -924,7 +924,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; GOOGLE_REVERSED_CLIENT_ID = "com.googleusercontent.apps.719956441125-5l1gkghocnakpc462opncdmk8suhf7qm"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LAUNCH_SCREEN = developmentLaunchScreen; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; @@ -1019,7 +1019,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; GOOGLE_REVERSED_CLIENT_ID = "com.googleusercontent.apps.719956441125-5l1gkghocnakpc462opncdmk8suhf7qm"; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LAUNCH_SCREEN = developmentLaunchScreen; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; diff --git a/lib/features/search/data/search_repository.dart b/lib/features/search/data/search_repository.dart index 1c4ee2a..5e395e2 100644 --- a/lib/features/search/data/search_repository.dart +++ b/lib/features/search/data/search_repository.dart @@ -2,7 +2,6 @@ import 'package:hive/hive.dart'; import 'package:varanasi_mobile_app/features/search/data/search_data_provider.dart'; import 'package:varanasi_mobile_app/features/search/data/top_search_result/top_search_result.dart'; import 'package:varanasi_mobile_app/utils/constants/strings.dart'; -import 'package:varanasi_mobile_app/utils/logger.dart'; import 'package:varanasi_mobile_app/utils/mixins/cachable_mixin.dart'; import 'search_result/data.dart'; @@ -22,8 +21,6 @@ class SearchRepository with CacheableService { @override String get cacheBoxName => AppStrings.commonCacheBoxName; - Logger get _logger => Logger.instance; - final Map _searchResultsCache = {}; Future fetchTopSearchResults() async { diff --git a/lib/pages/my_home_page.dart b/lib/pages/my_home_page.dart deleted file mode 100644 index b6703ce..0000000 --- a/lib/pages/my_home_page.dart +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:flutter/material.dart'; -import '../flavors.dart'; - -class MyHomePage extends StatelessWidget { - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar( - title: Text(F.title), - ), - body: Center( - child: Text( - 'Hello ${F.title}', - ), - ), - ); - } -}