diff --git a/MPChartExample/build.gradle b/MPChartExample/build.gradle index 2d607e9991..4dc72be95e 100644 --- a/MPChartExample/build.gradle +++ b/MPChartExample/build.gradle @@ -1,11 +1,11 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 28 defaultConfig { applicationId "com.xxmassdeveloper.mpchartexample" + compileSdk 33 minSdkVersion 16 - targetSdkVersion 28 + targetSdkVersion 33 versionCode 57 versionName '3.1.0' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" @@ -17,10 +17,11 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } + namespace 'com.xxmassdeveloper.mpchartexample' } dependencies { - implementation "androidx.appcompat:appcompat:1.0.2" - implementation 'com.google.android.material:material:1.0.0' + implementation "androidx.appcompat:appcompat:1.6.1" + implementation 'com.google.android.material:material:1.9.0' implementation project(':MPChartLib') } diff --git a/MPChartExample/src/main/AndroidManifest.xml b/MPChartExample/src/main/AndroidManifest.xml index 99334e601a..f67419bf07 100644 --- a/MPChartExample/src/main/AndroidManifest.xml +++ b/MPChartExample/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ - + @@ -12,6 +11,7 @@ android:theme="@style/AppTheme"> diff --git a/MPChartLib/build.gradle b/MPChartLib/build.gradle index 0fb6dc7036..1e58d9b20d 100644 --- a/MPChartLib/build.gradle +++ b/MPChartLib/build.gradle @@ -1,16 +1,12 @@ apply plugin: 'com.android.library' -apply plugin: 'com.github.dcendents.android-maven' -group='com.github.philjay' +group = 'com.github.philjay' android { - compileSdkVersion 28 - buildToolsVersion '28.0.3' defaultConfig { + compileSdk 33 minSdkVersion 14 - targetSdkVersion 28 - versionCode 3 - versionName '3.1.0' + targetSdkVersion 33 } buildTypes { release { @@ -21,27 +17,28 @@ android { testOptions { unitTests.returnDefaultValues = true // this prevents "not mocked" error } + namespace 'com.github.mikephil.charting' } dependencies { - implementation 'androidx.annotation:annotation:1.0.0' - testImplementation 'junit:junit:4.12' + implementation 'androidx.annotation:annotation:1.5.0' + testImplementation 'junit:junit:4.13.2' } task sourcesJar(type: Jar) { from android.sourceSets.main.java.srcDirs - classifier = 'sources' + archiveClassifier.set("sources") } task javadoc(type: Javadoc) { options.charSet = 'UTF-8' - failOnError false + failOnError false source = android.sourceSets.main.java.sourceFiles classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) } task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' + archiveClassifier.set('javadoc') from javadoc.destinationDir } diff --git a/MPChartLib/src/main/AndroidManifest.xml b/MPChartLib/src/main/AndroidManifest.xml index d75f87c7e2..af45ebcb44 100644 --- a/MPChartLib/src/main/AndroidManifest.xml +++ b/MPChartLib/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ - +