diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 91b5bea..f3f7cab 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -100,9 +100,9 @@ updates: open-pull-requests-limit: 10 - package-ecosystem: "pub" - directory: "/geocoding_ios" + directory: "/geocoding_darwin" commit-message: - prefix: "[geocoding_ios]" + prefix: "[geocoding_darwin]" schedule: interval: "weekly" reviewers: @@ -110,9 +110,9 @@ updates: open-pull-requests-limit: 10 - package-ecosystem: "pub" - directory: "/geocoding_ios/example" + directory: "/geocoding_darwin/example" commit-message: - prefix: "[geocoding_ios]" + prefix: "[geocoding_darwin]" schedule: interval: "weekly" reviewers: diff --git a/.github/workflows/geocoding_ios.yaml b/.github/workflows/geocoding_darwin.yaml similarity index 85% rename from .github/workflows/geocoding_ios.yaml rename to .github/workflows/geocoding_darwin.yaml index 4eef06d..f37f7ac 100644 --- a/.github/workflows/geocoding_ios.yaml +++ b/.github/workflows/geocoding_darwin.yaml @@ -1,6 +1,6 @@ # This is a basic workflow to help you get started with Actions -name: geocoding_ios +name: geocoding_darwin # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the main branch @@ -8,14 +8,14 @@ on: push: branches: [ main ] paths: - - 'geocoding_ios/**' - - '.github/workflows/geocoding_ios.yaml' + - 'geocoding_darwin/**' + - '.github/workflows/geocoding_darwin.yaml' pull_request: branches: [ main ] paths: - - 'geocoding_ios/**' - - '.github/workflows/geocoding_ios.yaml' + - 'geocoding_darwin/**' + - '.github/workflows/geocoding_darwin.yaml' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -26,8 +26,8 @@ jobs: runs-on: macos-latest env: - source-directory: ./geocoding_ios - example-directory: ./geocoding_ios/example + source-directory: ./geocoding_darwin + example-directory: ./geocoding_darwin/example # Steps represent a sequence of tasks that will be executed as part of the job steps: diff --git a/geocoding_ios/.metadata b/geocoding_darwin/.metadata similarity index 100% rename from geocoding_ios/.metadata rename to geocoding_darwin/.metadata diff --git a/geocoding_darwin/CHANGELOG.md b/geocoding_darwin/CHANGELOG.md new file mode 100644 index 0000000..498819b --- /dev/null +++ b/geocoding_darwin/CHANGELOG.md @@ -0,0 +1,3 @@ +## 3.1.0 + +- Renames the package previously published as [`geocoding_ios`](https://pub.dev/packages/geocoding_ios) diff --git a/geocoding_ios/LICENSE b/geocoding_darwin/LICENSE similarity index 100% rename from geocoding_ios/LICENSE rename to geocoding_darwin/LICENSE diff --git a/geocoding_ios/README.md b/geocoding_darwin/README.md similarity index 62% rename from geocoding_ios/README.md rename to geocoding_darwin/README.md index b607089..7f1abf1 100644 --- a/geocoding_ios/README.md +++ b/geocoding_darwin/README.md @@ -1,11 +1,12 @@ -# geocoding\_ios +# geocoding_darwin The iOS implementation of [`geocoding`][1]. ## Usage This package is [endorsed][2], which means you can simply use `geocoding` -normally. This package will be automatically included in your app when you do. +normally. This package will be automatically included in your app when you do, +so you do not need to add it to your `pubspec.yaml`. [1]: https://pub.dev/packages/geocoding -[2]: https://flutter.dev/docs/development/packages-and-plugins/developing-packages#endorsed-federated-plugin \ No newline at end of file +[2]: https://flutter.dev/to/endorsed-federated-plugin diff --git a/geocoding_ios/analysis_options.yaml b/geocoding_darwin/analysis_options.yaml similarity index 100% rename from geocoding_ios/analysis_options.yaml rename to geocoding_darwin/analysis_options.yaml diff --git a/geocoding_ios/ios/Assets/.gitkeep b/geocoding_darwin/darwin/Assets/.gitkeep similarity index 100% rename from geocoding_ios/ios/Assets/.gitkeep rename to geocoding_darwin/darwin/Assets/.gitkeep diff --git a/geocoding_ios/ios/Classes/Extensions/CLPlacemarkExtensions.h b/geocoding_darwin/darwin/Classes/Extensions/CLPlacemarkExtensions.h similarity index 100% rename from geocoding_ios/ios/Classes/Extensions/CLPlacemarkExtensions.h rename to geocoding_darwin/darwin/Classes/Extensions/CLPlacemarkExtensions.h diff --git a/geocoding_ios/ios/Classes/Extensions/CLPlacemarkExtensions.m b/geocoding_darwin/darwin/Classes/Extensions/CLPlacemarkExtensions.m similarity index 100% rename from geocoding_ios/ios/Classes/Extensions/CLPlacemarkExtensions.m rename to geocoding_darwin/darwin/Classes/Extensions/CLPlacemarkExtensions.m diff --git a/geocoding_ios/ios/Classes/GeocodingHandler.h b/geocoding_darwin/darwin/Classes/GeocodingHandler.h similarity index 100% rename from geocoding_ios/ios/Classes/GeocodingHandler.h rename to geocoding_darwin/darwin/Classes/GeocodingHandler.h diff --git a/geocoding_ios/ios/Classes/GeocodingHandler.m b/geocoding_darwin/darwin/Classes/GeocodingHandler.m similarity index 100% rename from geocoding_ios/ios/Classes/GeocodingHandler.m rename to geocoding_darwin/darwin/Classes/GeocodingHandler.m diff --git a/geocoding_ios/ios/Classes/GeocodingPlugin.h b/geocoding_darwin/darwin/Classes/GeocodingPlugin.h similarity index 100% rename from geocoding_ios/ios/Classes/GeocodingPlugin.h rename to geocoding_darwin/darwin/Classes/GeocodingPlugin.h diff --git a/geocoding_ios/ios/Classes/GeocodingPlugin.m b/geocoding_darwin/darwin/Classes/GeocodingPlugin.m similarity index 100% rename from geocoding_ios/ios/Classes/GeocodingPlugin.m rename to geocoding_darwin/darwin/Classes/GeocodingPlugin.m diff --git a/geocoding_ios/ios/Resources/PrivacyInfo.xcprivacy b/geocoding_darwin/darwin/Resources/PrivacyInfo.xcprivacy similarity index 100% rename from geocoding_ios/ios/Resources/PrivacyInfo.xcprivacy rename to geocoding_darwin/darwin/Resources/PrivacyInfo.xcprivacy diff --git a/geocoding_ios/ios/geocoding_ios.podspec b/geocoding_darwin/darwin/geocoding_darwin.podspec similarity index 87% rename from geocoding_ios/ios/geocoding_ios.podspec rename to geocoding_darwin/darwin/geocoding_darwin.podspec index 8d3dabb..d943317 100644 --- a/geocoding_ios/ios/geocoding_ios.podspec +++ b/geocoding_darwin/darwin/geocoding_darwin.podspec @@ -3,7 +3,7 @@ # Run `pod lib lint geocoding.podspec' to validate before publishing. # Pod::Spec.new do |s| - s.name = 'geocoding_ios' + s.name = 'geocoding_darwin' s.version = '1.0.5' s.summary = 'A Flutter Geocoding plugin which provides easy geocoding and reverse-geocoding features.' s.description = <<-DESC @@ -20,5 +20,5 @@ A new flutter plugin project. # Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' } - s.resource_bundles = {'geocoding_ios_privacy' => ['Resources/PrivacyInfo.xcprivacy']} + s.resource_bundles = {'geocoding_darwin_privacy' => ['Resources/PrivacyInfo.xcprivacy']} end diff --git a/geocoding_ios/example/.metadata b/geocoding_darwin/example/.metadata similarity index 100% rename from geocoding_ios/example/.metadata rename to geocoding_darwin/example/.metadata diff --git a/geocoding_ios/example/README.md b/geocoding_darwin/example/README.md similarity index 100% rename from geocoding_ios/example/README.md rename to geocoding_darwin/example/README.md diff --git a/geocoding_ios/example/ios/Flutter/AppFrameworkInfo.plist b/geocoding_darwin/example/ios/Flutter/AppFrameworkInfo.plist similarity index 100% rename from geocoding_ios/example/ios/Flutter/AppFrameworkInfo.plist rename to geocoding_darwin/example/ios/Flutter/AppFrameworkInfo.plist diff --git a/geocoding_ios/example/ios/Flutter/Debug.xcconfig b/geocoding_darwin/example/ios/Flutter/Debug.xcconfig similarity index 100% rename from geocoding_ios/example/ios/Flutter/Debug.xcconfig rename to geocoding_darwin/example/ios/Flutter/Debug.xcconfig diff --git a/geocoding_ios/example/ios/Flutter/Release.xcconfig b/geocoding_darwin/example/ios/Flutter/Release.xcconfig similarity index 100% rename from geocoding_ios/example/ios/Flutter/Release.xcconfig rename to geocoding_darwin/example/ios/Flutter/Release.xcconfig diff --git a/geocoding_ios/example/ios/Podfile b/geocoding_darwin/example/ios/Podfile similarity index 100% rename from geocoding_ios/example/ios/Podfile rename to geocoding_darwin/example/ios/Podfile diff --git a/geocoding_ios/example/ios/Runner.xcodeproj/project.pbxproj b/geocoding_darwin/example/ios/Runner.xcodeproj/project.pbxproj similarity index 100% rename from geocoding_ios/example/ios/Runner.xcodeproj/project.pbxproj rename to geocoding_darwin/example/ios/Runner.xcodeproj/project.pbxproj diff --git a/geocoding_ios/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/geocoding_darwin/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from geocoding_ios/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to geocoding_darwin/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/geocoding_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/geocoding_darwin/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from geocoding_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to geocoding_darwin/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/geocoding_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/geocoding_darwin/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from geocoding_ios/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to geocoding_darwin/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/geocoding_ios/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/geocoding_darwin/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from geocoding_ios/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to geocoding_darwin/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/geocoding_ios/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/geocoding_darwin/example/ios/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from geocoding_ios/example/ios/Runner.xcworkspace/contents.xcworkspacedata rename to geocoding_darwin/example/ios/Runner.xcworkspace/contents.xcworkspacedata diff --git a/geocoding_ios/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/geocoding_darwin/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from geocoding_ios/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to geocoding_darwin/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/geocoding_ios/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/geocoding_darwin/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from geocoding_ios/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to geocoding_darwin/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/geocoding_ios/example/ios/Runner/AppDelegate.h b/geocoding_darwin/example/ios/Runner/AppDelegate.h similarity index 100% rename from geocoding_ios/example/ios/Runner/AppDelegate.h rename to geocoding_darwin/example/ios/Runner/AppDelegate.h diff --git a/geocoding_ios/example/ios/Runner/AppDelegate.m b/geocoding_darwin/example/ios/Runner/AppDelegate.m similarity index 100% rename from geocoding_ios/example/ios/Runner/AppDelegate.m rename to geocoding_darwin/example/ios/Runner/AppDelegate.m diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/geocoding_darwin/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/geocoding_darwin/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png diff --git a/geocoding_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/geocoding_darwin/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md similarity index 100% rename from geocoding_ios/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md rename to geocoding_darwin/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md diff --git a/geocoding_ios/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/geocoding_darwin/example/ios/Runner/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from geocoding_ios/example/ios/Runner/Base.lproj/LaunchScreen.storyboard rename to geocoding_darwin/example/ios/Runner/Base.lproj/LaunchScreen.storyboard diff --git a/geocoding_ios/example/ios/Runner/Base.lproj/Main.storyboard b/geocoding_darwin/example/ios/Runner/Base.lproj/Main.storyboard similarity index 100% rename from geocoding_ios/example/ios/Runner/Base.lproj/Main.storyboard rename to geocoding_darwin/example/ios/Runner/Base.lproj/Main.storyboard diff --git a/geocoding_ios/example/ios/Runner/Info.plist b/geocoding_darwin/example/ios/Runner/Info.plist similarity index 100% rename from geocoding_ios/example/ios/Runner/Info.plist rename to geocoding_darwin/example/ios/Runner/Info.plist diff --git a/geocoding_ios/example/ios/Runner/main.m b/geocoding_darwin/example/ios/Runner/main.m similarity index 100% rename from geocoding_ios/example/ios/Runner/main.m rename to geocoding_darwin/example/ios/Runner/main.m diff --git a/geocoding_ios/example/lib/main.dart b/geocoding_darwin/example/lib/main.dart similarity index 97% rename from geocoding_ios/example/lib/main.dart rename to geocoding_darwin/example/lib/main.dart index db90df3..d4da1d8 100644 --- a/geocoding_ios/example/lib/main.dart +++ b/geocoding_darwin/example/lib/main.dart @@ -13,7 +13,7 @@ class BaseflowPluginExample extends StatelessWidget { createMaterialColor(const Color.fromRGBO(48, 49, 60, 1)); /// Constructs the [BaseflowPluginExample] class - BaseflowPluginExample({Key? key}) : super(key: key); + BaseflowPluginExample({super.key}); @override Widget build(BuildContext context) { @@ -89,7 +89,7 @@ class BaseflowPluginExample extends StatelessWidget { /// A Flutter example demonstrating how the [pluginName] plugin could be used class AppHome extends StatefulWidget { /// Constructs the [AppHome] class - const AppHome({Key? key, required this.title}) : super(key: key); + const AppHome({super.key, required this.title}); /// The [title] of the application, which is shown in the application's /// title bar. diff --git a/geocoding_ios/example/lib/plugin_example/geocode_page.dart b/geocoding_darwin/example/lib/plugin_example/geocode_page.dart similarity index 92% rename from geocoding_ios/example/lib/plugin_example/geocode_page.dart rename to geocoding_darwin/example/lib/plugin_example/geocode_page.dart index 138a0f4..16fe824 100644 --- a/geocoding_ios/example/lib/plugin_example/geocode_page.dart +++ b/geocoding_darwin/example/lib/plugin_example/geocode_page.dart @@ -1,12 +1,12 @@ import 'package:flutter/material.dart'; -import 'package:geocoding_ios/geocoding_ios.dart'; +import 'package:geocoding_darwin/geocoding_darwin.dart'; import '../template/globals.dart'; /// Example [Widget] showing the use of the Geocode plugin class GeocodeWidget extends StatefulWidget { /// Constructs the [GeocodeWidget] class - const GeocodeWidget({Key? key}) : super(key: key); + const GeocodeWidget({super.key}); @override State createState() => _GeocodeWidgetState(); @@ -17,7 +17,7 @@ class _GeocodeWidgetState extends State { final TextEditingController _latitudeController = TextEditingController(); final TextEditingController _longitudeController = TextEditingController(); String _output = ''; - final GeocodingIOS _geocodingIOS = GeocodingIOS(); + final GeocodingDarwin _geocodingDarwin = GeocodingDarwin(); @override void initState() { @@ -78,7 +78,7 @@ class _GeocodeWidgetState extends State { final latitude = double.parse(_latitudeController.text); final longitude = double.parse(_longitudeController.text); - _geocodingIOS + _geocodingDarwin .placemarkFromCoordinates(latitude, longitude) .then((placemarks) { var output = 'No results found.'; @@ -111,7 +111,7 @@ class _GeocodeWidgetState extends State { child: ElevatedButton( child: const Text('Look up location'), onPressed: () { - _geocodingIOS + _geocodingDarwin .locationFromAddress(_addressController.text) .then((locations) { var output = 'No results found.'; @@ -132,7 +132,7 @@ class _GeocodeWidgetState extends State { child: ElevatedButton( child: const Text('Is present'), onPressed: () { - _geocodingIOS.isPresent().then((isPresent) { + _geocodingDarwin.isPresent().then((isPresent) { var output = isPresent ? "Geocoder is present" : "Geocoder is not present"; @@ -148,7 +148,7 @@ class _GeocodeWidgetState extends State { child: ElevatedButton( child: const Text('Set locale en_US'), onPressed: () { - _geocodingIOS.setLocaleIdentifier("en_US").then((_) { + _geocodingDarwin.setLocaleIdentifier("en_US").then((_) { setState(() {}); }); })), @@ -159,7 +159,7 @@ class _GeocodeWidgetState extends State { child: ElevatedButton( child: const Text('Set locale nl_NL'), onPressed: () { - _geocodingIOS.setLocaleIdentifier("nl_NL").then((_) { + _geocodingDarwin.setLocaleIdentifier("nl_NL").then((_) { setState(() {}); }); })), diff --git a/geocoding_ios/example/lib/template/globals.dart b/geocoding_darwin/example/lib/template/globals.dart similarity index 100% rename from geocoding_ios/example/lib/template/globals.dart rename to geocoding_darwin/example/lib/template/globals.dart diff --git a/geocoding_ios/example/lib/template/info_page.dart b/geocoding_darwin/example/lib/template/info_page.dart similarity index 98% rename from geocoding_ios/example/lib/template/info_page.dart rename to geocoding_darwin/example/lib/template/info_page.dart index 0df0faa..e664649 100644 --- a/geocoding_ios/example/lib/template/info_page.dart +++ b/geocoding_darwin/example/lib/template/info_page.dart @@ -6,7 +6,7 @@ import 'globals.dart'; /// [StatelessWidget] displaying information about Baseflow class InfoPage extends StatelessWidget { /// Constructs the [InfoPage] class - const InfoPage({Key? key}) : super(key: key); + const InfoPage({super.key}); @override Widget build(BuildContext context) { diff --git a/geocoding_ios/example/pubspec.yaml b/geocoding_darwin/example/pubspec.yaml similarity index 96% rename from geocoding_ios/example/pubspec.yaml rename to geocoding_darwin/example/pubspec.yaml index e12f7c2..fa42e63 100644 --- a/geocoding_ios/example/pubspec.yaml +++ b/geocoding_darwin/example/pubspec.yaml @@ -1,4 +1,4 @@ -name: geocoding_ios_example +name: geocoding_darwin_example description: Demonstrates how to use the geocoding plugin. # The following line prevents the package from being accidentally published to @@ -13,9 +13,9 @@ dependencies: flutter: sdk: flutter - geocoding_ios: + geocoding_darwin: # When depending on this package from a real application you should use: - # geocoding_ios: ^x.y.z + # geocoding_darwin: ^x.y.z # See https://dart.dev/tools/pub/dependencies#version-constraints # The example app is bundled with the plugin so we use a path dependency on # the parent directory to use the current plugin's version. diff --git a/geocoding_ios/example/res/images/baseflow_logo_def_light-02.png b/geocoding_darwin/example/res/images/baseflow_logo_def_light-02.png similarity index 100% rename from geocoding_ios/example/res/images/baseflow_logo_def_light-02.png rename to geocoding_darwin/example/res/images/baseflow_logo_def_light-02.png diff --git a/geocoding_ios/example/res/images/poweredByBaseflowLogoLight.png b/geocoding_darwin/example/res/images/poweredByBaseflowLogoLight.png similarity index 100% rename from geocoding_ios/example/res/images/poweredByBaseflowLogoLight.png rename to geocoding_darwin/example/res/images/poweredByBaseflowLogoLight.png diff --git a/geocoding_ios/example/res/images/poweredByBaseflowLogoLight@2x.png b/geocoding_darwin/example/res/images/poweredByBaseflowLogoLight@2x.png similarity index 100% rename from geocoding_ios/example/res/images/poweredByBaseflowLogoLight@2x.png rename to geocoding_darwin/example/res/images/poweredByBaseflowLogoLight@2x.png diff --git a/geocoding_ios/example/res/images/poweredByBaseflowLogoLight@3x.png b/geocoding_darwin/example/res/images/poweredByBaseflowLogoLight@3x.png similarity index 100% rename from geocoding_ios/example/res/images/poweredByBaseflowLogoLight@3x.png rename to geocoding_darwin/example/res/images/poweredByBaseflowLogoLight@3x.png diff --git a/geocoding_ios/lib/geocoding_ios.dart b/geocoding_darwin/lib/geocoding_darwin.dart similarity index 94% rename from geocoding_ios/lib/geocoding_ios.dart rename to geocoding_darwin/lib/geocoding_darwin.dart index 234dbb6..fd9d667 100644 --- a/geocoding_ios/lib/geocoding_ios.dart +++ b/geocoding_darwin/lib/geocoding_darwin.dart @@ -6,10 +6,10 @@ import 'package:geocoding_platform_interface/geocoding_platform_interface.dart'; const MethodChannel _channel = MethodChannel('flutter.baseflow.com/geocoding'); /// An implementation of [GeocodingPlatform] for iOS. -class GeocodingIOS extends GeocodingPlatform { +class GeocodingDarwin extends GeocodingPlatform { /// Registers this class as the default instance of [GeocodingPlatform]. static void registerWith() { - GeocodingPlatform.instance = GeocodingIOS(); + GeocodingPlatform.instance = GeocodingDarwin(); } String? _localeIdentifier; diff --git a/geocoding_ios/pubspec.yaml b/geocoding_darwin/pubspec.yaml similarity index 88% rename from geocoding_ios/pubspec.yaml rename to geocoding_darwin/pubspec.yaml index fc0cb41..cb2c29f 100644 --- a/geocoding_ios/pubspec.yaml +++ b/geocoding_darwin/pubspec.yaml @@ -1,7 +1,7 @@ -name: geocoding_ios +name: geocoding_darwin description: A Flutter Geocoding plugin which provides easy geocoding and reverse-geocoding features. -version: 3.0.1 -repository: https://github.com/baseflow/flutter-geocoding/tree/main/geocoding_ios +version: 3.1.0 +repository: https://github.com/baseflow/flutter-geocoding/tree/main/geocoding_darwin issue_tracker: https://github.com/Baseflow/flutter-geocoding/issues environment: @@ -36,4 +36,5 @@ flutter: platforms: ios: pluginClass: GeocodingPlugin - dartPluginClass: GeocodingIOS + dartPluginClass: GeocodingDarwin + sharedDarwinSource: true diff --git a/geocoding_ios/test/geocoding_test.dart b/geocoding_darwin/test/geocoding_test.dart similarity index 92% rename from geocoding_ios/test/geocoding_test.dart rename to geocoding_darwin/test/geocoding_test.dart index b87799a..a2f5953 100644 --- a/geocoding_ios/test/geocoding_test.dart +++ b/geocoding_darwin/test/geocoding_test.dart @@ -1,6 +1,6 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:geocoding_ios/geocoding_ios.dart'; +import 'package:geocoding_darwin/geocoding_darwin.dart'; import 'package:geocoding_platform_interface/geocoding_platform_interface.dart'; final mockLocation = Location( @@ -40,8 +40,8 @@ void main() { }); test('registers instance', () { - GeocodingIOS.registerWith(); - expect(GeocodingPlatform.instance, isA()); + GeocodingDarwin.registerWith(); + expect(GeocodingPlatform.instance, isA()); }); group('GeocodingAndroid', () { @@ -55,7 +55,7 @@ void main() { ]); }); - final geocoding = GeocodingIOS(); + final geocoding = GeocodingDarwin(); final locations = await (geocoding.locationFromAddress('')); expect( @@ -80,7 +80,7 @@ void main() { ]); }); - final geocoding = GeocodingIOS(); + final geocoding = GeocodingDarwin(); final locations = await (geocoding.placemarkFromCoordinates(0, 0)); expect( diff --git a/geocoding_ios/CHANGELOG.md b/geocoding_ios/CHANGELOG.md deleted file mode 100644 index ffaa32c..0000000 --- a/geocoding_ios/CHANGELOG.md +++ /dev/null @@ -1,28 +0,0 @@ -## 3.0.1 - -* Adds privacy manifest. - -## 3.0.0 - -* **BREAKING CHANGES**: - * Removes the `localeIdentifier` argument from all methods. Use method `setLocaleIdentifier` to configure the locale. - * Removes old iOS version checks and expects iOS 12 and above. (minimal iOS version is 12 per 2.2.0) -* Fixes to configure the locale. -* Updated example app with locale example. - -## 2.3.0 - -* Implements `isPresent` that always returns true. - -## 2.2.0 - -* Updates `geocoding_platform_interface` to version 3.1.0. -* Updates minimal iOS version of the example application to 12. - -## 2.1.1 - -* Removes obsolete version check in `toPlacemarkDictionary`. This removes kABPersonAddressStreetKey deprecation warning from occurring. - -## 2.1.0 - -* Splits from `geocoding` as a federated implementation.