Skip to content
This repository was archived by the owner on Feb 8, 2022. It is now read-only.

Commit cab15bb

Browse files
author
florent champigny
committed
Added rotations
1 parent be72da6 commit cab15bb

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

app/build.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.application'
2+
apply plugin: 'com.github.triplet.play'
23

34
android {
45
compileSdkVersion project.sdk
@@ -28,3 +29,10 @@ dependencies {
2829

2930
compile project(":expectanim")
3031
}
32+
33+
play {
34+
serviceAccountEmail = '[email protected]'
35+
jsonFile = file('keys.json')
36+
track = 'production'
37+
uploadImages = true
38+
}

app/src/main/AndroidManifest.xml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
</activity>
1818
<activity android:name=".ScrollActivity"/>
1919
<activity android:name=".SampleActivity"/>
20+
<activity android:name=".RotationActivity"/>
2021
</application>
2122

2223
</manifest>

app/src/main/java/com/github/florent37/expectanim/sample/MainActivity.java

+8
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
import android.os.Bundle;
55
import android.support.v7.app.AppCompatActivity;
66

7+
import com.github.florent37.expectanim.ExpectAnim;
8+
79
import butterknife.ButterKnife;
810
import butterknife.OnClick;
911

1012
import static com.github.florent37.expectanim.core.Expectations.height;
13+
import static com.github.florent37.expectanim.core.Expectations.invisible;
1114
import static com.github.florent37.expectanim.core.Expectations.scale;
1215

1316

@@ -30,4 +33,9 @@ public void onScrollClicked(){
3033
startActivity(new Intent(this, ScrollActivity.class));
3134
}
3235

36+
@OnClick(R.id.rotation)
37+
public void onRotationClicked(){
38+
startActivity(new Intent(this, RotationActivity.class));
39+
}
40+
3341
}

0 commit comments

Comments
 (0)