Skip to content

Commit

Permalink
Merge pull request #382 from natintosh/develop
Browse files Browse the repository at this point in the history
v0.7.3-rc1
  • Loading branch information
natintosh authored Mar 31, 2023
2 parents 7bcb7d0 + 5f5ec74 commit 4e9c0c9
Show file tree
Hide file tree
Showing 25 changed files with 213 additions and 79 deletions.
1 change: 0 additions & 1 deletion .flutter-plugins-dependencies

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Intl Phone Number Input to pub.dev

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

# Publish using the reusable workflow from dart-lang.
jobs:
publish:
permissions:
id-token: write # This is required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Flutter SDK
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Install dependencies
run: flutter pub get
- name: Setup dart
uses: dart-lang/setup-dart@v1
- name: Publish
run: dart pub publish -f
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
.buildlog/
.history
.svn/
.flutter-plugins-dependencies
.flutter-plugins

# IntelliJ related
*.iml
Expand All @@ -23,7 +25,6 @@
# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.flutter-plugins
.packages
pubspec.lock
.pub-cache/
Expand Down
77 changes: 77 additions & 0 deletions .pubignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
.flutter-plugins-dependencies
.flutter-plugins

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

example/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.flutter-plugins
.packages
pubspec.lock
.pub-cache/
.pub/
build/

# Android related
**/android/**/gradle-wrapper.jar
**/android/.gradle
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java

# iOS/XCode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## [0.7.3]
* Updated dependency in libphonenumber
* Update AsYouTypeFormatter
* Replaced `headline` with `headlineSmall` in countries_search_list_widget.dart
* Totally removed `getNameForNumber`

## [0.7.2]
* Updated libphonenumber and PhoneNumberToCarrierMapper on Android
* Removed dependency on libphonenumber
* Switch from libphonenumber-iOS to PhoneNumberKit on iOS
* Update libphonenumber.js file
* Depreciating `getNameForNumber` in future updates

## [0.7.1]
* Massive thanks to the community

Expand Down
22 changes: 5 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,11 @@ A simple and customizable flutter package for inputting phone number in intl / i


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


### Features
Expand Down
11 changes: 6 additions & 5 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 28
compileSdkVersion 33

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -40,7 +40,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.intlphonenumberinputtest"
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion 33
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand All @@ -53,6 +53,7 @@ android {
signingConfig signingConfigs.debug
}
}
namespace 'com.example.intlphonenumberinputtest'
}

flutter {
Expand All @@ -61,7 +62,7 @@ flutter {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
3 changes: 1 addition & 2 deletions example/android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.intlphonenumberinputtest">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
14 changes: 11 additions & 3 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.intlphonenumberinputtest">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:name="${applicationName}"
android:label="intlphonenumberinputtest"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
Expand Down
3 changes: 1 addition & 2 deletions example/android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.intlphonenumberinputtest">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
8 changes: 4 additions & 4 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.7.20'
repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

Expand Down
2 changes: 1 addition & 1 deletion example/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>11.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
platform :ios, '11.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
21 changes: 18 additions & 3 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,41 @@ PODS:
- Flutter
- libPhoneNumber-iOS
- libPhoneNumber-iOS (0.9.15)
- libphonenumber_plugin (0.0.1):
- Flutter
- PhoneNumberKit
- PhoneNumberKit (3.3.4):
- PhoneNumberKit/PhoneNumberKitCore (= 3.3.4)
- PhoneNumberKit/UIKit (= 3.3.4)
- PhoneNumberKit/PhoneNumberKitCore (3.3.4)
- PhoneNumberKit/UIKit (3.3.4):
- PhoneNumberKit/PhoneNumberKitCore

DEPENDENCIES:
- Flutter (from `Flutter`)
- libphonenumber (from `.symlinks/plugins/libphonenumber/ios`)
- libphonenumber_plugin (from `.symlinks/plugins/libphonenumber_plugin/ios`)

SPEC REPOS:
trunk:
- libPhoneNumber-iOS
- PhoneNumberKit

EXTERNAL SOURCES:
Flutter:
:path: Flutter
libphonenumber:
:path: ".symlinks/plugins/libphonenumber/ios"
libphonenumber_plugin:
:path: ".symlinks/plugins/libphonenumber_plugin/ios"

SPEC CHECKSUMS:
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
libphonenumber: bd14d5abfc5939ab0b0767234e2d8e2593af258e
libPhoneNumber-iOS: 0a32a9525cf8744fe02c5206eb30d571e38f7d75
libphonenumber_plugin: e8a7d64a6624a7c25f2c4ab0b7ead2a8e341e35e
PhoneNumberKit: 441e8b26ec88d598e3591de9061eff18f5dd12e8

PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
PODFILE CHECKSUM: 7368163408c647b7eb699d0d788ba6718e18fb8d

COCOAPODS: 1.9.3
COCOAPODS: 1.11.3
Loading

0 comments on commit 4e9c0c9

Please sign in to comment.