Skip to content

Commit 29bbcb9

Browse files
authored
Merge pull request #252 from Wolfteam/feature/flutter_3.35
Feature/flutter 3.35
2 parents 72dc5ee + 421ec8f commit 29bbcb9

91 files changed

Lines changed: 2681 additions & 2535 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fvm/fvm_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"flutterSdkVersion": "3.32.4"
2+
"flutterSdkVersion": "3.41.2"
33
}

.fvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"flutter": "3.32.4",
2+
"flutter": "3.41.2",
33
"flavors": {}
44
}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,7 @@ app.*.symbols
150150
!/dev/ci/**/Gemfile.lock
151151

152152
# FVM Version Cache
153-
.fvm/
153+
.fvm/
154+
155+
# JetBrains Junie
156+
.junie/

android/app/build.gradle

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

android/app/build.gradle.kts

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
import java.io.FileInputStream
2+
import java.util.Properties
3+
4+
plugins {
5+
id("com.android.application")
6+
// START: FlutterFire Configuration
7+
id("com.google.gms.google-services")
8+
// END: FlutterFire Configuration
9+
id("org.jetbrains.kotlin.android")
10+
id("dev.flutter.flutter-gradle-plugin")
11+
}
12+
13+
val localProperties = Properties().apply {
14+
val localPropertiesFile = rootProject.file("local.properties")
15+
if (localPropertiesFile.exists()) {
16+
localPropertiesFile.reader(Charsets.UTF_8).use { load(it) }
17+
}
18+
}
19+
20+
val flutterVersionCode = localProperties.getProperty("flutter.versionCode")?.toInt() ?: 1
21+
22+
val flutterVersionName = localProperties.getProperty("flutter.versionName") ?: "1.0"
23+
24+
val keystoreProperties = Properties().apply {
25+
val keystorePropertiesFile = rootProject.file("key.properties")
26+
if (keystorePropertiesFile.exists()) {
27+
FileInputStream(keystorePropertiesFile).use { load(it) }
28+
}
29+
}
30+
31+
android {
32+
namespace = "com.miraisoft.shiori"
33+
compileSdk = flutter.compileSdkVersion
34+
ndkVersion = flutter.ndkVersion
35+
36+
packagingOptions {
37+
jniLibs {
38+
useLegacyPackaging = true
39+
}
40+
}
41+
42+
compileOptions {
43+
// Flag to enable support for the new language APIs
44+
isCoreLibraryDesugaringEnabled = true
45+
sourceCompatibility = JavaVersion.VERSION_11
46+
targetCompatibility = JavaVersion.VERSION_11
47+
}
48+
49+
kotlinOptions {
50+
jvmTarget = JavaVersion.VERSION_11.toString()
51+
}
52+
53+
sourceSets {
54+
getByName("main") {
55+
java.srcDirs("src/main/kotlin")
56+
}
57+
}
58+
59+
// Temporary workaround as per https://issuetracker.google.com/issues/158060799
60+
lint {
61+
disable.add("InvalidPackage")
62+
checkReleaseBuilds = false
63+
}
64+
65+
defaultConfig {
66+
multiDexEnabled = true
67+
applicationId = "com.miraisoft.shiori"
68+
// You can update the following values to match your application needs.
69+
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
70+
minSdk = flutter.minSdkVersion
71+
targetSdk = flutter.targetSdkVersion
72+
versionCode = flutterVersionCode
73+
versionName = flutterVersionName
74+
}
75+
76+
signingConfigs {
77+
create("release") {
78+
keyAlias = keystoreProperties.getProperty("keyAlias")
79+
keyPassword = keystoreProperties.getProperty("keyPassword")
80+
storeFile = keystoreProperties.getProperty("storeFile")?.let { file(it) }
81+
storePassword = keystoreProperties.getProperty("storePassword")
82+
}
83+
}
84+
85+
buildTypes {
86+
getByName("release") {
87+
signingConfig = signingConfigs.getByName("release")
88+
89+
// Enables code shrinking, obfuscation, and optimization for only
90+
// your project's release build type.
91+
isMinifyEnabled = true
92+
93+
// Enables resource shrinking, which is performed by the
94+
// Android Gradle plugin.
95+
isShrinkResources = true
96+
97+
// Includes the default ProGuard rules files that are packaged with
98+
// the Android Gradle plugin. To learn more, go to the section about
99+
// R8 configuration files.
100+
proguardFiles(
101+
getDefaultProguardFile("proguard-android-optimize.txt"),
102+
"proguard-rules.pro"
103+
)
104+
}
105+
}
106+
}
107+
108+
flutter {
109+
source = "../.."
110+
}
111+
112+
dependencies {
113+
implementation("androidx.annotation:annotation:1.1.0")
114+
implementation("com.jakewharton.threetenabp:threetenabp:1.2.3")
115+
116+
// Required by the notifications plugin
117+
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
118+
implementation("androidx.window:window:1.0.0")
119+
implementation("androidx.window:window-java:1.0.0")
120+
}

android/build.gradle

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

android/build.gradle.kts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
allprojects {
2+
repositories {
3+
google()
4+
mavenCentral()
5+
}
6+
}
7+
8+
rootProject.buildDir = File(rootProject.projectDir, "../build")
9+
10+
subprojects {
11+
buildDir = File(rootProject.buildDir, name)
12+
evaluationDependsOn(":app")
13+
}
14+
15+
tasks.register<Delete>("clean") {
16+
delete(rootProject.buildDir)
17+
}

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip

android/settings.gradle

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

android/settings.gradle.kts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
pluginManagement {
2+
val flutterSdkPath = run {
3+
val properties = java.util.Properties()
4+
file("local.properties").inputStream().use { properties.load(it) }
5+
val flutterSdkPath = properties.getProperty("flutter.sdk")
6+
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
7+
flutterSdkPath
8+
}
9+
10+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
11+
12+
repositories {
13+
google()
14+
mavenCentral()
15+
gradlePluginPortal()
16+
}
17+
}
18+
19+
plugins {
20+
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
21+
id("com.android.application") version "8.7.3" apply false
22+
// START: FlutterFire Configuration
23+
id("com.google.gms.google-services") version "4.4.2" apply false
24+
// END: FlutterFire Configuration
25+
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
26+
}
27+
28+
include(":app")

0 commit comments

Comments
 (0)