Skip to content

Commit

Permalink
update for proguard
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma1326 committed Jan 22, 2019
1 parent b190515 commit 07ecd33
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sweetalertdialog/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

import java.io.IOException;

import androidx.annotation.Keep;

@Keep
public class OptAnimationLoader {

public static Animation loadAnimation(Context context, int id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

import com.simorgh.sweetalertdialog.progress.ProgressWheel;

import androidx.annotation.Keep;

@Keep
public class ProgressHelper {
private ProgressWheel mProgressWheel;
private boolean mToSpin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import android.view.animation.Animation;
import android.view.animation.Transformation;

import androidx.annotation.Keep;

@Keep
public class Rotate3dAnimation extends Animation {
private int mPivotXType = ABSOLUTE;
private int mPivotYType = ABSOLUTE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import android.view.animation.Animation;
import android.view.animation.Transformation;

import androidx.annotation.Keep;

@Keep
public class SuccessTickView extends View {
private float mDensity = -1;
private Paint mPaint;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

import com.simorgh.sweetalertdialog.progress.ProgressWheel;

import androidx.annotation.Keep;

@Keep
public class SweetAlertDialog extends Dialog implements View.OnClickListener {
private View mDialogView;
private AnimationSet mModalInAnim;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

import com.simorgh.sweetalertdialog.R;

import androidx.annotation.Keep;

/**
* A Material style progress wheel, compatible up to 2.2.
* Todd Davies' Progress Wheel https://github.com/Todd-Davies/ProgressWheel
Expand All @@ -28,6 +30,7 @@
* Licensed under the Apache License 2.0 license see:
* http://www.apache.org/licenses/LICENSE-2.0
*/
@Keep
public class ProgressWheel extends View {
private static final String TAG = ProgressWheel.class.getSimpleName();
private final int barLength = 16;
Expand Down

0 comments on commit 07ecd33

Please sign in to comment.