1# Copyright (C) 2021 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Prevent Parcelizer objects from being removed or renamed.
16-keep public class androidx.wear.watchface.complications.data.**Parcelizer { *; }
17-keep public class androidx.wear.watchface.complications.data.DefaultComplicationDataSourcePolicyWireFormat { *; }
18-keep public class android.support.wearable.complications.ComplicationData { *; }
19-keep public class android.support.wearable.complications.ComplicationProviderInfo  { *; }
20-keep public class android.support.wearable.complications.ComplicationText { *; }
21-keep public class android.support.wearable.complications.ComplicationTextTemplate  { *; }
22-keep public class android.support.wearable.complications.TimeDependentText { *; }
23-keep public class android.support.wearable.complications.TimeDifferenceText { *; }
24-keep public class android.support.wearable.complications.TimeFormatText { *; }
25-keep public class android.graphics.drawable.Icon { *; }
26
27# Ensure our sanitizing of EditorSession.usr_style doesn't break due to renames.
28-keep public class kotlinx.coroutines.flow.MutableStateFlow { *; }
29
30# Ensure that the class members of serialized form of complication data retained
31-keepclassmembers class android.support.wearable.complications.ComplicationData$SerializedForm {
32  <fields>;
33  <methods>;
34}
35