Skip to content

Commit 0ed5e05

Browse files
authored
1 parent 5cc7fe4 commit 0ed5e05

File tree

3 files changed

+23
-25
lines changed

3 files changed

+23
-25
lines changed

app/build.gradle

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
apply plugin: 'com.android.application'
2-
apply plugin: 'kotlin-android'
3-
apply plugin: 'kotlinx-serialization'
4-
1+
plugins {
2+
id 'com.android.application'
3+
id 'org.jetbrains.kotlin.android'
4+
id 'org.jetbrains.kotlin.plugin.serialization'
5+
}
56
android {
67
compileSdkVersion 32
78

build.gradle

+4-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
buildscript {
3-
ext.kotlin_version = "1.6.21"
4-
repositories {
5-
google()
6-
mavenCentral()
7-
}
8-
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.1.3'
10-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11-
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
12-
13-
// NOTE: Do not place your application dependencies here; they belong
14-
// in the individual module build.gradle files
15-
}
16-
}
17-
18-
allprojects {
19-
repositories {
20-
google()
21-
mavenCentral()
22-
}
2+
plugins {
3+
id 'com.android.application' version '7.1.3' apply false
4+
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
5+
id 'org.jetbrains.kotlin.plugin.serialization' version '1.6.21' apply false
236
}
247

258
task clean(type: Delete) {

settings.gradle

+14
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1+
pluginManagement {
2+
repositories {
3+
gradlePluginPortal()
4+
google()
5+
mavenCentral()
6+
}
7+
}
8+
dependencyResolutionManagement {
9+
repositories {
10+
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
11+
google()
12+
mavenCentral()
13+
}
14+
}
115
include ':app'
216
rootProject.name = "Superheroes App"

0 commit comments

Comments
 (0)