-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsumer-rules.pro
More file actions
23 lines (20 loc) · 1.27 KB
/
Copy pathconsumer-rules.pro
File metadata and controls
23 lines (20 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# GeoPoint クラスとそのメンバーを保持
-keep class com.mapconductor.googlemaps.GeoPoint { *; }
# GeoPoint のコンパニオンオブジェクト内のメソッドも保持する場合(例: fromLatLng)
# 通常、GeoPoint自体をkeepすれば companion object も保持されることが多いが、明示も可能
-keepclassmembers class com.mapconductor.googlemaps.GeoPoint$Companion {
public static com.mapconductor.googlemaps.GeoPoint fromLatLong(double, double);
public static com.mapconductor.googlemaps.GeoPoint fromLongLat(double, double);
}
# MapCameraPosition クラスとそのメンバーを保持
# @JvmOverloads で生成されたコンストラクタも暗黙的に保持される
-keep class com.mapconductor.googlemaps.MapCameraPosition { *; }
# データクラスのフィールド名を保持したい場合(例: JSONシリアライズ用)
-keepclassmembers class com.mapconductor.googlemaps.MapCameraPosition {
public com.mapconductor.googlemaps.GeoPoint target;
public double zoom;
public double bearing;
public double tilt;
}
# (注意: -keep class ... { *; } は上記 -keepclassmembers ... を包含するので、
# クラス全体を保持する場合はフィールド個別の keepclassmembers は不要なことが多い)