-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fed4cd
commit 8d61729
Showing
12 changed files
with
523 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,72 @@ | ||
buildscript { | ||
ext.kotlin_version = '1.8.10' | ||
ext { | ||
minSdkVersion = 21 // or higher | ||
compileSdkVersion = 34 // or higher | ||
targetSdkVersion = 34 // or higher | ||
appCompatVersion = "1.4.2" // or higher | ||
} | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:gradle:7.4.2' | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
} | ||
} | ||
|
||
|
||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
mavenCentral() | ||
maven { | ||
// [required] background_fetch | ||
// compare https://github.com/transistorsoft/flutter_background_fetch/blob/master/help/INSTALL-ANDROID.md | ||
url "${project(':background_fetch').projectDir}/libs" | ||
} | ||
} | ||
} | ||
|
||
rootProject.buildDir = '../build' | ||
rootProject.buildDir = "../build" | ||
subprojects { | ||
project.buildDir = "${rootProject.buildDir}/${project.name}" | ||
project.evaluationDependsOn(':app') | ||
} | ||
subprojects { | ||
project.evaluationDependsOn(":app") | ||
} | ||
|
||
tasks.register("clean", Delete) { | ||
delete rootProject.buildDir | ||
} | ||
|
||
ext { | ||
compileSdkVersion = 34 // or higher / as desired | ||
targetSdkVersion = 34 // or higher / as desired | ||
appCompatVersion = "1.4.2" // or higher / as desired | ||
kotlin_version = "2.0.0" | ||
} | ||
|
||
|
||
// buildscript { | ||
// ext.kotlin_version = '1.8.10' | ||
// ext { | ||
// minSdkVersion = 21 // or higher | ||
// compileSdkVersion = 34 // or higher | ||
// targetSdkVersion = 34 // or higher | ||
// appCompatVersion = "1.4.2" // or higher | ||
// } | ||
// repositories { | ||
// google() | ||
// jcenter() | ||
// } | ||
|
||
// dependencies { | ||
// classpath 'com.android.tools.build:gradle:7.4.2' | ||
// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
// } | ||
// } | ||
|
||
|
||
// allprojects { | ||
// repositories { | ||
// google() | ||
// jcenter() | ||
// maven { | ||
// // [required] background_fetch | ||
// url "${project(':background_fetch').projectDir}/libs" | ||
// } | ||
// } | ||
// } | ||
|
||
// rootProject.buildDir = '../build' | ||
// subprojects { | ||
// project.buildDir = "${rootProject.buildDir}/${project.name}" | ||
// project.evaluationDependsOn(':app') | ||
// } | ||
|
||
// tasks.register("clean", Delete) { | ||
// delete rootProject.buildDir | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,41 @@ | ||
// Copyright 2014 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
// // Copyright 2014 The Flutter Authors. All rights reserved. | ||
// // Use of this source code is governed by a BSD-style license that can be | ||
// // found in the LICENSE file. | ||
|
||
include ':app' | ||
// include ':app' | ||
|
||
def localPropertiesFile = new File(rootProject.projectDir, "local.properties") | ||
def properties = new Properties() | ||
// def localPropertiesFile = new File(rootProject.projectDir, "local.properties") | ||
// def properties = new Properties() | ||
|
||
assert localPropertiesFile.exists() | ||
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } | ||
// assert localPropertiesFile.exists() | ||
// localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } | ||
|
||
def flutterSdkPath = properties.getProperty("flutter.sdk") | ||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties" | ||
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" | ||
// def flutterSdkPath = properties.getProperty("flutter.sdk") | ||
// assert flutterSdkPath != null, "flutter.sdk not set in local.properties" | ||
// apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" | ||
|
||
pluginManagement { | ||
def flutterSdkPath = { | ||
def properties = new Properties() | ||
file("local.properties").withInputStream { properties.load(it) } | ||
def flutterSdkPath = properties.getProperty("flutter.sdk") | ||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties" | ||
return flutterSdkPath | ||
}() | ||
|
||
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") | ||
|
||
repositories { | ||
google() | ||
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
} | ||
|
||
plugins { | ||
id "dev.flutter.flutter-plugin-loader" version "1.0.0" | ||
id "com.android.application" version "7.3.0" apply false | ||
id "org.jetbrains.kotlin.android" version "2.0.0" apply false | ||
} | ||
|
||
include ":app" |
Oops, something went wrong.