Skip to content

Commit 4e9c0c9

Browse files
authored
Merge pull request #382 from natintosh/develop
v0.7.3-rc1
2 parents 7bcb7d0 + 5f5ec74 commit 4e9c0c9

File tree

25 files changed

+213
-79
lines changed

25 files changed

+213
-79
lines changed

.flutter-plugins-dependencies

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish Intl Phone Number Input to pub.dev
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+*'
7+
8+
# Publish using the reusable workflow from dart-lang.
9+
jobs:
10+
publish:
11+
permissions:
12+
id-token: write # This is required for authentication using OIDC
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Install Flutter SDK
17+
uses: subosito/flutter-action@v2
18+
with:
19+
channel: 'stable'
20+
- name: Install dependencies
21+
run: flutter pub get
22+
- name: Setup dart
23+
uses: dart-lang/setup-dart@v1
24+
- name: Publish
25+
run: dart pub publish -f

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
.buildlog/
99
.history
1010
.svn/
11+
.flutter-plugins-dependencies
12+
.flutter-plugins
1113

1214
# IntelliJ related
1315
*.iml
@@ -23,7 +25,6 @@
2325
# Flutter/Dart/Pub related
2426
**/doc/api/
2527
.dart_tool/
26-
.flutter-plugins
2728
.packages
2829
pubspec.lock
2930
.pub-cache/

.pubignore

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
.flutter-plugins-dependencies
12+
.flutter-plugins
13+
14+
# IntelliJ related
15+
*.iml
16+
*.ipr
17+
*.iws
18+
.idea/
19+
20+
example/
21+
22+
# The .vscode folder contains launch configuration and tasks you configure in
23+
# VS Code which you may wish to be included in version control, so this line
24+
# is commented out by default.
25+
#.vscode/
26+
27+
# Flutter/Dart/Pub related
28+
**/doc/api/
29+
.dart_tool/
30+
.flutter-plugins
31+
.packages
32+
pubspec.lock
33+
.pub-cache/
34+
.pub/
35+
build/
36+
37+
# Android related
38+
**/android/**/gradle-wrapper.jar
39+
**/android/.gradle
40+
**/android/captures/
41+
**/android/gradlew
42+
**/android/gradlew.bat
43+
**/android/local.properties
44+
**/android/**/GeneratedPluginRegistrant.java
45+
46+
# iOS/XCode related
47+
**/ios/**/*.mode1v3
48+
**/ios/**/*.mode2v3
49+
**/ios/**/*.moved-aside
50+
**/ios/**/*.pbxuser
51+
**/ios/**/*.perspectivev3
52+
**/ios/**/*sync/
53+
**/ios/**/.sconsign.dblite
54+
**/ios/**/.tags*
55+
**/ios/**/.vagrant/
56+
**/ios/**/DerivedData/
57+
**/ios/**/Icon?
58+
**/ios/**/Pods/
59+
**/ios/**/.symlinks/
60+
**/ios/**/profile
61+
**/ios/**/xcuserdata
62+
**/ios/.generated/
63+
**/ios/Flutter/App.framework
64+
**/ios/Flutter/Flutter.framework
65+
**/ios/Flutter/Generated.xcconfig
66+
**/ios/Flutter/app.flx
67+
**/ios/Flutter/app.zip
68+
**/ios/Flutter/flutter_assets/
69+
**/ios/ServiceDefinitions.json
70+
**/ios/Runner/GeneratedPluginRegistrant.*
71+
72+
# Exceptions to above rules.
73+
!**/ios/**/default.mode1v3
74+
!**/ios/**/default.mode2v3
75+
!**/ios/**/default.pbxuser
76+
!**/ios/**/default.perspectivev3
77+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## [0.7.3]
2+
* Updated dependency in libphonenumber
3+
* Update AsYouTypeFormatter
4+
* Replaced `headline` with `headlineSmall` in countries_search_list_widget.dart
5+
* Totally removed `getNameForNumber`
6+
7+
## [0.7.2]
8+
* Updated libphonenumber and PhoneNumberToCarrierMapper on Android
9+
* Removed dependency on libphonenumber
10+
* Switch from libphonenumber-iOS to PhoneNumberKit on iOS
11+
* Update libphonenumber.js file
12+
* Depreciating `getNameForNumber` in future updates
13+
114
## [0.7.1]
215
* Massive thanks to the community
316

