Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions MPChartLib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'com.android.library'
id 'maven-publish'
id 'kotlin-android'
id "com.android.library"
id "maven-publish"
id "kotlin-android"
id "com.vanniktech.maven.publish" version "0.34.0"
}

Expand All @@ -15,17 +15,17 @@ ext {
}

android {
namespace 'com.github.mikephil.charting'
namespace "com.github.mikephil.charting"
defaultConfig {
minSdkVersion 21
compileSdk 35
targetSdkVersion 35

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

consumerProguardFiles 'proguard-lib.pro'
consumerProguardFiles "proguard-lib.pro"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
Expand All @@ -45,14 +45,14 @@ android {
}

dependencies {
implementation 'androidx.annotation:annotation:1.9.1'
implementation 'androidx.core:core:1.16.0'
implementation "androidx.annotation:annotation:1.9.1"
implementation "androidx.core:core:1.16.0"
implementation "androidx.activity:activity-ktx:1.10.1"
testImplementation 'junit:junit:4.13.2'
testImplementation "junit:junit:4.13.2"
}

tasks.register('androidSourcesJar', Jar) {
archiveClassifier.set('sources')
tasks.register("androidSourcesJar", Jar) {
archiveClassifier.set("sources")
from android.sourceSets.main.java.srcDirs
}

Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
buildscript {
ext.kotlin_version = '2.2.20'
ext.kotlin_version = "2.2.20"

repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.13.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "com.android.tools.build:gradle:8.13.0"
classpath "com.github.dcendents:android-maven-gradle-plugin:2.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand All @@ -16,17 +16,17 @@ allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url "https://jitpack.io" }
}
}

@SuppressWarnings('unused')
@SuppressWarnings("unused")
static def getTag() {
def process = "git describe --tags --abbrev=0".execute()
return process.text.toString().trim()
}

@SuppressWarnings('unused')
@SuppressWarnings("unused")
static def getGitCommitCount() {
def process = "git rev-list HEAD --count".execute()
return process.text.toInteger()
Expand Down
2 changes: 0 additions & 2 deletions settings.gradle

This file was deleted.

2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include("MPChartLib")
include("app")
Loading