diff --git a/android/local.properties b/android/local.properties
index 52acb9e..d0145e8 100644
--- a/android/local.properties
+++ b/android/local.properties
@@ -1,2 +1,2 @@
sdk.dir=/Users/bensonarafat/Library/Android/sdk
-flutter.sdk=/Users/bensonarafat/fvm/versions/3.39.0-0.1.pre
\ No newline at end of file
+flutter.sdk=/Users/bensonarafat/fvm/versions/3.39.0-0.1.pre
diff --git a/example/.metadata b/example/.metadata
index 68ebd18..b95fa4d 100644
--- a/example/.metadata
+++ b/example/.metadata
@@ -1,10 +1,30 @@
-# This file tracks properties of this Flutter project.
-# Used by Flutter tool to assess capabilities and perform upgrades etc.
-#
-# This file should be version controlled and should not be manually edited.
-
-version:
- revision: adc9dde3ba8563eebb824feb689f95eb947ab745
- channel: master
-
-project_type: app
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled and should not be manually edited.
+
+version:
+ revision: "adc901062556672b4138e18a4dc62a4be8f4b3c2"
+ channel: "stable"
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: adc901062556672b4138e18a4dc62a4be8f4b3c2
+ base_revision: adc901062556672b4138e18a4dc62a4be8f4b3c2
+ - platform: web
+ create_revision: adc901062556672b4138e18a4dc62a4be8f4b3c2
+ base_revision: adc901062556672b4138e18a4dc62a4be8f4b3c2
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/example/analysis_options.yaml b/example/analysis_options.yaml
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/example/analysis_options.yaml
@@ -0,0 +1 @@
+
diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle
index b49fc3a..6f5ae27 100644
--- a/example/android/app/build.gradle
+++ b/example/android/app/build.gradle
@@ -1,8 +1,9 @@
plugins {
id "com.android.application"
- id "kotlin-android"
+ id "org.jetbrains.kotlin.android"
id "dev.flutter.flutter-gradle-plugin"
}
+
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
@@ -10,6 +11,7 @@ if (localPropertiesFile.exists()) {
localProperties.load(reader)
}
}
+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
@@ -20,12 +22,9 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
-// apply plugin: 'com.android.application'
-// apply plugin: 'kotlin-android'
-// apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
-
android {
- compileSdkVersion flutter.compileSdkVersion
+ compileSdkVersion 34
+ namespace "com.example.super_tooltip_example"
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
@@ -39,7 +38,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.super_tooltip_example"
minSdkVersion flutter.minSdkVersion
- targetSdkVersion 28
+ targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
@@ -51,12 +50,17 @@ android {
signingConfig signingConfigs.debug
}
}
+
+ kotlinOptions {
+ jvmTarget = "1.8"
+ }
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+ }
}
flutter {
source '../..'
-}
-
-dependencies {
- // implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
\ No newline at end of file
diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml
index d8447f2..93d126e 100644
--- a/example/android/app/src/main/AndroidManifest.xml
+++ b/example/android/app/src/main/AndroidManifest.xml
@@ -15,7 +15,9 @@
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
- android:windowSoftInputMode="adjustResize">
+ android:exported="true"
+ android:windowSoftInputMode="adjustResize"
+ >
+