Skip to content

Commit 8a46b42

Browse files
authored
Merge pull request #417 from AppDevNext/PrepareKtsBuild
Prepare kts build
2 parents 7669088 + 287aa10 commit 8a46b42

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

MPChartLib/build.gradle

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
2-
id 'com.android.library'
3-
id 'maven-publish'
4-
id 'kotlin-android'
2+
id "com.android.library"
3+
id "maven-publish"
4+
id "kotlin-android"
55
id "com.vanniktech.maven.publish" version "0.34.0"
66
}
77

@@ -15,17 +15,17 @@ ext {
1515
}
1616

1717
android {
18-
namespace 'com.github.mikephil.charting'
18+
namespace "com.github.mikephil.charting"
1919
defaultConfig {
2020
minSdkVersion 21
2121
compileSdk 35
2222
targetSdkVersion 35
2323

2424
// VERSION_NAME no longer available as of 4.1
2525
// https://issuetracker.google.com/issues/158695880
26-
buildConfigField 'String', 'VERSION_NAME', "\"${getTag()}\""
26+
buildConfigField "String", "VERSION_NAME", "\"${getTag()}\""
2727

28-
consumerProguardFiles 'proguard-lib.pro'
28+
consumerProguardFiles "proguard-lib.pro"
2929
}
3030
compileOptions {
3131
sourceCompatibility JavaVersion.VERSION_17
@@ -45,14 +45,14 @@ android {
4545
}
4646

4747
dependencies {
48-
implementation 'androidx.annotation:annotation:1.9.1'
49-
implementation 'androidx.core:core:1.16.0'
48+
implementation "androidx.annotation:annotation:1.9.1"
49+
implementation "androidx.core:core:1.16.0"
5050
implementation "androidx.activity:activity-ktx:1.10.1"
51-
testImplementation 'junit:junit:4.13.2'
51+
testImplementation "junit:junit:4.13.2"
5252
}
5353

54-
tasks.register('androidSourcesJar', Jar) {
55-
archiveClassifier.set('sources')
54+
tasks.register("androidSourcesJar", Jar) {
55+
archiveClassifier.set("sources")
5656
from android.sourceSets.main.java.srcDirs
5757
}
5858

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
buildscript {
2-
ext.kotlin_version = '2.2.20'
2+
ext.kotlin_version = "2.2.20"
33

44
repositories {
55
google()
66
mavenCentral()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.13.0'
10-
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
9+
classpath "com.android.tools.build:gradle:8.13.0"
10+
classpath "com.github.dcendents:android-maven-gradle-plugin:2.1"
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1212
}
1313
}
@@ -16,17 +16,17 @@ allprojects {
1616
repositories {
1717
google()
1818
mavenCentral()
19-
maven { url 'https://jitpack.io' }
19+
maven { url "https://jitpack.io" }
2020
}
2121
}
2222

23-
@SuppressWarnings('unused')
23+
@SuppressWarnings("unused")
2424
static def getTag() {
2525
def process = "git describe --tags --abbrev=0".execute()
2626
return process.text.toString().trim()
2727
}
2828

29-
@SuppressWarnings('unused')
29+
@SuppressWarnings("unused")
3030
static def getGitCommitCount() {
3131
def process = "git rev-list HEAD --count".execute()
3232
return process.text.toInteger()

settings.gradle

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

settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include("MPChartLib")
2+
include("app")

0 commit comments

Comments
 (0)