README.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,11 @@ A simple and customizable flutter package for inputting phone number in intl / i
1212

1313

1414
### What's new
15-
- Null Safety Migration
16-
- Upgraded dependencies
17-
- <b>Breaking Change</b> Depreciated `SelectorConfig.backgroundColor` and replaced with `Theme.of(context).canvasColor`
18-
- Fixed Dominican Republic dial_code at country_list.dart #196
19-
- Fixed change country when initialValue is set with the widget #170
20-
- Fixed PhoneNumberUtil.getNumberType on mobile and web #188
21-
- Added translations for Turkish and Romanian #190
22-
- Updated Taiwan country name #181
23-
- Added style config for selector button #177
24-
- Removed any potential duplicates on countries list #175
25-
- Fixed ignore selector and text field spacing in prefixIcon mode #161
26-
- :sweat_smile: Well, Actually using cursorColor #160
27-
- Fixed initialValue should not be formatted if formatInput is false #192
28-
- Fixed Bottom Sheet RenderFlex overflow bug #187, similar to Search by Country name or dial code bug #197
29-
- Updated README.md file to fix Web release does not recognize the packages #186
30-
- Fixed onSaved callback in the InternationalPhoneNumberInput is not synchronous #180
31-
- Cherry picked pending fixes and pull request from repo.
15+
- Updated libphonenumber and PhoneNumberToCarrierMapper on Android
16+
- Removed dependency on libphonenumber
17+
- Switch from libphonenumber-iOS to PhoneNumberKit on iOS
18+
- Update libphonenumber.js file
19+
- Depreciating getNameForNumber in future updates
3220

3321

3422
### Features

example/android/app/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 28
29+
compileSdkVersion 33
3030

3131
sourceSets {
3232
main.java.srcDirs += 'src/main/kotlin'
@@ -40,7 +40,7 @@ android {
4040
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4141
applicationId "com.example.intlphonenumberinputtest"
4242
minSdkVersion 16
43-
targetSdkVersion 28
43+
targetSdkVersion 33
4444
versionCode flutterVersionCode.toInteger()
4545
versionName flutterVersionName
4646
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -53,6 +53,7 @@ android {
5353
signingConfig signingConfigs.debug
5454
}
5555
}
56+
namespace 'com.example.intlphonenumberinputtest'
5657
}
5758

5859
flutter {
@@ -61,7 +62,7 @@ flutter {
6162

6263
dependencies {
6364
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64-
testImplementation 'junit:junit:4.12'
65-
androidTestImplementation 'androidx.test:runner:1.1.1'
66-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
65+
testImplementation 'junit:junit:4.13.2'
66+
androidTestImplementation 'androidx.test:runner:1.5.2'
67+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
6768
}

example/android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.intlphonenumberinputtest">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

example/android/app/src/main/AndroidManifest.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.intlphonenumberinputtest">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
43
calls FlutterMain.startInitialization(this); in its onCreate method.
54
In most cases you can leave this as-is, but you if you want to provide
65
additional functionality it is fine to subclass or reimplement
76
FlutterApplication and put your custom class here. -->
87
<application
9-
android:name="io.flutter.app.FlutterApplication"
8+
android:name="${applicationName}"
109
android:label="intlphonenumberinputtest"
1110
android:icon="@mipmap/ic_launcher">
1211
<activity
1312
android:name=".MainActivity"
13+
android:exported="true"
1414
android:launchMode="singleTop"
1515
android:theme="@style/LaunchTheme"
1616
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1717
android:hardwareAccelerated="true"
1818
android:windowSoftInputMode="adjustResize">
19+
<!-- Specifies an Android theme to apply to this Activity as soon as
20+
the Android process has started. This theme is visible to the user
21+
while the Flutter UI initializes. After that, this theme continues
22+
to determine the Window background behind the Flutter UI. -->
23+
<meta-data
24+
android:name="io.flutter.embedding.android.NormalTheme"
25+
android:resource="@style/NormalTheme"
26+
/>
1927
<intent-filter>
2028
<action android:name="android.intent.action.MAIN"/>
2129
<category android:name="android.intent.category.LAUNCHER"/>

example/android/app/src/profile/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.intlphonenumberinputtest">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

0 commit comments

Comments
 (0)