├── .gitignore
├── LICENSE
├── README.md
├── all_lint_rules.yaml
├── analysis_options.yaml
├── melos.yaml
├── packages
├── flutter_libphonenumber
│ ├── .metadata
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── example
│ │ ├── .metadata
│ │ ├── README.md
│ │ ├── android
│ │ │ ├── .gitignore
│ │ │ ├── app
│ │ │ │ ├── build.gradle
│ │ │ │ └── src
│ │ │ │ │ ├── debug
│ │ │ │ │ └── AndroidManifest.xml
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── kotlin
│ │ │ │ │ │ └── com
│ │ │ │ │ │ │ └── example
│ │ │ │ │ │ │ └── flutter_libphonenumber_example
│ │ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── drawable-v21
│ │ │ │ │ │ └── launch_background.xml
│ │ │ │ │ │ ├── drawable
│ │ │ │ │ │ └── launch_background.xml
│ │ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── values-night
│ │ │ │ │ │ └── styles.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ └── styles.xml
│ │ │ │ │ └── profile
│ │ │ │ │ └── AndroidManifest.xml
│ │ │ ├── build.gradle
│ │ │ ├── gradle.properties
│ │ │ ├── gradle
│ │ │ │ └── wrapper
│ │ │ │ │ └── gradle-wrapper.properties
│ │ │ └── settings.gradle
│ │ ├── ios
│ │ │ ├── .gitignore
│ │ │ ├── Flutter
│ │ │ │ ├── AppFrameworkInfo.plist
│ │ │ │ ├── Debug.xcconfig
│ │ │ │ └── Release.xcconfig
│ │ │ ├── Podfile
│ │ │ ├── Runner.xcodeproj
│ │ │ │ ├── project.pbxproj
│ │ │ │ ├── project.xcworkspace
│ │ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ │ └── xcshareddata
│ │ │ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ │ │ └── WorkspaceSettings.xcsettings
│ │ │ │ └── xcshareddata
│ │ │ │ │ └── xcschemes
│ │ │ │ │ └── Runner.xcscheme
│ │ │ ├── Runner.xcworkspace
│ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ └── xcshareddata
│ │ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ │ └── WorkspaceSettings.xcsettings
│ │ │ └── Runner
│ │ │ │ ├── AppDelegate.swift
│ │ │ │ ├── Assets.xcassets
│ │ │ │ ├── AppIcon.appiconset
│ │ │ │ │ ├── Contents.json
│ │ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ │ └── LaunchImage.imageset
│ │ │ │ │ ├── Contents.json
│ │ │ │ │ ├── LaunchImage.png
│ │ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ │ └── README.md
│ │ │ │ ├── Base.lproj
│ │ │ │ ├── LaunchScreen.storyboard
│ │ │ │ └── Main.storyboard
│ │ │ │ ├── Info.plist
│ │ │ │ └── Runner-Bridging-Header.h
│ │ ├── lib
│ │ │ └── main.dart
│ │ ├── pubspec.yaml
│ │ └── web
│ │ │ ├── favicon.png
│ │ │ ├── icons
│ │ │ ├── Icon-192.png
│ │ │ ├── Icon-512.png
│ │ │ ├── Icon-maskable-192.png
│ │ │ └── Icon-maskable-512.png
│ │ │ ├── index.html
│ │ │ └── manifest.json
│ ├── lib
│ │ └── flutter_libphonenumber.dart
│ └── pubspec.yaml
├── flutter_libphonenumber_android
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── android
│ │ ├── .gitignore
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ ├── settings.gradle
│ │ └── src
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ └── kotlin
│ │ │ └── com
│ │ │ └── bottlepay
│ │ │ └── flutter_libphonenumber
│ │ │ └── FlutterLibphonenumberPlugin.kt
│ ├── example
│ │ ├── README.md
│ │ ├── android
│ │ │ ├── .gitignore
│ │ │ ├── app
│ │ │ │ ├── build.gradle
│ │ │ │ └── src
│ │ │ │ │ ├── debug
│ │ │ │ │ └── AndroidManifest.xml
│ │ │ │ │ ├── main
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ ├── kotlin
│ │ │ │ │ │ └── com
│ │ │ │ │ │ │ └── bottlepay
│ │ │ │ │ │ │ └── flutter_libphonenumber_android_example
│ │ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ │ └── res
│ │ │ │ │ │ ├── drawable-v21
│ │ │ │ │ │ └── launch_background.xml
│ │ │ │ │ │ ├── drawable
│ │ │ │ │ │ └── launch_background.xml
│ │ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ │ ├── values-night
│ │ │ │ │ │ └── styles.xml
│ │ │ │ │ │ └── values
│ │ │ │ │ │ └── styles.xml
│ │ │ │ │ └── profile
│ │ │ │ │ └── AndroidManifest.xml
│ │ │ ├── build.gradle
│ │ │ ├── gradle.properties
│ │ │ ├── gradle
│ │ │ │ └── wrapper
│ │ │ │ │ └── gradle-wrapper.properties
│ │ │ └── settings.gradle
│ │ ├── lib
│ │ │ └── main.dart
│ │ └── pubspec.yaml
│ ├── lib
│ │ └── flutter_libphonenumber_android.dart
│ └── pubspec.yaml
├── flutter_libphonenumber_ios
│ ├── .metadata
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── example
│ │ ├── README.md
│ │ ├── ios
│ │ │ ├── .gitignore
│ │ │ ├── Flutter
│ │ │ │ ├── AppFrameworkInfo.plist
│ │ │ │ ├── Debug.xcconfig
│ │ │ │ └── Release.xcconfig
│ │ │ ├── Podfile
│ │ │ ├── Runner.xcodeproj
│ │ │ │ ├── project.pbxproj
│ │ │ │ ├── project.xcworkspace
│ │ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ │ └── xcshareddata
│ │ │ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ │ │ └── WorkspaceSettings.xcsettings
│ │ │ │ └── xcshareddata
│ │ │ │ │ └── xcschemes
│ │ │ │ │ └── Runner.xcscheme
│ │ │ ├── Runner.xcworkspace
│ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ └── xcshareddata
│ │ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ │ └── WorkspaceSettings.xcsettings
│ │ │ └── Runner
│ │ │ │ ├── AppDelegate.swift
│ │ │ │ ├── Assets.xcassets
│ │ │ │ ├── AppIcon.appiconset
│ │ │ │ │ ├── Contents.json
│ │ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ │ └── LaunchImage.imageset
│ │ │ │ │ ├── Contents.json
│ │ │ │ │ ├── LaunchImage.png
│ │ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ │ └── README.md
│ │ │ │ ├── Base.lproj
│ │ │ │ ├── LaunchScreen.storyboard
│ │ │ │ └── Main.storyboard
│ │ │ │ ├── Info.plist
│ │ │ │ └── Runner-Bridging-Header.h
│ │ ├── lib
│ │ │ └── main.dart
│ │ └── pubspec.yaml
│ ├── ios
│ │ ├── .gitignore
│ │ ├── Assets
│ │ │ └── .gitkeep
│ │ ├── Classes
│ │ │ ├── FlutterLibphonenumberPlugin.h
│ │ │ ├── FlutterLibphonenumberPlugin.m
│ │ │ └── SwiftFlutterLibphonenumberIosPlugin.swift
│ │ ├── Resources
│ │ │ └── PrivacyInfo.xcprivacy
│ │ └── flutter_libphonenumber_ios.podspec
│ ├── lib
│ │ └── flutter_libphonenumber_ios.dart
│ └── pubspec.yaml
├── flutter_libphonenumber_platform_interface
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── lib
│ │ ├── flutter_libphonenumber_platform_interface.dart
│ │ └── src
│ │ │ ├── method_channel
│ │ │ └── flutter_libphonenumber_method_channel.dart
│ │ │ ├── platform_interface
│ │ │ └── flutter_libphonenumber_platform.dart
│ │ │ └── types
│ │ │ ├── country_manager.dart
│ │ │ ├── country_with_phone_code.dart
│ │ │ ├── format_phone_result.dart
│ │ │ ├── input_formatter.dart
│ │ │ ├── phone_mask.dart
│ │ │ ├── phone_number_format.dart
│ │ │ └── phone_number_type.dart
│ ├── pubspec.yaml
│ └── test
│ │ ├── flutter_libphonenumber_test.dart
│ │ └── input_formatter_test.dart
└── flutter_libphonenumber_web
│ ├── .metadata
│ ├── CHANGELOG.md
│ ├── LICENSE
│ ├── README.md
│ ├── example
│ ├── README.md
│ ├── lib
│ │ └── main.dart
│ ├── pubspec.yaml
│ └── web
│ │ ├── favicon.png
│ │ ├── icons
│ │ ├── Icon-192.png
│ │ ├── Icon-512.png
│ │ ├── Icon-maskable-192.png
│ │ └── Icon-maskable-512.png
│ │ ├── index.html
│ │ └── manifest.json
│ ├── lib
│ ├── flutter_libphonenumber_web.dart
│ └── src
│ │ ├── base.dart
│ │ ├── libphonenumber.dart
│ │ └── utils.dart
│ └── pubspec.yaml
└── pubspec.yaml
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .atom/
3 | .idea
4 | .packages
5 | .pub/
6 | .dart_tool/
7 | .vscode/
8 | *.iml
9 |
10 | # Gradle?
11 | .uuid
12 |
13 | pubspec.lock
14 |
15 | Podfile.lock
16 | Pods/
17 | .symlinks/
18 |
19 | *instrumentscli*.trace
20 | *.cipd
21 |
22 | # Build directories are produced when building using the Flutter CLI.
23 | build
24 |
25 | # This file is produced as a back-up when web_benchmarks fails to parse a
26 | # Chrome trace.
27 | chrome-trace.json
28 |
29 | # Generated files on example apps
30 | flutter_export_environment.sh
31 | .flutter-plugins*
32 | local.properties
33 | keystore.properties
34 | **/Flutter/Generated.xcconfig
35 | **/Flutter/App.framework/
36 | **/Flutter/ephemeral/
37 | **/Flutter/Flutter.podspec
38 | **/Flutter/Flutter.framework/
39 | **/Flutter/flutter_assets/
40 |
41 | ServiceDefinitions.json
42 | xcuserdata/
43 | **/DerivedData/
44 |
45 | generated_plugin_registrant.*
46 | GeneratedPluginRegistrant.*
47 |
48 | # Gradle
49 | **/gradle-wrapper.jar
50 | .gradle/
51 | gradlew
52 | gradlew.bat
53 |
54 | .project
55 | .classpath
56 | .settings
57 |
58 | # Melos
59 | pubspec_overrides.yaml
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Bottlepay Ltd.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # flutter_libphonenumber
2 |
3 | This is the monorepo containing all of the related packages for `flutter_libphonenumber`.
4 |
5 | We use `melos` to manage the packages.
6 |
7 | ## Getting started
8 | ```bash
9 | $ flutter pub get
10 | $ flutter pub run melos bootstrap
11 | ```
--------------------------------------------------------------------------------
/all_lint_rules.yaml:
--------------------------------------------------------------------------------
1 | # Copyright 2021 The Chromium Authors. All rights reserved.
2 | # Use of this source code is governed by a BSD-style license that can be
3 | # in the LICENSE file.
4 | linter:
5 | rules:
6 | - always_declare_return_types
7 | - always_put_control_body_on_new_line
8 | - always_put_required_named_parameters_first
9 | - always_require_non_null_named_parameters
10 | - always_specify_types
11 | - always_use_package_imports
12 | - annotate_overrides
13 | - avoid_annotating_with_dynamic
14 | - avoid_bool_literals_in_conditional_expressions
15 | - avoid_catches_without_on_clauses
16 | - avoid_catching_errors
17 | - avoid_classes_with_only_static_members
18 | - avoid_double_and_int_checks
19 | - avoid_dynamic_calls
20 | - avoid_empty_else
21 | - avoid_equals_and_hash_code_on_mutable_classes
22 | - avoid_escaping_inner_quotes
23 | - avoid_field_initializers_in_const_classes
24 | - avoid_function_literals_in_foreach_calls
25 | - avoid_implementing_value_types
26 | - avoid_init_to_null
27 | - avoid_js_rounded_ints
28 | - avoid_multiple_declarations_per_line
29 | - avoid_null_checks_in_equality_operators
30 | - avoid_positional_boolean_parameters
31 | - avoid_print
32 | - avoid_private_typedef_functions
33 | - avoid_redundant_argument_values
34 | - avoid_relative_lib_imports
35 | - avoid_renaming_method_parameters
36 | - avoid_return_types_on_setters
37 | - avoid_returning_null
38 | - avoid_returning_null_for_future
39 | - avoid_returning_null_for_void
40 | - avoid_returning_this
41 | - avoid_setters_without_getters
42 | - avoid_shadowing_type_parameters
43 | - avoid_single_cascade_in_expression_statements
44 | - avoid_slow_async_io
45 | - avoid_type_to_string
46 | - avoid_types_as_parameter_names
47 | - avoid_types_on_closure_parameters
48 | - avoid_unnecessary_containers
49 | - avoid_unused_constructor_parameters
50 | - avoid_void_async
51 | - avoid_web_libraries_in_flutter
52 | - await_only_futures
53 | - camel_case_extensions
54 | - camel_case_types
55 | - cancel_subscriptions
56 | - cascade_invocations
57 | - cast_nullable_to_non_nullable
58 | - close_sinks
59 | - comment_references
60 | - constant_identifier_names
61 | - control_flow_in_finally
62 | - curly_braces_in_flow_control_structures
63 | - depend_on_referenced_packages
64 | - deprecated_consistency
65 | - diagnostic_describe_all_properties
66 | - directives_ordering
67 | - do_not_use_environment
68 | - empty_catches
69 | - empty_constructor_bodies
70 | - empty_statements
71 | - eol_at_end_of_file
72 | - exhaustive_cases
73 | - file_names
74 | - flutter_style_todos
75 | - hash_and_equals
76 | - implementation_imports
77 | - invariant_booleans
78 | - iterable_contains_unrelated_type
79 | - join_return_with_assignment
80 | - leading_newlines_in_multiline_strings
81 | - library_names
82 | - library_prefixes
83 | - library_private_types_in_public_api
84 | - lines_longer_than_80_chars
85 | - list_remove_unrelated_type
86 | - literal_only_boolean_expressions
87 | - missing_whitespace_between_adjacent_strings
88 | - no_adjacent_strings_in_list
89 | - no_default_cases
90 | - no_duplicate_case_values
91 | - no_logic_in_create_state
92 | - no_runtimeType_toString
93 | - non_constant_identifier_names
94 | - noop_primitive_operations
95 | - null_check_on_nullable_type_parameter
96 | - null_closures
97 | - omit_local_variable_types
98 | - one_member_abstracts
99 | - only_throw_errors
100 | - overridden_fields
101 | - package_api_docs
102 | - package_names
103 | - package_prefixed_library_names
104 | - parameter_assignments
105 | - prefer_adjacent_string_concatenation
106 | - prefer_asserts_in_initializer_lists
107 | - prefer_asserts_with_message
108 | - prefer_collection_literals
109 | - prefer_conditional_assignment
110 | - prefer_const_constructors
111 | - prefer_const_constructors_in_immutables
112 | - prefer_const_declarations
113 | - prefer_const_literals_to_create_immutables
114 | - prefer_constructors_over_static_methods
115 | - prefer_contains
116 | - prefer_double_quotes
117 | - prefer_equal_for_default_values
118 | - prefer_expression_function_bodies
119 | - prefer_final_fields
120 | - prefer_final_in_for_each
121 | - prefer_final_locals
122 | - prefer_final_parameters
123 | - prefer_for_elements_to_map_fromIterable
124 | - prefer_foreach
125 | - prefer_function_declarations_over_variables
126 | - prefer_generic_function_type_aliases
127 | - prefer_if_elements_to_conditional_expressions
128 | - prefer_if_null_operators
129 | - prefer_initializing_formals
130 | - prefer_inlined_adds
131 | - prefer_int_literals
132 | - prefer_interpolation_to_compose_strings
133 | - prefer_is_empty
134 | - prefer_is_not_empty
135 | - prefer_is_not_operator
136 | - prefer_iterable_whereType
137 | - prefer_mixin
138 | - prefer_null_aware_method_calls
139 | - prefer_null_aware_operators
140 | - prefer_relative_imports
141 | - prefer_single_quotes
142 | - prefer_spread_collections
143 | - prefer_typing_uninitialized_variables
144 | - prefer_void_to_null
145 | - provide_deprecation_message
146 | - public_member_api_docs
147 | - recursive_getters
148 | - require_trailing_commas
149 | - sized_box_for_whitespace
150 | - slash_for_doc_comments
151 | - sort_child_properties_last
152 | - sort_constructors_first
153 | - sort_pub_dependencies
154 | - sort_unnamed_constructors_first
155 | - test_types_in_equals
156 | - throw_in_finally
157 | - tighten_type_of_initializing_formals
158 | - type_annotate_public_apis
159 | - type_init_formals
160 | - unawaited_futures
161 | - unnecessary_await_in_return
162 | - unnecessary_brace_in_string_interps
163 | - unnecessary_const
164 | - unnecessary_final
165 | - unnecessary_getters_setters
166 | - unnecessary_lambdas
167 | - unnecessary_new
168 | - unnecessary_null_aware_assignments
169 | - unnecessary_null_checks
170 | - unnecessary_null_in_if_null_operators
171 | - unnecessary_nullable_for_final_variable_declarations
172 | - unnecessary_overrides
173 | - unnecessary_parenthesis
174 | - unnecessary_raw_strings
175 | - unnecessary_statements
176 | - unnecessary_string_escapes
177 | - unnecessary_string_interpolations
178 | - unnecessary_this
179 | - unrelated_type_equality_checks
180 | - unsafe_html
181 | - use_build_context_synchronously
182 | - use_full_hex_values_for_flutter_colors
183 | - use_function_type_syntax_for_parameters
184 | - use_if_null_to_convert_nulls_to_bools
185 | - use_is_even_rather_than_modulo
186 | - use_key_in_widget_constructors
187 | - use_late_for_private_fields_and_variables
188 | - use_named_constants
189 | - use_raw_strings
190 | - use_rethrow_when_possible
191 | - use_setters_to_change_properties
192 | - use_string_buffers
193 | - use_test_throws_matchers
194 | - use_to_and_as_if_applicable
195 | - valid_regexps
196 | - void_checks
197 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: all_lint_rules.yaml
2 |
3 | analyzer:
4 | language:
5 | strict-inference: true
6 |
7 | # strong-mode:
8 | # implicit-casts: false
9 | # implicit-dynamic: false
10 |
11 | errors:
12 | # Otherwise cause the import of all_lint_rules to warn because of some rules conflicts.
13 | # We explicitly enabled even conflicting rules and are fixing the conflict
14 | # in this file
15 | included_file_warning: ignore
16 |
17 | # Things we really want to enforce in our code
18 | always_use_package_imports: error
19 | prefer_final_parameters: error
20 | prefer_final_fields: error
21 | prefer_final_in_for_each: error
22 | prefer_final_locals: error
23 | require_trailing_commas: error
24 | avoid_unused_constructor_parameters: error
25 | use_named_constants: error
26 | avoid_field_initializers_in_const_classes: error
27 | missing_default_value_for_parameter: error
28 | sort_constructors_first: error
29 | sort_unnamed_constructors_first: error
30 | sort_child_properties_last: error
31 | inference_failure_on_function_invocation: error
32 | todo: ignore # Todos are just informational
33 |
34 | linter:
35 | rules:
36 | prefer_double_quotes: false
37 | avoid_function_literals_in_foreach_calls: false
38 | non_constant_identifier_names: false
39 | public_member_api_docs: false
40 | diagnostic_describe_all_properties: false
41 | prefer_expression_function_bodies: false
42 | prefer_asserts_with_message: false
43 | prefer_mixin: false
44 | avoid_catches_without_on_clauses: false
45 | avoid_classes_with_only_static_members: false
46 | library_private_types_in_public_api: false
47 | comment_references: false
48 | avoid_bool_literals_in_conditional_expressions: false
49 | avoid_positional_boolean_parameters: false
50 | only_throw_errors: false
51 | join_return_with_assignment: false
52 | use_if_null_to_convert_nulls_to_bools: false
53 | use_setters_to_change_properties: false
54 | no_default_cases: false
55 | flutter_style_todos: false
56 | avoid_setters_without_getters: false
57 | sort_pub_dependencies: false
58 | avoid_dynamic_calls: false # nice to have one day
59 | avoid_redundant_argument_values: false # It's ok to be redundant to be explicit and clear
60 | avoid_annotating_with_dynamic: false # it's ok to be extra explicit
61 |
62 | # For compatibility with Scope
63 | no_runtimeType_toString: false
64 | avoid_types_on_closure_parameters: false
65 |
66 | # Things we have disabled on purpose
67 | unnecessary_final: false # we always want to use final whenever possible
68 | prefer_relative_imports: false # we always want to use package imports
69 | lines_longer_than_80_chars: false # Sometimes this makes it even harder to read than if it was one longer line
70 | omit_local_variable_types: false # We always want to be explicit
71 | always_specify_types: false # this gets a little too crazy/redundant and there's no auto-fix yet
72 | avoid_js_rounded_ints: false # we will never be compiling to javascript so we can ignore this
73 | depend_on_referenced_packages: false # this one does not appear to work - says we are missing deps we have in our pubspec.
74 | cascade_invocations: false # this can get confusing to understand sometimes.
75 | use_build_context_synchronously: false # still experimental but it's a good idea to follow eventually.
76 | always_put_required_named_parameters_first: false # nice to have but 600+ errors to fix by hand
77 | one_member_abstracts: false # interferes with our interface pattern for IoC across modules
78 |
--------------------------------------------------------------------------------
/melos.yaml:
--------------------------------------------------------------------------------
1 | # Name of this workspace, this is used for display purpose on the CLI
2 | # and on your IDEs.
3 | name: flutter_libphonenumber_workspace
4 |
5 | # versioning:
6 | # # Versioning mode, currently only independent supported.
7 | # mode: independent
8 |
9 | # Array of globs to search for packages.
10 | packages:
11 | - packages/**
12 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled.
5 |
6 | version:
7 | revision: 90c64ed42ba53a52d18f0cb3b17666c8662ed2a0
8 | channel: stable
9 |
10 | project_type: plugin
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 90c64ed42ba53a52d18f0cb3b17666c8662ed2a0
17 | base_revision: 90c64ed42ba53a52d18f0cb3b17666c8662ed2a0
18 | - platform: android
19 | create_revision: 90c64ed42ba53a52d18f0cb3b17666c8662ed2a0
20 | base_revision: 90c64ed42ba53a52d18f0cb3b17666c8662ed2a0
21 | - platform: ios
22 | create_revision: 90c64ed42ba53a52d18f0cb3b17666c8662ed2a0
23 | base_revision: 90c64ed42ba53a52d18f0cb3b17666c8662ed2a0
24 |
25 | # User provided section
26 |
27 | # List of Local paths (relative to this file) that should be
28 | # ignored by the migrate tool.
29 | #
30 | # Files that are not part of the templates will be ignored by default.
31 | unmanaged_files:
32 | - 'lib/main.dart'
33 | - 'ios/Runner.xcodeproj/project.pbxproj'
34 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## [2.5.1] - 2024.09.19
2 |
3 | - Bump flutter_libphonenumber_android to 1.4.1: This fixes unresolved Registrar issue occurring after upgrading Flutter to 3.29.0 (#93 @amitkhairnar44)
4 |
5 | ## [2.5.0] - 2024.09.19
6 |
7 | - Bump flutter_libphonenumber_platform_interface to 2.1.0
8 | - Bump flutter_libphonenumber_android to v1.4.0.
9 | - Bump flutter_libphonenumber_ios to v1.4.0.
10 | - Bump flutter_libphonenumber_web to v1.3.0.
11 |
12 | ## [2.4.0] - 2024.09.18
13 |
14 | - Bump flutter_libphonenumber_platform_interface to 2.0.0
15 | - Bump flutter_libphonenumber_android to v1.3.0.
16 | - Bump flutter_libphonenumber_ios to v1.3.0.
17 | - Bump flutter_libphonenumber_web to v1.2.0.
18 |
19 | ## [2.3.3] - 2024.08.19
20 |
21 | - Bump flutter_libphonenumber_android to v1.2.0.
22 |
23 | ## [2.3.2] - 2024.08.19
24 |
25 | - Bump flutter_libphonenumber_ios to v1.2.2.
26 |
27 | ## [2.3.1] - 2024.08.19
28 |
29 | - Bump flutter_libphonenumber_android to v1.1.0.
30 |
31 | ## [2.2.3] - 2024.04.16
32 |
33 | - Bump flutter_libphonenumber_web to v1.0.1.
34 |
35 | ## [2.2.2] - 2024.04.16
36 |
37 | - Bump flutter_libphonenumber_ios to v1.2.1.
38 |
39 | ## [2.2.1] - 2023.12.07
40 |
41 | - Fix init method overrides, from @nikolaychernov.
42 |
43 | ## [2.2.0] - 2023.12.07
44 |
45 | - Bump flutter_libphonenumber_ios to v1.2.0.
46 | - _BREAKING_ Raises minimum iOS deployment to 12.0.
47 |
48 | ## [2.1.5] - 2023.07.19
49 |
50 | - Bump flutter_libphonenumber_ios to v1.1.4.
51 |
52 | ## [2.1.4] - 2023.06.08
53 |
54 | - Bump flutter_libphonenumber_ios to v1.1.3.
55 |
56 | ## [2.1.3] - 2023.05.17
57 |
58 | - Fix pod issue with PhoneNumberKit by bumping flutter_libphonenumber_ios version to latest.
59 |
60 | ## [2.1.2] - 2023.05.01
61 |
62 | - Fix compatibility with AGP 8.0 (#43).
63 |
64 | ## [2.1.1] - 2023.05.01
65 |
66 | - Fix pod configuration for PhoneNumberKit.
67 |
68 | ## [2.1.0] - 2023.05.01
69 |
70 | - BREAKING: Bumped flutter_libphonenumber_ios to 1.1.0 which includes the latest PhoneNumberKit version. You must include the entry in your Podfile now. See updated README for details.
71 |
72 | ## [2.0.0] - 2023.03.23
73 |
74 | - Migrated to new federated plugin configuration.
75 | - Added web implementation from laynor.
76 |
77 | ## [1.4.0] - 2023.03.07
78 |
79 | - Fixed `onFormatFinished` callback not being called when `shouldKeepCursorAtEndOfInput=true`.
80 |
81 | ## [1.3.0] - 2022.12.05
82 |
83 | - Adds a new field (region_code) to the result of the parse method.
84 | - Upgrades the dependencies:
85 | - libphonenumber to 8.12.52
86 | - PhoneNumberKit to 3.3.4
87 | - Fixes some lint issues.
88 | - Upgrade gradle/kotlin versions in android project.
89 |
90 | ## [1.2.4] - 2022.03.09
91 |
92 | - Fixed some edge cases with cursor position when `shouldKeepCursorAtEndOfInput` is set to `false`
93 |
94 | ## [1.2.3] - 2022.03.08
95 |
96 | - New optional setting `shouldKeepCursorAtEndOfInput` on `LibPhonenumberTextFormatter` which will either keep the cursor at the end of the input if the middle of the input is changed, or the cursor will remain at the same position as where it was edited.
97 |
98 | ## [1.2.2] - 2022.01.12
99 |
100 | - Replaced jcenter with maven central (JeremyLWright).
101 |
102 | ## [1.2.1] - 2021.09.11
103 |
104 | - Fixed bug where region was not passed to `parse` call in `getFormattedParseResult`.
105 |
106 | # 1.2.0
107 |
108 | - BREAKING: renamed `hideCountryCode` to `inputContainsCountryCode` in `LibPhonenumberTextFormatter`.
109 | - BREAKING: renamed `removeCountryCode` to `removeCountryCodeFromResult` and added new parameter `inputContainsCountryCode` in `formatNumberSync()`. Use this to accurately describe if the input number contains a country code and whether or not the result should strip that country code out.
110 |
111 | # 1.1.0
112 |
113 | - Improvements to how masking is performed.
114 | - Now allows for additional digits to be added on the end of the input mask for countries with varying number patterns.
115 |
116 | # 1.0.4
117 |
118 | - Fix number parsing issue by not attaching a leading '+' anymore. This fixes the problem parsing GB numbers starting with 07 which didn't have the 44 country code at the start.
119 | - Bumped libphonenumber version on android.
120 |
121 | # 1.0.3
122 |
123 | - Nullsafety for main version.
124 | - UK numbers will correctly remove leading 0 now on international numbers.
125 |
126 | # 1.0.2-nullsafety
127 |
128 | - Bumped underlying native lib versions. PhoneNumberKit -> 3.3.3, libphonenumber -> 8.12.17.
129 |
130 | # 1.0.1-nullsafety
131 |
132 | - Add constraint for flutter v1.10.0.
133 |
134 | # 1.0.0-nullsafety
135 |
136 | - Migrate to null safety.
137 |
138 | # 0.3.11
139 |
140 | - Update iOS minimum deployment to 9.0.
141 |
142 | # 0.3.10
143 |
144 | - Bumped PhoneNumberKit to 3.3 (iOS) and libphonenumber to 8.12.11 (Android).
145 | - Fixed overflows in example app on smaller devices.
146 |
147 | # 0.3.9
148 |
149 | - Bump android compileSdkVersion to 29.
150 |
151 | # 0.3.8
152 |
153 | - Downgrade Android minSdkVersion version from 21 to 18 and bump libphonenumber version from 8.12.5 to 8.12.10 via [#3](https://github.com/bottlepay/flutter_libphonenumber/pull/3).
154 |
155 | # 0.3.7
156 |
157 | - Fixed bug where device locale was not correctly detected on iOS.
158 |
159 | # 0.3.6
160 |
161 | - Hide debug printing.
162 |
163 | ## 0.3.5
164 |
165 | - Added ability to override country mask/phone data. Added fix for UK international numbers when someone pastes in a national format.
166 |
167 | ## 0.3.4
168 |
169 | - Fixed bug when formatting the very first number where it wouldn't move the text selection to the very end.
170 |
171 | ## 0.3.3
172 |
173 | - Fixed bug where realtime formatter didn't ignore leading country code if present when overrideSkipCountryCode was provided.
174 |
175 | ## 0.3.2
176 |
177 | - Fixed formatParsePhonenumberAsync to return the correct phone number international/national format based on what was requested.
178 |
179 | ## 0.3.1
180 |
181 | - Fixes to documentation.
182 |
183 | ## 0.3.0
184 |
185 | - Can now format based on the national or international format of a country's phone number.
186 |
187 | ## 0.2.0
188 |
189 | - Added ability to format numbers as either mobile or fixed line, while defaulting to mobile.
190 |
191 | ## 0.1.5
192 |
193 | - Cleanup
194 |
195 | ## 0.1.4
196 |
197 | - Fixed bugs in the way masking is applied which caused numbers to be formatted incorrectly to their mask.
198 |
199 | ## 0.1.3
200 |
201 | - Removed print statements
202 | - Countries list in CountryManager is now read-only outside of the lib
203 |
204 | ## 0.1.2
205 |
206 | - Added example gifs
207 |
208 | ## 0.1.1
209 |
210 | - Package metadata fixes
211 |
212 | ## 0.1.0
213 |
214 | - Initial release
215 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Bottlepay Ltd.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled.
5 |
6 | version:
7 | revision: 90c64ed42ba53a52d18f0cb3b17666c8662ed2a0
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 90c64ed42ba53a52d18f0cb3b17666c8662ed2a0
17 | base_revision: 90c64ed42ba53a52d18f0cb3b17666c8662ed2a0
18 | - platform: web
19 | create_revision: 90c64ed42ba53a52d18f0cb3b17666c8662ed2a0
20 | base_revision: 90c64ed42ba53a52d18f0cb3b17666c8662ed2a0
21 |
22 | # User provided section
23 |
24 | # List of Local paths (relative to this file) that should be
25 | # ignored by the migrate tool.
26 | #
27 | # Files that are not part of the templates will be ignored by default.
28 | unmanaged_files:
29 | - 'lib/main.dart'
30 | - 'ios/Runner.xcodeproj/project.pbxproj'
31 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/README.md:
--------------------------------------------------------------------------------
1 | # flutter_libphonenumber_example
2 |
3 | Demonstrates how to use the flutter_libphonenumber plugin.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion flutter.compileSdkVersion
30 | ndkVersion flutter.ndkVersion
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | defaultConfig {
46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47 | applicationId "com.example.flutter_libphonenumber_example"
48 | // You can update the following values to match your application needs.
49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
50 | minSdkVersion 18
51 | targetSdkVersion flutter.targetSdkVersion
52 | versionCode flutterVersionCode.toInteger()
53 | versionName flutterVersionName
54 | }
55 |
56 | buildTypes {
57 | release {
58 | // TODO: Add your own signing config for the release build.
59 | // Signing with the debug keys for now, so `flutter run --release` works.
60 | signingConfig signingConfigs.debug
61 | }
62 | }
63 | }
64 |
65 | flutter {
66 | source '../..'
67 | }
68 |
69 | dependencies {
70 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
71 | }
72 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/main/kotlin/com/example/flutter_libphonenumber_example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.flutter_libphonenumber_example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.2.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
6 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 12.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '12.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @main
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Flutter Libphonenumber
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | flutter_libphonenumber_example
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 | CADisableMinimumFrameDurationOnPhone
47 |
48 | UIApplicationSupportsIndirectInputEvents
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_libphonenumber_example
2 | description: Demonstrates how to use the flutter_libphonenumber plugin.
3 | publish_to: none
4 |
5 | environment:
6 | sdk: ">=2.19.0 <4.0.0"
7 | flutter: ">=3.0.0"
8 |
9 | dependencies:
10 | flutter:
11 | sdk: flutter
12 |
13 | flutter_libphonenumber:
14 | path: ../
15 |
16 | dev_dependencies:
17 | flutter_test:
18 | sdk: flutter
19 |
20 | flutter:
21 | uses-material-design: true
22 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/web/favicon.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/acoutts/flutter_libphonenumber/9b17bf2d138a465d0affdfdc293bcf491101c977/packages/flutter_libphonenumber/example/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | example
33 |
34 |
35 |
39 |
40 |
41 |
42 |
43 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/example/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "short_name": "example",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | },
22 | {
23 | "src": "icons/Icon-maskable-192.png",
24 | "sizes": "192x192",
25 | "type": "image/png",
26 | "purpose": "maskable"
27 | },
28 | {
29 | "src": "icons/Icon-maskable-512.png",
30 | "sizes": "512x512",
31 | "type": "image/png",
32 | "purpose": "maskable"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/packages/flutter_libphonenumber/lib/flutter_libphonenumber.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_libphonenumber_platform_interface/flutter_libphonenumber_platform_interface.dart';
2 |
3 | export 'package:flutter_libphonenumber_platform_interface/flutter_libphonenumber_platform_interface.dart'
4 | show
5 | CountryManager,
6 | CountryWithPhoneCode,
7 | FormatPhoneResult,
8 | LibPhonenumberTextFormatter,
9 | PhoneMask,
10 | PhoneNumberFormat,
11 | PhoneNumberType;
12 |
13 | @override
14 | Future