Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
added proguard rule for gson
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit committed Dec 17, 2018
1 parent 0c02e9b commit fda49eb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
11 changes: 11 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,14 @@ public *;
-keep class com.simplecityapps.**
-keep interface com.simplecityapps.**

##---------------Begin: proguard configuration for Gson ----------
# Gson uses generic type information stored in a class file when working with fields. Proguard
# removes such information by default, so configure it to keep all of it.
-keepattributes Signature

# Gson specific classes
-keep class sun.misc.Unsafe { *; }
#-keep class com.google.gson.stream.** { *; }

# Application classes that will be serialized/deserialized over Gson
-keep class com.music.player.bhandari.m.trackInfo.models.** { *; }
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package com.music.player.bhandari.m.trackInfo.models

import android.support.annotation.Keep
import com.music.player.bhandari.m.trackInfo.models.album.AlbumWrap
import com.music.player.bhandari.m.trackInfo.models.similar.SimilartracksWrap
import com.music.player.bhandari.m.trackInfo.models.track.TrackWrap
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

@Keep
interface TrackInfoService {

@GET("?method=track.getInfo&api_key=4e464c9ca4e6763aca6d5a7a04728c77&autocorrect=1&format=json")
Expand Down
6 changes: 3 additions & 3 deletions app/version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Sun Dec 16 12:09:06 IST 2018
VERSION_NUMBER=187
VERSION_BUILD=366
#Sun Dec 16 16:46:20 IST 2018
VERSION_NUMBER=189
VERSION_BUILD=376
VERSION_PATCH=0

0 comments on commit fda49eb

Please sign in to comment.