Skip to content

Commit 78c817a

Browse files
committed
Fixed android build
1 parent d55909b commit 78c817a

File tree

6 files changed

+64
-165
lines changed

6 files changed

+64
-165
lines changed

android/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,5 @@ android {
5454
}
5555

5656
dependencies {
57-
implementation 'com.jakewharton.timber:timber:4.7.1'
58-
testImplementation("org.jetbrains.kotlin:kotlin-test")
59-
testImplementation("org.mockito:mockito-core:5.0.0")
57+
implementation 'com.jakewharton.timber:timber:5.0.1'
6058
}

example/android/app/build.gradle

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

example/android/app/build.gradle.kts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* Copyright 2025 Nimrod Dayan nimroddayan.com
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
plugins {
19+
id("com.android.application")
20+
id("kotlin-android")
21+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
22+
id("dev.flutter.flutter-gradle-plugin")
23+
}
24+
25+
android {
26+
namespace = "com.nimroddayan.flutternsd.example"
27+
compileSdk = flutter.compileSdkVersion
28+
ndkVersion = flutter.ndkVersion
29+
30+
ndkVersion = "27.0.12077973"
31+
32+
compileOptions {
33+
sourceCompatibility = JavaVersion.VERSION_11
34+
targetCompatibility = JavaVersion.VERSION_11
35+
}
36+
37+
kotlinOptions {
38+
jvmTarget = JavaVersion.VERSION_11.toString()
39+
}
40+
41+
defaultConfig {
42+
applicationId = "com.nimroddayan.flutternsd.example"
43+
minSdk = flutter.minSdkVersion
44+
targetSdk = flutter.targetSdkVersion
45+
versionCode = flutter.versionCode
46+
versionName = flutter.versionName
47+
}
48+
49+
buildTypes {
50+
release {
51+
signingConfig = signingConfigs.getByName("debug")
52+
}
53+
}
54+
}
55+
56+
flutter {
57+
source = "../.."
58+
}
59+
60+
dependencies {
61+
implementation("com.jakewharton.timber:timber:5.0.1")
62+
}

example/android/build.gradle

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

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ distributionBase=GRADLE_USER_HOME
2020
distributionPath=wrapper/dists
2121
zipStoreBase=GRADLE_USER_HOME
2222
zipStorePath=wrapper/dists
23-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
23+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip

example/android/settings.gradle

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

0 commit comments

Comments
 (0)