Skip to content

Commit c9fd328

Browse files
committed
Initial structure + tests
1 parent cfbf2f2 commit c9fd328

File tree

103 files changed

+145
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+145
-165
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+1-1

CONTRIBUTING.md

+6-6

README.md

+12-12

geocoder/android/settings.gradle

-1
This file was deleted.

geocoder/ios/Classes/GeocoderPlugin.h

-4
This file was deleted.

geocoder_platform_interface/LICENSE

-21
This file was deleted.

geocoder_platform_interface/lib/geocoder_platform_interface.dart

-2
This file was deleted.
File renamed without changes.
File renamed without changes.

geocoding/LICENSE

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO: Add your license here.

geocoder/README.md renamed to geocoding/README.md

+12-12
File renamed without changes.

geocoder/android/build.gradle renamed to geocoding/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
group 'com.baseflow.geocoder'
1+
group 'com.baseflow.geocoding'
22
version '1.0'
33

44
buildscript {

geocoding/android/settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'geocoding'
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.baseflow.geocoder">
2+
package="com.baseflow.geocoding">
33
</manifest>

geocoder/android/src/main/java/com/baseflow/geocoder/GeocoderPlugin.java renamed to geocoding/android/src/main/java/com/baseflow/geocoding/GeocodingPlugin.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baseflow.geocoder;
1+
package com.baseflow.geocoding;
22

33
import androidx.annotation.NonNull;
44

@@ -9,8 +9,8 @@
99
import io.flutter.plugin.common.MethodChannel.Result;
1010
import io.flutter.plugin.common.PluginRegistry.Registrar;
1111

12-
/** GeocoderPlugin */
13-
public class GeocoderPlugin implements FlutterPlugin, MethodCallHandler {
12+
/** GeocodingPlugin */
13+
public class GeocodingPlugin implements FlutterPlugin, MethodCallHandler {
1414
/// The MethodChannel that will the communication between Flutter and native Android
1515
///
1616
/// This local reference serves to register the plugin with the Flutter Engine and unregister it
@@ -19,7 +19,7 @@ public class GeocoderPlugin implements FlutterPlugin, MethodCallHandler {
1919

2020
@Override
2121
public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) {
22-
channel = new MethodChannel(flutterPluginBinding.getFlutterEngine().getDartExecutor(), "geocoder");
22+
channel = new MethodChannel(flutterPluginBinding.getFlutterEngine().getDartExecutor(), "geocoding");
2323
channel.setMethodCallHandler(this);
2424
}
2525

@@ -33,8 +33,8 @@ public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBindin
3333
// depending on the user's project. onAttachedToEngine or registerWith must both be defined
3434
// in the same class.
3535
public static void registerWith(Registrar registrar) {
36-
final MethodChannel channel = new MethodChannel(registrar.messenger(), "geocoder");
37-
channel.setMethodCallHandler(new GeocoderPlugin());
36+
final MethodChannel channel = new MethodChannel(registrar.messenger(), "geocoding");
37+
channel.setMethodCallHandler(new GeocodingPlugin());
3838
}
3939

4040
@Override
File renamed without changes.
File renamed without changes.

geocoder/example/README.md renamed to geocoding/example/README.md

+2-2

geocoder/example/android/app/build.gradle renamed to geocoding/example/android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ android {
3333

3434
defaultConfig {
3535
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
36-
applicationId "com.baseflow.geocoder_example"
36+
applicationId "com.baseflow.geocoding_example"
3737
minSdkVersion 16
3838
targetSdkVersion 28
3939
versionCode flutterVersionCode.toInteger()

geocoder/example/android/app/src/debug/AndroidManifest.xml renamed to geocoding/example/android/app/src/debug/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.baseflow.geocoder_example">
2+
package="com.baseflow.geocoding_example">
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->

geocoder/example/android/app/src/main/AndroidManifest.xml renamed to geocoding/example/android/app/src/main/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.baseflow.geocoder_example">
2+
package="com.baseflow.geocoding_example">
33
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
44
calls FlutterMain.startInitialization(this); in its onCreate method.
55
In most cases you can leave this as-is, but you if you want to provide
66
additional functionality it is fine to subclass or reimplement
77
FlutterApplication and put your custom class here. -->
88
<application
99
android:name="io.flutter.app.FlutterApplication"
10-
android:label="geocoder_example"
10+
android:label="geocoding_example"
1111
android:icon="@mipmap/ic_launcher">
1212
<activity
1313
android:name=".MainActivity"

geocoder/example/android/app/src/main/java/com/baseflow/geocoder_example/MainActivity.java renamed to geocoding/example/android/app/src/main/java/com/baseflow/geocoding_example/MainActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baseflow.geocoder_example;
1+
package com.baseflow.geocoding_example;
22

33
import io.flutter.embedding.android.FlutterActivity;
44

geocoder/example/android/app/src/profile/AndroidManifest.xml renamed to geocoding/example/android/app/src/profile/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.baseflow.geocoder_example">
2+
package="com.baseflow.geocoding_example">
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->
File renamed without changes.
File renamed without changes.

geocoder/example/ios/Runner.xcodeproj/project.pbxproj renamed to geocoding/example/ios/Runner.xcodeproj/project.pbxproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@
311311
"$(inherited)",
312312
"$(PROJECT_DIR)/Flutter",
313313
);
314-
PRODUCT_BUNDLE_IDENTIFIER = com.baseflow.geocoderExample;
314+
PRODUCT_BUNDLE_IDENTIFIER = com.baseflow.geocodingExample;
315315
PRODUCT_NAME = "$(TARGET_NAME)";
316316
VERSIONING_SYSTEM = "apple-generic";
317317
};
@@ -441,7 +441,7 @@
441441
"$(inherited)",
442442
"$(PROJECT_DIR)/Flutter",
443443
);
444-
PRODUCT_BUNDLE_IDENTIFIER = com.baseflow.geocoderExample;
444+
PRODUCT_BUNDLE_IDENTIFIER = com.baseflow.geocodingExample;
445445
PRODUCT_NAME = "$(TARGET_NAME)";
446446
VERSIONING_SYSTEM = "apple-generic";
447447
};
@@ -464,7 +464,7 @@
464464
"$(inherited)",
465465
"$(PROJECT_DIR)/Flutter",
466466
);
467-
PRODUCT_BUNDLE_IDENTIFIER = com.baseflow.geocoderExample;
467+
PRODUCT_BUNDLE_IDENTIFIER = com.baseflow.geocodingExample;
468468
PRODUCT_NAME = "$(TARGET_NAME)";
469469
VERSIONING_SYSTEM = "apple-generic";
470470
};

geocoder/example/ios/Runner/Info.plist renamed to geocoding/example/ios/Runner/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundleName</key>
14-
<string>geocoder_example</string>
14+
<string>geocoding_example</string>
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>

geocoder/example/lib/main.dart renamed to geocoding/example/lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
22
import 'dart:async';
33

44
import 'package:flutter/services.dart';
5-
import 'package:geocoder/geocoder.dart';
5+
import 'package:geocoding/geocoding.dart';
66

77
void main() {
88
runApp(MyApp());
@@ -27,7 +27,7 @@ class _MyAppState extends State<MyApp> {
2727
String platformVersion;
2828
// Platform messages may fail, so we use a try/catch PlatformException.
2929
try {
30-
platformVersion = await Geocoder.platformVersion;
30+
platformVersion = await Geocoding.platformVersion;
3131
} on PlatformException {
3232
platformVersion = 'Failed to get platform version.';
3333
}

0 commit comments

Comments
 (0)