Skip to content

Expand autocomplete/place models and fix web empty results#134

Open
radvansky-tomas wants to merge 11 commits intomatanshukry:masterfrom
radvansky-tomas:master
Open

Expand autocomplete/place models and fix web empty results#134
radvansky-tomas wants to merge 11 commits intomatanshukry:masterfrom
radvansky-tomas:master

Conversation

@radvansky-tomas
Copy link
Copy Markdown

  • regenerate HTTP + platform-interface Freezed/json types for autocomplete, places, bounds, timing, photos, reviews, etc.
  • update Android/iOS/web/plugin layers to consume new models and ensure web method returns populated results instead of [].
  • Add better web tests for local dev

@evanrich
Copy link
Copy Markdown

evanrich commented Feb 4, 2026

does this fix the issue with newer versions above 0.2.1 on web showing null for everything?

KamiloChinome added a commit to KamiloChinome/google_places_sdk_plus that referenced this pull request Feb 20, 2026
…fix web empty results, fix Android/iOS build

From: matanshukry#134
Author: radvansky-tomas

Changes:
- Android: minSdk 21->24, proguard rules, smart PlacesClient reinit, initializeWithNewPlacesApiEnabled
- iOS: GooglePlaces 8.5->10.1, platform 14->16, PascalCase + new fields in placeFieldFromStr
- Web: explicit AutocompleteSessionToken, clear session after fetchPlace (billing fix), 375 lines of tests
- Platform interface + HTTP + Web: add useNewApi param to initialize()/updateSettings()
- Method channel: pass useNewApi to native layer
- Generated: all .freezed.dart and .g.dart regenerated for Dart 3
- .gitignore: commit generated files for platform_interface and http (needed for git dependencies)
- example/pubspec.yaml: use path: dependencies for local development
KamiloChinome added a commit to KamiloChinome/google_places_sdk_plus that referenced this pull request Feb 20, 2026
…blished packages

- platform_interface: ^0.3.4 -> ^0.4.0
- web/android/windows/linux/macos: ^0.2.2 -> ^0.3.0
These versions were already released and match what PR matanshukry#134 introduced.
@KamiloChinome
Copy link
Copy Markdown

@radvansky-tomas @evanrich

Since this repository appears to be inactive and the Google Places API (Legacy) deprecation is approaching, I’ve created a maintained fork to merge pending PRs and add critical updates needed for modern Flutter projects.

My primary goal is to keep the community unblocked. If the original author returns, I would be more than happy to merge all these improvements back into this repository. In the meantime, I have published the updated package as google_places_sdk_plus:

🚀 Key Improvements in this Fork:

  • High Compatibility: The migration is designed to be seamless. Although it includes many new features, the core API remains the same, so you won't struggle with breaking changes when switching packages.
  • Places API (New) Support: Expanded models and updated native Android/iOS implementations for full parity with the latest Google SDKs.
  • iOS SPM Migration: Added native Swift Package Manager (SPM) support to future-proof against the upcoming CocoaPods deprecation.
  • Missing Features Exposed: Fully implemented and exposed searchByText and searchNearby across Android, iOS, Web, and Desktop platforms.
  • Critical Bug Fixes: Fixed the Android build issue (useNewApi), resolved Web parsing bugs (empty arrays/null reviews), and updated all platform implementations.

I will be actively maintaining this version and I'm happy to help with any issues or PRs. Feel free to give it a try!

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