Skip to content

Commit

Permalink
Update channel name to com.julienvignali/phone_number
Browse files Browse the repository at this point in the history
  • Loading branch information
nashfive committed Nov 26, 2019
1 parent ff484d9 commit cf7f0ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public class PhoneNumberPlugin implements MethodCallHandler {

public static void registerWith(Registrar registrar) {
final MethodChannel channel = new MethodChannel(registrar.messenger(), "phone_number");
final MethodChannel channel = new MethodChannel(registrar.messenger(), "com.julienvignali/phone_number");
channel.setMethodCallHandler(new PhoneNumberPlugin());
}

Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/SwiftPhoneNumberPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PhoneNumberKit

public class SwiftPhoneNumberPlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
let channel = FlutterMethodChannel(name: "phone_number", binaryMessenger: registrar.messenger())
let channel = FlutterMethodChannel(name: "com.julienvignali/phone_number", binaryMessenger: registrar.messenger())
let instance = SwiftPhoneNumberPlugin()
registrar.addMethodCallDelegate(instance, channel: channel)
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/phone_number.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:async';
import 'package:flutter/services.dart';

class PhoneNumber {
static const MethodChannel _channel = const MethodChannel('phone_number');
static const _channel = MethodChannel('com.julienvignali/phone_number');

static Future<dynamic> parse(String string, {String region}) async {
final args = {"string": string, "region": region};
Expand Down

0 comments on commit cf7f0ec

Please sign in to comment.