Skip to content

Commit 9d1eac8

Browse files
author
NAVAL
authored
Merge pull request #23 from aeri/wip
Release v3.0.0
2 parents 0d29fe5 + 6447df3 commit 9d1eac8

32 files changed

+878
-602
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ doc/api/
2323

2424
.flutter-plugins
2525
.flutter-plugins-dependencies
26+
.idea/

.idea/libraries/Dart_SDK.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.idea/libraries/KotlinJavaRuntime.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.idea/runConfigurations/main_dart.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/workspace.xml

Lines changed: 0 additions & 36 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ If your device is among those affected and notifications are not displayed, plea
5151

5252
### Languages
5353

54-
Florae is currently translated into the following languages: `English`, `Español` and `Français` thanks to Samuel Pernet.
54+
Florae is currently translated into the following languages: `English`, `Español`, `Français`, `Nederlands`, `中文`, `Русский` and `Arabic`.
5555

5656
If you wish to contribute to Florae by adding a new language, just include the translation file in [`lib/l10n`](lib/l10n). I will be happy to accept your pull request.
5757

android/app/build.gradle

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
17
def localProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (localPropertiesFile.exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
612
}
713
}
814

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-
1415
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1516
if (flutterVersionCode == null) {
1617
flutterVersionCode = '1'
@@ -21,9 +22,7 @@ if (flutterVersionName == null) {
2122
flutterVersionName = '1.0'
2223
}
2324

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
25+
2726

2827
def keystoreProperties = new Properties()
2928
def keystorePropertiesFile = rootProject.file('key.properties')
@@ -49,7 +48,7 @@ android {
4948

5049
defaultConfig {
5150
applicationId "cat.naval.florae"
52-
minSdkVersion 16
51+
minSdkVersion flutter.minSdkVersion
5352
targetSdkVersion rootProject.ext.targetSdkVersion
5453
versionCode flutterVersionCode.toInteger()
5554
versionName flutterVersionName
@@ -74,7 +73,3 @@ android {
7473
flutter {
7574
source '../..'
7675
}
77-
78-
dependencies {
79-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
80-
}

android/build.gradle

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
buildscript {
2-
ext.kotlin_version = '1.7.10'
3-
ext {
4-
compileSdkVersion = 33 // or latest
5-
targetSdkVersion = 33 // or latest
6-
appCompatVersion = "1.4.2" // or latest
7-
}
8-
repositories {
9-
google()
10-
mavenCentral()
11-
}
12-
13-
dependencies {
14-
classpath 'com.android.tools.build:gradle:7.4.2'
15-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16-
}
1+
ext {
2+
compileSdkVersion = 34
3+
targetSdkVersion = 34
4+
appCompatVersion = "1.4.2"
175
}
186

197
allprojects {
@@ -37,6 +25,6 @@ subprojects {
3725
project.evaluationDependsOn(':app')
3826
}
3927

40-
task clean(type: Delete) {
28+
tasks.register("clean", Delete) {
4129
delete rootProject.buildDir
4230
}

android/settings.gradle

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
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+
}()
29

3-
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4-
def properties = new Properties()
10+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
511

6-
assert localPropertiesFile.exists()
7-
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
12+
repositories {
13+
google()
14+
mavenCentral()
15+
gradlePluginPortal()
16+
}
17+
}
818

9-
def flutterSdkPath = properties.getProperty("flutter.sdk")
10-
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11-
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
19+
plugins {
20+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21+
id "com.android.application" version "7.4.2" apply false
22+
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
23+
}
24+
25+
include ":app"

0 commit comments

Comments
 (0)