Skip to content

Commit febb809

Browse files
committed
upgrade
1 parent 6967b42 commit febb809

22 files changed

+398
-358
lines changed

android/app/build.gradle

Lines changed: 23 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,45 @@
1-
def localProperties = new Properties()
2-
def localPropertiesFile = rootProject.file('local.properties')
3-
if (localPropertiesFile.exists()) {
4-
localPropertiesFile.withReader('UTF-8') { reader ->
5-
localProperties.load(reader)
6-
}
7-
}
8-
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-
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15-
if (flutterVersionCode == null) {
16-
flutterVersionCode = '1'
17-
}
18-
19-
def flutterVersionName = localProperties.getProperty('flutter.versionName')
20-
if (flutterVersionName == null) {
21-
flutterVersionName = '1.0'
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
225
}
236

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27-
287
android {
29-
namespace "com.webaddicted.rallis"
30-
compileSdkVersion flutter.compileSdkVersion
31-
ndkVersion flutter.ndkVersion
8+
namespace = "com.webaddicted.rallis"
9+
compileSdk = 35
10+
ndkVersion = flutter.ndkVersion
3211

3312
compileOptions {
34-
sourceCompatibility JavaVersion.VERSION_1_8
35-
targetCompatibility JavaVersion.VERSION_1_8
13+
sourceCompatibility = JavaVersion.VERSION_17
14+
targetCompatibility = JavaVersion.VERSION_17
3615
}
3716

3817
kotlinOptions {
39-
jvmTarget = '1.8'
40-
}
41-
42-
sourceSets {
43-
main.java.srcDirs += 'src/main/kotlin'
18+
jvmTarget = JavaVersion.VERSION_17
4419
}
4520

4621
defaultConfig {
47-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
48-
applicationId "com.webaddicted.rallis"
49-
// You can update the following values to match your application needs.
50-
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
51-
minSdkVersion 21
52-
targetSdkVersion flutter.targetSdkVersion
53-
versionCode flutterVersionCode.toInteger()
54-
versionName flutterVersionName
55-
multiDexEnabled true
22+
applicationId = "com.webaddicted.rallis"
23+
minSdk = 24
24+
targetSdk = 35
25+
versionCode = 2
26+
versionName = "1.0.1"
27+
// multiDexEnabled true
5628
}
57-
5829
buildTypes {
5930
release {
60-
// TODO: Add your own signing config for the release build.
61-
// Signing with the debug keys for now, so `flutter run --release` works.
62-
signingConfig signingConfigs.debug
31+
signingConfig = signingConfigs.debug
6332
}
6433
}
6534
}
6635

6736
flutter {
68-
source '../..'
37+
source = "../.."
6938
}
7039

71-
dependencies {
72-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
73-
implementation 'androidx.multidex:multidex:2.0.1'
40+
dependencies{
41+
implementation 'com.google.android.material:material:1.12.0'
42+
}
43+
tasks.withType(JavaCompile).configureEach {
44+
options.compilerArgs << "-Xlint:-options"
7445
}

android/build.gradle

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
1-
buildscript {
2-
ext.kotlin_version = '1.7.10'
3-
repositories {
4-
google()
5-
mavenCentral()
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-
141
allprojects {
152
repositories {
163
google()
174
mavenCentral()
5+
maven {
6+
url 'https://jitpack.io'
7+
}
188
}
199
}
2010

21-
rootProject.buildDir = '../build'
11+
rootProject.buildDir = "../build"
2212
subprojects {
2313
project.buildDir = "${rootProject.buildDir}/${project.name}"
2414
}
15+
//subprojects {
16+
// project.evaluationDependsOn(":app")
17+
//}
18+
2519
subprojects {
26-
project.evaluationDependsOn(':app')
20+
afterEvaluate { project ->
21+
if (project.hasProperty('android')) {
22+
project.android {
23+
if (namespace == null) {
24+
namespace project.group
25+
}
26+
}
27+
}
28+
}
2729
}
2830

2931
tasks.register("clean", Delete) {

android/gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
org.gradle.jvmargs=-Xmx1536M
1+
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
22
android.useAndroidX=true
33
android.enableJetifier=true
4+
android.enableR8=true
5+
kotlin.jvm.target.validation.mode = IGNORE

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3+
#distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
35
zipStoreBase=GRADLE_USER_HOME
46
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip

android/local.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sdk.dir=C:\\android\\sdk
2+
flutter.sdk=C:\\android\\flutter
3+
flutter.buildMode=debug
4+
flutter.versionName=1.0.0
5+
flutter.versionCode=1

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 "8.2.2" apply false
22+
id "org.jetbrains.kotlin.android" version "2.0.0" apply false
23+
}
24+
25+
include ":app"

assets/fonts/Poppins-Bold.ttf

150 KB
Binary file not shown.

assets/fonts/Poppins-Italic.ttf

178 KB
Binary file not shown.

assets/fonts/Poppins-Light.ttf

156 KB
Binary file not shown.

assets/fonts/Poppins-Medium.ttf

153 KB
Binary file not shown.

0 commit comments

Comments
 (0)