From 71d83a58f7e8dd8c3ec0d8b8adddf9e0c967a6ee Mon Sep 17 00:00:00 2001 From: selankon Date: Mon, 5 Jul 2021 12:01:14 +0200 Subject: [PATCH 1/3] Update .gitignore --- .gitignore | 58 ++++++++++++++++++++++- example/.gitignore | 113 +++++++++++++++++++++------------------------ 2 files changed, 110 insertions(+), 61 deletions(-) diff --git a/.gitignore b/.gitignore index e9dc58d..bdf834e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,63 @@ -.DS_Store +# https://www.dartlang.org/guides/libraries/private-files + +# Files and directories created by pub .dart_tool/ +.packages +.pub/ +build/ +pubspec.lock + +# Directory created by dartdoc +/doc/api/ + +# IDE +*.iml // IntelliJ +*.ipr // IntelliJ +*.iws // IntelliJ +.idea/ // IntelliJ +.DS_Store // Mac + +# copied from https://github.com/flutter/plugins/blob/master/.gitignore +.DS_Store +.atom/ +.idea/ +.vscode/ .packages .pub/ +.dart_tool/ +pubspec.lock +flutter_export_environment.sh + +examples/all_plugins/pubspec.yaml +Podfile +Podfile.lock +Pods/ +.symlinks/ +**/Flutter/App.framework/ +**/Flutter/Flutter.framework/ +**/Flutter/Generated.xcconfig +**/Flutter/flutter_assets/ +ServiceDefinitions.json +xcuserdata/ +**/DerivedData/ + +local.properties +keystore.properties +.gradle/ +gradlew +gradlew.bat +gradle-wrapper.jar +.flutter-plugins-dependencies +*.iml + +GeneratedPluginRegistrant.h +GeneratedPluginRegistrant.m +GeneratedPluginRegistrant.java build/ +.flutter-plugins + +.project +.classpath +.settings diff --git a/example/.gitignore b/example/.gitignore index 07488ba..bdf834e 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -1,70 +1,63 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp +# https://www.dartlang.org/guides/libraries/private-files + +# Files and directories created by pub +.dart_tool/ +.packages +.pub/ +build/ +pubspec.lock + +# Directory created by dartdoc +/doc/api/ + +# IDE +*.iml // IntelliJ +*.ipr // IntelliJ +*.iws // IntelliJ +.idea/ // IntelliJ +.DS_Store // Mac + +# copied from https://github.com/flutter/plugins/blob/master/.gitignore .DS_Store .atom/ -.buildlog/ -.history -.svn/ - -# IntelliJ related -*.iml -*.ipr -*.iws .idea/ - -# Visual Studio Code related .vscode/ -# Flutter/Dart/Pub related -**/doc/api/ -.dart_tool/ -.flutter-plugins .packages -.pub-cache/ .pub/ -/build/ +.dart_tool/ +pubspec.lock +flutter_export_environment.sh -# Android related -**/android/**/gradle-wrapper.jar -**/android/.gradle -**/android/captures/ -**/android/gradlew -**/android/gradlew.bat -**/android/local.properties -**/android/**/GeneratedPluginRegistrant.java +examples/all_plugins/pubspec.yaml -# 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.* +Podfile +Podfile.lock +Pods/ +.symlinks/ +**/Flutter/App.framework/ +**/Flutter/Flutter.framework/ +**/Flutter/Generated.xcconfig +**/Flutter/flutter_assets/ +ServiceDefinitions.json +xcuserdata/ +**/DerivedData/ + +local.properties +keystore.properties +.gradle/ +gradlew +gradlew.bat +gradle-wrapper.jar +.flutter-plugins-dependencies +*.iml + +GeneratedPluginRegistrant.h +GeneratedPluginRegistrant.m +GeneratedPluginRegistrant.java +build/ +.flutter-plugins -# 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 +.project +.classpath +.settings From 51c6eb429d333aab341e408f907f23636f3e153c Mon Sep 17 00:00:00 2001 From: selankon Date: Mon, 5 Jul 2021 12:01:34 +0200 Subject: [PATCH 2/3] Update to AndroidX --- android/build.gradle | 2 +- android/gradle.properties | 2 + android/gradlew | 0 example/android/app/build.gradle | 6 +- .../android/app/src/main/AndroidManifest.xml | 8 +- example/android/gradle.properties | 2 + example/pubspec.lock | 75 ++++++++++--------- example/pubspec.yaml | 2 +- pubspec.lock | 69 +++++++++-------- 9 files changed, 95 insertions(+), 71 deletions(-) mode change 100644 => 100755 android/gradlew diff --git a/android/build.gradle b/android/build.gradle index b211d53..a7de000 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -25,7 +25,7 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 28 + compileSdkVersion 29 sourceSets { main.java.srcDirs += 'src/main/kotlin' diff --git a/android/gradle.properties b/android/gradle.properties index 8bd86f6..4d3226a 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1 +1,3 @@ org.gradle.jvmargs=-Xmx1536M +android.useAndroidX=true +android.enableJetifier=true \ No newline at end of file diff --git a/android/gradlew b/android/gradlew old mode 100644 new mode 100755 diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 782ae58..71e33f3 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 28 + compileSdkVersion 29 sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -39,8 +39,8 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.kasem.flutter_absolute_path_example" - minSdkVersion 16 - targetSdkVersion 28 + minSdkVersion 19 + targetSdkVersion 29 versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 5bf86b4..b8b007e 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,11 @@ + + + + +