Skip to content

Commit d0af7ae

Browse files
Merge pull request #74 from storytellerF/master
bump & add dontwarn proguard rules
2 parents 210e3ef + 07503d2 commit d0af7ae

File tree

5 files changed

+54
-8
lines changed

5 files changed

+54
-8
lines changed

.github/workflows/android.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,13 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v1
12+
13+
- name: set up JDK 17
14+
uses: actions/setup-java@v3
15+
with:
16+
java-version: '17'
17+
distribution: 'temurin'
18+
cache: gradle
19+
1220
- name: Run tests
1321
run: ./gradlew lint test

build.gradle

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,66 @@
11
buildscript {
22
repositories {
3-
jcenter()
3+
mavenCentral()
44
google()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:4.1.3'
7+
classpath 'com.android.tools.build:gradle:8.2.2'
88
}
99
}
1010

1111
repositories {
12-
jcenter()
12+
mavenCentral()
1313
google()
1414
}
1515

1616
apply plugin: 'com.android.library'
17+
apply plugin: 'maven-publish'
1718

1819
android {
19-
compileSdkVersion 30
20+
compileSdk 34
2021

2122
defaultConfig {
2223
minSdkVersion 15
2324
consumerProguardFiles 'proguard-rules.pro'
2425
}
26+
namespace "com.thegrizzlylabs.sardineandroid"
27+
28+
def javaVersion = JavaVersion.VERSION_17
29+
compileOptions {
30+
sourceCompatibility javaVersion
31+
targetCompatibility javaVersion
32+
}
33+
publishing {
34+
singleVariant("release") {
35+
withSourcesJar()
36+
}
37+
}
2538
}
2639

2740
dependencies {
28-
api 'com.squareup.okhttp3:okhttp:4.9.0'
41+
api 'com.squareup.okhttp3:okhttp:4.12.0'
2942

30-
implementation ('org.simpleframework:simple-xml:2.7.1') {
43+
implementation('org.simpleframework:simple-xml:2.7.1') {
3144
exclude module: 'stax'
3245
exclude module: 'stax-api'
3346
exclude module: 'xpp3'
3447
}
3548

36-
testImplementation 'junit:junit:4.13'
49+
testImplementation 'junit:junit:4.13.2'
3750
}
51+
//fixme uncomment this for print deprecation info
52+
//tasks.withType(JavaCompile) {
53+
// options.compilerArgs =
54+
// options.compilerArgs + ["-Xlint:deprecation", "-Xlint:unchecked"]
55+
//}
56+
afterEvaluate {
57+
publishing {
58+
publications {
59+
release(MavenPublication) {
60+
afterEvaluate {
61+
from components.release
62+
}
63+
}
64+
}
65+
}
66+
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip

jitpack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
jdk:
2+
- openjdk17

proguard-rules.pro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@
1212

1313
## OkHTTP
1414
-dontwarn okhttp3.internal.platform.ConscryptPlatform
15+
16+
-dontwarn org.simpleframework.xml.Element
17+
-dontwarn org.simpleframework.xml.ElementList
18+
-dontwarn org.simpleframework.xml.ElementListUnion
19+
-dontwarn org.simpleframework.xml.Namespace
20+
-dontwarn org.simpleframework.xml.Root
21+
-dontwarn org.simpleframework.xml.convert.Converter

0 commit comments

Comments
 (0)