Skip to content

Commit c36b520

Browse files
committed
Adds the version 3.0.0 on jcenter and migrates to Android X
1 parent 507efed commit c36b520

20 files changed

+193
-61
lines changed

.idea/caches/build_file_checksums.ser

3 Bytes
Binary file not shown.

.idea/codeStyles/Project.xml

Lines changed: 109 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EasyFlipView/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ext {
66
/*
77
PUBLISH_GROUP_ID = 'com.wajahatkarim3.EasyFlipView'
88
PUBLISH_ARTIFACT_ID = 'EasyFlipView'
9-
PUBLISH_VERSION = '2.0.0'
9+
PUBLISH_VERSION = '3.0.0'
1010
*/
1111

1212
bintrayRepo = "EasyFlipView"
@@ -21,7 +21,7 @@ ext {
2121
siteUrl = 'https://github.com/wajahatkarim3/EasyFlipView'
2222
gitUrl = 'https://github.com/wajahatkarim3/EasyFlipView.git'
2323

24-
libraryVersion = '2.1.2'
24+
libraryVersion = '3.0.0'
2525

2626
developerId = 'wajahatkarim3'
2727
developerName = 'Wajahat Karim'
@@ -41,7 +41,7 @@ android {
4141
versionCode 1
4242
versionName "1.0"
4343

44-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
44+
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
4545

4646
}
4747

@@ -59,10 +59,10 @@ android {
5959

6060
dependencies {
6161
implementation fileTree(dir: 'libs', include: ['*.jar'])
62-
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
62+
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
6363
exclude group: 'com.android.support', module: 'support-annotations'
6464
})
65-
implementation "com.android.support:appcompat-v7:$supportVersion"
65+
implementation 'androidx.appcompat:appcompat:1.0.0'
6666
testImplementation 'junit:junit:4.12'
6767
}
6868

EasyFlipView/src/main/java/com/wajahatkarim3/easyflipview/EasyFlipView.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* For more information, check http://github.com/wajahatkarim3/EasyFlipView
2424
*
2525
* @author Wajahat Karim (http://wajahatkarim.com)
26-
* @version 1.0.1 01/11/2017
26+
* @version 3.0.0 28/03/2019
2727
*/
2828
public class EasyFlipView extends FrameLayout {
2929

@@ -132,6 +132,7 @@ protected void onFinishInflate() {
132132

133133
findViews();
134134
changeCameraDistance();
135+
setupInitializations();
135136
}
136137

137138
@Override
@@ -192,6 +193,11 @@ private void findViews() {
192193
}
193194
}
194195

196+
private void setupInitializations()
197+
{
198+
mCardBackLayout.setVisibility(View.GONE);
199+
}
200+
195201
private void loadAnimations() {
196202
if (flipType.equalsIgnoreCase("horizontal")) {
197203

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Changes exist in the [releases](https://github.com/wajahatkarim3/EasyFlipView/re
2727

2828
💻 Installation
2929
============
30-
Add this in your app's build.gradle file:
30+
Add this in your app's `build.gradle` file:
3131
```groovy
3232
dependencies {
33-
implementation 'com.wajahatkarim3.EasyFlipView:EasyFlipView:2.1.2'
33+
implementation 'com.wajahatkarim3.EasyFlipView:EasyFlipView:3.0.0'
3434
}
3535
```
3636

@@ -40,7 +40,7 @@ Or add EasyFlipView as a new dependency inside your pom.xml
4040
<dependency>
4141
<groupId>com.wajahatkarim3.EasyFlipView</groupId>
4242
<artifactId>EasyFlipView</artifactId>
43-
<version>2.1.2</version>
43+
<version>3.0.0</version>
4444
<type>pom</type>
4545
</dependency>
4646
```
@@ -334,6 +334,10 @@ Wajahat Karim
334334
- [**iGio90**](https://github.com/iGio90) for adding dynamic views support [Pull Request # 10](https://github.com/wajahatkarim3/EasyFlipView/pull/10)
335335
- [**Sachin Varma**](https://www.linkedin.com/in/sachin-varma-58b243118/) for adding vertical animations support [Pull Request # 12](https://github.com/wajahatkarim3/EasyFlipView/pull/12)
336336
- [**Sachin Varma**](https://www.linkedin.com/in/sachin-varma-58b243118/) for adding multi-dimension animations support [Pull Request # 23](https://github.com/wajahatkarim3/EasyFlipView/pull/23)
337+
- [**Sachin Varma**](https://www.linkedin.com/in/sachin-varma-58b243118/) for adding multi-dimension animations support [Pull Request # 23](https://github.com/wajahatkarim3/EasyFlipView/pull/23)
338+
- [**Daniel Luque**](https://github.com/DrankoLQ) for updating the `targetSdk` to 28 [Pull Request # 30](https://github.com/wajahatkarim3/EasyFlipView/pull/30)
339+
- [**Aditya Zope**](https://github.com/adzo261) for adding the feature to flip card only once. [Pull Request # 33](https://github.com/wajahatkarim3/EasyFlipView/pull/33)
340+
- [**Bruno Correia**](https://github.com/bffcorreia) for removing `<application>` tag from `AndroidManifest.xml`. [Pull Request # 38](https://github.com/wajahatkarim3/EasyFlipView/pull/38) and fixing the card animation glitch issue [Pull Request # 39](https://github.com/wajahatkarim3/EasyFlipView/pull/39)
337341

338342

339343
# 👍 How to Contribute

app/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android {
99
targetSdkVersion 28
1010
versionCode 1
1111
versionName "1.0"
12-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12+
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1313
}
1414
buildTypes {
1515
release {
@@ -24,13 +24,13 @@ android {
2424

2525
dependencies {
2626
implementation fileTree(include: ['*.jar'], dir: 'libs')
27-
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
27+
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
2828
exclude group: 'com.android.support', module: 'support-annotations'
2929
})
30-
implementation "com.android.support:appcompat-v7:$supportVersion"
31-
implementation "com.android.support:design:$supportVersion"
32-
implementation "com.android.support:support-v4:$supportVersion"
33-
implementation "com.android.support:cardview-v7:$supportVersion"
30+
implementation 'androidx.appcompat:appcompat:1.0.0'
31+
implementation 'com.google.android.material:material:1.0.0'
32+
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
33+
implementation 'androidx.cardview:cardview:1.0.0'
3434
testImplementation 'junit:junit:4.12'
3535

3636
implementation project(":EasyFlipView")

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
<category android:name="android.intent.category.LAUNCHER" />
1616
</intent-filter>
1717
</activity>
18-
<activity android:name=".SimpleViewFlipActivity" />
18+
<activity android:name=".SimpleViewFlipActivity"
19+
android:windowSoftInputMode="adjustResize"/>
1920
<activity android:name=".RecyclerViewFlipActivity" />
2021
<activity android:name=".FlipOnceExampleActivity"></activity>
2122
</application>

app/src/main/java/com/wajahatkarim3/easyflipview/demo/FlipOnceExampleActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.wajahatkarim3.easyflipview.demo;
22

3-
import android.support.v7.app.AppCompatActivity;
3+
import androidx.appcompat.app.AppCompatActivity;
44
import android.os.Bundle;
55
import android.view.View;
66
import android.widget.Toast;

app/src/main/java/com/wajahatkarim3/easyflipview/demo/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.wajahatkarim3.easyflipview.demo;
22

33
import android.content.Intent;
4-
import android.support.v7.app.AppCompatActivity;
4+
import androidx.appcompat.app.AppCompatActivity;
55
import android.os.Bundle;
66
import android.view.View;
77

app/src/main/java/com/wajahatkarim3/easyflipview/demo/RecyclerViewFlipActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package com.wajahatkarim3.easyflipview.demo;
22

33
import android.os.Bundle;
4-
import android.support.v7.app.AppCompatActivity;
5-
import android.support.v7.widget.GridLayoutManager;
6-
import android.support.v7.widget.RecyclerView;
4+
import androidx.appcompat.app.AppCompatActivity;
5+
import androidx.recyclerview.widget.GridLayoutManager;
6+
import androidx.recyclerview.widget.RecyclerView;
77
import java.util.ArrayList;
88
import java.util.List;
99

app/src/main/java/com/wajahatkarim3/easyflipview/demo/SampleAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.wajahatkarim3.easyflipview.demo;
22

3-
import android.support.v7.widget.RecyclerView;
3+
import androidx.recyclerview.widget.RecyclerView;
44
import android.view.LayoutInflater;
55
import android.view.View;
66
import android.view.ViewGroup;

app/src/main/java/com/wajahatkarim3/easyflipview/demo/SimpleViewFlipActivity.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.wajahatkarim3.easyflipview.demo;
22

33
import android.os.Bundle;
4-
import android.support.v7.app.AppCompatActivity;
4+
import androidx.appcompat.app.AppCompatActivity;
55
import android.view.View;
66
import android.widget.Toast;
77
import com.wajahatkarim3.easyflipview.EasyFlipView;
@@ -18,7 +18,7 @@ protected void onCreate(Bundle savedInstanceState) {
1818
setContentView(R.layout.activity_simple_view);
1919

2020
final EasyFlipView easyFlipView = (EasyFlipView) findViewById(R.id.easyFlipView);
21-
easyFlipView.setFlipDuration(1000);
21+
easyFlipView.setFlipDuration(10000);
2222
easyFlipView.setFlipEnabled(true);
2323

2424
findViewById(R.id.imgFrontCard).setOnClickListener(new View.OnClickListener() {
@@ -48,8 +48,9 @@ public void onViewFlipCompleted(EasyFlipView easyFlipView, EasyFlipView.FlipStat
4848

4949

5050
final EasyFlipView easyFlipView2 = (EasyFlipView) findViewById(R.id.easyFlipView2);
51-
easyFlipView2.setToVerticalType();
52-
easyFlipView2.setFlipTypeFromBack();
51+
easyFlipView2.setFlipDuration(10000);
52+
easyFlipView2.setToHorizontalType();
53+
easyFlipView2.setFlipTypeFromLeft();
5354

5455

5556
}

app/src/main/res/layout/activity_recyclerview_flip.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
88
>
9-
<android.support.v7.widget.RecyclerView
9+
<androidx.recyclerview.widget.RecyclerView
1010
android:id="@+id/recyclerView"
1111
android:layout_width="match_parent"
1212
android:layout_height="match_parent"

0 commit comments

Comments
 (0)