File tree 5 files changed +27
-34
lines changed
5 files changed +27
-34
lines changed Original file line number Diff line number Diff line change 2
2
- Feature [ #500 ] ( https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/500 ) -
3
3
Added ` onDismiss ` callback in ` ShowCaseWidget ` which will trigger whenever ` onDismiss ` method is
4
4
called
5
+ - Fixed example app to run in flutter version ` v3.29.0 `
5
6
6
7
## [ 4.0.1]
7
8
- Fixed [ #493 ] ( https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/493 ) - ShowCase.withWidget not showing issue
Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ }
1
6
def localProperties = new Properties ()
2
7
def localPropertiesFile = rootProject. file(' local.properties' )
3
8
if (localPropertiesFile. exists()) {
@@ -6,11 +11,6 @@ if (localPropertiesFile.exists()) {
6
11
}
7
12
}
8
13
9
- def flutterRoot = localProperties. getProperty(' flutter.sdk' )
10
- if (flutterRoot == null ) {
11
- throw new GradleException (" Flutter SDK not found. Define location with flutter.sdk in the local.properties file." )
12
- }
13
-
14
14
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
15
15
if (flutterVersionCode == null ) {
16
16
flutterVersionCode = ' 1'
@@ -21,10 +21,6 @@ if (flutterVersionName == null) {
21
21
flutterVersionName = ' 1.0'
22
22
}
23
23
24
- apply plugin : ' com.android.application'
25
- apply plugin : ' kotlin-android'
26
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
27
-
28
24
android {
29
25
compileSdkVersion 34
30
26
@@ -58,7 +54,6 @@ flutter {
58
54
}
59
55
60
56
dependencies {
61
- implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
62
57
testImplementation ' junit:junit:4.13.1'
63
58
androidTestImplementation ' com.android.support.test:runner:1.0.2'
64
59
androidTestImplementation ' com.android.support.test.espresso:espresso-core:3.0.2'
Original file line number Diff line number Diff line change 1
- buildscript {
2
- ext. kotlin_version = ' 1.7.10'
3
- repositories {
4
- google()
5
- jcenter()
6
- }
7
-
8
- dependencies {
9
- classpath ' com.android.tools.build:gradle:7.3.0'
10
- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
11
- }
12
- }
13
-
14
1
allprojects {
15
2
repositories {
16
3
google()
Original file line number Diff line number Diff line change 1
- include ' :app'
1
+ pluginManagement {
2
+ def flutterSdkPath = {
3
+ def properties = new Properties ()
4
+ file(" local.properties" ). withInputStream { properties. load(it) }
5
+ def flutterSdkPath = properties. getProperty(" flutter.sdk" )
6
+ assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
7
+ return flutterSdkPath
8
+ }()
2
9
3
- def flutterProjectRoot = rootProject . projectDir . parentFile . toPath( )
10
+ includeBuild( " $f lutterSdkPath /packages/flutter_tools/gradle " )
4
11
5
- def plugins = new Properties ()
6
- def pluginsFile = new File (flutterProjectRoot. toFile(), ' .flutter-plugins' )
7
- if (pluginsFile. exists()) {
8
- pluginsFile. withReader(' UTF-8' ) { reader -> plugins. load(reader) }
12
+ repositories {
13
+ google()
14
+ mavenCentral()
15
+ gradlePluginPortal()
16
+ }
9
17
}
10
18
11
- plugins. each { name, path ->
12
- def pluginDirectory = flutterProjectRoot . resolve(path) . resolve( ' android ' ) . toFile()
13
- include " : $n ame "
14
- project( " : $n ame " ) . projectDir = pluginDirectory
19
+ plugins {
20
+ id " dev.flutter.flutter-plugin-loader " version " 1.0.0 "
21
+ id " com.android.application " version " 7.3.0 " apply false
22
+ id " org.jetbrains.kotlin.android " version " 1.7.10 " apply false
15
23
}
24
+
25
+ include " :app"
Original file line number Diff line number Diff line change 1
1
import Cocoa
2
2
import FlutterMacOS
3
3
4
- @NSApplicationMain
4
+ @main
5
5
class AppDelegate : FlutterAppDelegate {
6
6
override func applicationShouldTerminateAfterLastWindowClosed( _ sender: NSApplication ) -> Bool {
7
7
return true
You can’t perform that action at this time.
0 commit comments