Skip to content

Commit

Permalink
Merge pull request #120 from contentful/fix/update-proguard
Browse files Browse the repository at this point in the history
fix: update proguard to reflect dependency changes
  • Loading branch information
mariobodemann committed May 2, 2016
2 parents 4495819 + bbc910e commit c6dc70b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 15 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## Version [7.0.1][unreleased] - (in development)
## Version [7.0.2][unreleased] - (in development)
- stay tuned

## Version [7.0.1] - (2016-05-02)
- Changed: Updating proguard rules sample file to reflect dependency changes

## Version [7.0.0] - (2016-04-15)
- Fixed: Integration tests don't expect wrong entries
- Changed: Add java and os version to user agent
Expand Down Expand Up @@ -135,8 +138,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## Version 1.0.0 - 2014-08-13
Initial release.

[unreleased]: https://github.com/contentful/contentful.java/compare/java-sdk-7.0.0...HEAD
[7.0.0]: https://github.com/contentful/contentful.java/compare/java-sdk-6.1.2...java-sdk-7.0.0
[unreleased]: https://github.com/contentful/contentful.java/compare/java-sdk-7.0.1...HEAD
[7.0.1]: https://github.com/contentful/contentful.java/compare/java-sdk-7.0.0...java-sdk-7.0.1
[7.0.0]: https://github.com/contentful/contentful.java/compare/java-sdk-7.1.2...java-sdk-7.0.0
[6.1.2]: https://github.com/contentful/contentful.java/compare/java-sdk-6.1.1...java-sdk-6.1.2
[6.1.1]: https://github.com/contentful/contentful.java/compare/java-sdk-6.1.0...java-sdk-6.1.1
[6.1.0]: https://github.com/contentful/contentful.java/compare/java-sdk-6.0.0...java-sdk-6.1.0
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ Grab via Maven:
<dependency>
<groupId>com.contentful.java</groupId>
<artifactId>java-sdk</artifactId>
<version>7.0.0</version>
<version>7.0.1</version>
</dependency>
```
or Gradle:
```groovy
compile 'com.contentful.java:java-sdk:7.0.0'
compile 'com.contentful.java:java-sdk:7.0.1'
```

Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].
Expand Down Expand Up @@ -126,7 +126,7 @@ Copyright (c) 2016 Contentful GmbH. See [LICENSE.txt][6] for further details.


[1]: https://www.contentful.com
[2]: https://oss.sonatype.org/service/local/repositories/releases/content/com/contentful/java/java-sdk/7.0.0/java-sdk-7.0.0.jar
[2]: https://oss.sonatype.org/service/local/repositories/releases/content/com/contentful/java/java-sdk/7.0.1/java-sdk-7.0.1.jar
[3]: https://contentful.github.io/contentful.java/
[4]: https://www.contentful.com/developers/documentation/content-delivery-api/
[5]: https://square.github.io/okhttp/
Expand Down
36 changes: 27 additions & 9 deletions proguard-cda.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,46 @@
-keep class com.contentful.java.cda.** { *; }

# RxJava
-dontwarn rx.**
-dontwarn sun.misc.**

-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
long producerIndex;
long consumerIndex;
}

-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
rx.internal.util.atomic.LinkedQueueNode producerNode;
}

-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
rx.internal.util.atomic.LinkedQueueNode consumerNode;
}

# OkHttp
-keepattributes Signature
-keepattributes *Annotation*
-keep class com.squareup.okhttp.** { *; }
-keep interface com.squareup.okhttp.** { *; }
-dontwarn com.squareup.okhttp.**
-keep class okhttp3.** { *; }
-keep interface okhttp3.** { *; }
-dontwarn okhttp3.**

# Retrofit
-dontwarn retrofit.**
-keep class retrofit.** { *; }
-dontwarn retrofit2.**
-keep class retrofit2.** { *; }
-keepclasseswithmembers class * {
@retrofit.http.* <methods>;
@retrofit2.http.* <methods>;
}

# Okio
-keep class sun.misc.Unsafe { *; }
-dontwarn java.nio.file.*
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-dontwarn okio.**

# Gson
-keepattributes EnclosingMethod
-keep class com.google.gson.stream.** { *; }
-keep class com.google.gson.stream.** { *; }

# Android warnings
-dontwarn android.support.v4.**

# Kotlin
-dontwarn org.junit.**

0 comments on commit c6dc70b

Please sign in to comment.