diff --git a/.gitignore b/.gitignore
index 2ab48a2..b11d3bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,5 @@
build/
.idea/*
+.vscode/*
+pubspec.lock
diff --git a/.metadata b/.metadata
index a7d6576..8e195da 100644
--- a/.metadata
+++ b/.metadata
@@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.
version:
- revision: 68c96f100e42ab3dbf43e61e9e2fc875a2d50cb8
- channel: dev
+ revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ channel: stable
project_type: plugin
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2944207..0e9a6c6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+## 0.4.0
+
+- Fixed #6
+- Updated to work with Flutter 3.7.9
+
+
## 0.3.0
- Added blur option for background blur
@@ -27,4 +33,4 @@
## 0.0.1
-- Inported code from the parent package, https://github.com/mmcc007/modal_progress_hud
\ No newline at end of file
+- Inported code from the parent package, https://github.com/mmcc007/modal_progress_hud
diff --git a/LICENSE b/LICENSE
index 89d4210..e2ae7e8 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,8 +1,8 @@
The MIT License (MIT)
-Copyright © 2021 Phani Pavan K
+Copyright © 2023 Phani Pavan K
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/README.md b/README.md
index d4d275b..7b7d295 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# modal_progress_hud
+# modal_progress_hud(_nsn)
A simple widget wrapper to enable modal progress HUD (a modal progress indicator, HUD = Heads Up Display)
@@ -10,7 +10,7 @@ A fork of [this](https://github.com/mmcc007/modal_progress_hud) with support for
## Demo
-
+
_See example for details_
@@ -20,7 +20,7 @@ Add the package to your `pubspec.yml` file.
```yml
dependencies:
- modal_progress_hud_nsn: ^0.3.0
+ modal_progress_hud_nsn: ^0.4.0
```
Next, import the library into your widget.
@@ -149,4 +149,4 @@ calls (see [flutter/issues/9688](https://github.com/flutter/flutter/issues/9688)
## Issues and feedback
Please file [issues](https://github.com/kphanipavan/modal_progress_hud_nsn/issues/new)
-to send feedback or report a bug. Thank you!
\ No newline at end of file
+to send feedback or report a bug. Thank you!
diff --git a/android/.gitignore b/android/.gitignore
index c6cbe56..161bdcd 100644
--- a/android/.gitignore
+++ b/android/.gitignore
@@ -6,3 +6,4 @@
.DS_Store
/build
/captures
+.cxx
diff --git a/android/build.gradle b/android/build.gradle
index 69a711a..91d5491 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -1,20 +1,20 @@
-group 'com.walle.modal_progress_hud_nsn'
-version '0.2.0'
+group 'boi.walle.modal_progress_hud_nsn'
+version '1.0-SNAPSHOT'
buildscript {
- ext.kotlin_version = '1.6.10'
+ ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
}
dependencies {
- classpath 'com.android.tools.build:gradle:7.0.2'
+ classpath 'com.android.tools.build:gradle:7.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
-rootProject.allprojects {
+allprojects {
repositories {
google()
mavenCentral()
@@ -25,16 +25,22 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
- compileSdkVersion 32
+ compileSdkVersion 31
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
+
defaultConfig {
minSdkVersion 16
}
}
-
-dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
-}
diff --git a/android/gradle.properties b/android/gradle.properties
deleted file mode 100644
index 94adc3a..0000000
--- a/android/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-org.gradle.jvmargs=-Xmx1536M
-android.useAndroidX=true
-android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index 3c9d085..0000000
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml
index 7593de5..994983c 100644
--- a/android/src/main/AndroidManifest.xml
+++ b/android/src/main/AndroidManifest.xml
@@ -1,3 +1,3 @@
+ package="boi.walle.modal_progress_hud_nsn">
diff --git a/android/src/main/kotlin/com/walle/modal_progress_hud_nsn/ModalProgressHudNsnPlugin.kt b/android/src/main/kotlin/boi/walle/modal_progress_hud_nsn/ModalProgressHudNsnPlugin.kt
similarity index 93%
rename from android/src/main/kotlin/com/walle/modal_progress_hud_nsn/ModalProgressHudNsnPlugin.kt
rename to android/src/main/kotlin/boi/walle/modal_progress_hud_nsn/ModalProgressHudNsnPlugin.kt
index 106c4b2..9f12290 100644
--- a/android/src/main/kotlin/com/walle/modal_progress_hud_nsn/ModalProgressHudNsnPlugin.kt
+++ b/android/src/main/kotlin/boi/walle/modal_progress_hud_nsn/ModalProgressHudNsnPlugin.kt
@@ -1,4 +1,4 @@
-package com.walle.modal_progress_hud_nsn
+package boi.walle.modal_progress_hud_nsn
import androidx.annotation.NonNull
@@ -7,7 +7,6 @@ import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
-import io.flutter.plugin.common.PluginRegistry.Registrar
/** ModalProgressHudNsnPlugin */
class ModalProgressHudNsnPlugin: FlutterPlugin, MethodCallHandler {
diff --git a/example/.gitignore b/example/.gitignore
index 0fa6b67..24476c5 100644
--- a/example/.gitignore
+++ b/example/.gitignore
@@ -8,6 +8,7 @@
.buildlog/
.history
.svn/
+migrate_working_dir/
# IntelliJ related
*.iml
@@ -31,9 +32,6 @@
.pub/
/build/
-# Web related
-lib/generated_plugin_registrant.dart
-
# Symbolication related
app.*.symbols
diff --git a/example/.metadata b/example/.metadata
index 5e95ec7..20eb09c 100644
--- a/example/.metadata
+++ b/example/.metadata
@@ -4,7 +4,7 @@
# This file should be version controlled.
version:
- revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
+ revision: 62bd79521d8d007524e351747471ba66696fc2d4
channel: stable
project_type: app
@@ -13,20 +13,26 @@ project_type: app
migration:
platforms:
- platform: root
- create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
+ create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ - platform: android
+ create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ - platform: ios
+ create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- platform: linux
- create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
+ create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- platform: macos
- create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
+ create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- platform: web
- create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
+ create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- platform: windows
- create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
+ create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
+ base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
# User provided section
diff --git a/example/README.md b/example/README.md
index 35929e9..eb819ec 100644
--- a/example/README.md
+++ b/example/README.md
@@ -8,9 +8,9 @@ This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
-- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
-- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
+- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
-For help getting started with Flutter, view our
-[online documentation](https://flutter.dev/docs), which offers tutorials,
+For help getting started with Flutter development, view the
+[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
diff --git a/example/android/.gitignore b/example/android/.gitignore
index 0a741cb..6f56801 100644
--- a/example/android/.gitignore
+++ b/example/android/.gitignore
@@ -9,3 +9,5 @@ GeneratedPluginRegistrant.java
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
+**/*.keystore
+**/*.jks
diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle
index 47d4184..565fed8 100644
--- a/example/android/app/build.gradle
+++ b/example/android/app/build.gradle
@@ -26,7 +26,17 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
- compileSdkVersion 32
+ compileSdkVersion flutter.compileSdkVersion
+ ndkVersion flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
@@ -34,9 +44,11 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
- applicationId "com.walle.modal_progress_hud_nsn_example"
- minSdkVersion 16
- targetSdkVersion 32
+ applicationId "boi.walle.modal_progress_hud_nsn_example"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
+ minSdkVersion flutter.minSdkVersion
+ targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
@@ -56,4 +68,4 @@ flutter {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
-}
\ No newline at end of file
+}
diff --git a/example/android/app/src/debug/AndroidManifest.xml b/example/android/app/src/debug/AndroidManifest.xml
index bfc645e..d5ef7fe 100644
--- a/example/android/app/src/debug/AndroidManifest.xml
+++ b/example/android/app/src/debug/AndroidManifest.xml
@@ -1,6 +1,7 @@
-
diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml
index 99809f5..eff4d01 100644
--- a/example/android/app/src/main/AndroidManifest.xml
+++ b/example/android/app/src/main/AndroidManifest.xml
@@ -1,7 +1,8 @@
+ package="boi.walle.modal_progress_hud_nsn_example">
-
-
@@ -39,4 +31,4 @@
android:name="flutterEmbedding"
android:value="2" />
-
\ No newline at end of file
+
diff --git a/example/android/app/src/main/kotlin/com/walle/modal_progress_hud_nsn_example/MainActivity.kt b/example/android/app/src/main/kotlin/boi/walle/example/MainActivity.kt
similarity index 66%
rename from example/android/app/src/main/kotlin/com/walle/modal_progress_hud_nsn_example/MainActivity.kt
rename to example/android/app/src/main/kotlin/boi/walle/example/MainActivity.kt
index a748316..5452efb 100644
--- a/example/android/app/src/main/kotlin/com/walle/modal_progress_hud_nsn_example/MainActivity.kt
+++ b/example/android/app/src/main/kotlin/boi/walle/example/MainActivity.kt
@@ -1,4 +1,4 @@
-package com.walle.modal_progress_hud_nsn_example
+package boi.walle.example
import io.flutter.embedding.android.FlutterActivity
diff --git a/example/android/app/src/main/kotlin/boi/walle/modal_progress_hud_nsn_example/MainActivity.kt b/example/android/app/src/main/kotlin/boi/walle/modal_progress_hud_nsn_example/MainActivity.kt
new file mode 100644
index 0000000..bffee25
--- /dev/null
+++ b/example/android/app/src/main/kotlin/boi/walle/modal_progress_hud_nsn_example/MainActivity.kt
@@ -0,0 +1,6 @@
+package boi.walle.modal_progress_hud_nsn_example
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/example/android/app/src/main/res/values-night/styles.xml b/example/android/app/src/main/res/values-night/styles.xml
index 449a9f9..06952be 100644
--- a/example/android/app/src/main/res/values-night/styles.xml
+++ b/example/android/app/src/main/res/values-night/styles.xml
@@ -3,14 +3,14 @@