Skip to content

Commit

Permalink
Merge pull request #1 from mortuzahossain/master
Browse files Browse the repository at this point in the history
Fixed issue of gradle sync
  • Loading branch information
tareq3 authored May 6, 2023
2 parents e02d4ff + e3e5e0f commit 7c8dd42
Show file tree
Hide file tree
Showing 18 changed files with 120 additions and 109 deletions.
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ It is a lib for using singleClickListener and PushDown Anim Together
```
### needed dependencies:
```
implementation 'com.github.tareq3:PushDown_ExtSingleClick:1.0'
implementation 'com.github.tareq3:PushDown_ExtSingleClick:2.0.0'
```


Expand Down
17 changes: 9 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,30 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
compileSdkVersion 33
defaultConfig {
applicationId "com.mti.pushdown_extsingleclick"
minSdkVersion 16
targetSdkVersion 27
targetSdkVersion 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
namespace 'com.mti.pushdown_extsingleclick'
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation project(':pushdown_ext_onclick_single')
}
5 changes: 2 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
~ Last modified 8/7/18 10:29 PM
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mti.pushdown_extsingleclick">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
Expand All @@ -15,7 +14,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity android:name=".MainActivity" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
42 changes: 13 additions & 29 deletions app/src/main/java/com/mti/pushdown_extsingleclick/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

package com.mti.pushdown_extsingleclick;

import android.support.v7.app.AppCompatActivity;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.mti.pushdown_ext_onclick_single.PushDownAnim;
import com.mti.pushdown_ext_onclick_single.SingleClick;

Expand All @@ -23,38 +25,20 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);


// Without animation











//Todo: If you want only singleClick Listener without anim


SingleClick.get(findViewById(R.id.mButton)).setOnSingleClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

Toast.makeText(MainActivity.this, "Clicked "+ i, Toast.LENGTH_SHORT).show();
i++;
}
/*
SingleClick.get(findViewById(R.id.mButton)).setOnSingleClickListener(v -> {
Toast.makeText(MainActivity.this, "Clicked "+ i, Toast.LENGTH_SHORT).show();
i++;
});
*/


//Todo: With Anim Single Click Listener
PushDownAnim.setPushDownAnimTo(findViewById(R.id.mButton)).setOnSingleClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

Toast.makeText(MainActivity.this, "Clicked "+ i, Toast.LENGTH_SHORT).show();
i++;
}
// With animation
PushDownAnim.setPushDownAnimTo(findViewById(R.id.mButton)).setOnSingleClickListener(v -> {
Toast.makeText(MainActivity.this, "Clicked "+ i, Toast.LENGTH_SHORT).show();
i++;
});
}
}
13 changes: 3 additions & 10 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Created by Tareq Islam on 8/7/18 10:29 PM
~
~ Last modified 8/7/18 10:29 PM
-->

<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
android:layout_height="match_parent">

<ImageView
android:id="@+id/mButton"
Expand All @@ -22,4 +15,4 @@
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_launcher_background" />

</android.support.constraint.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0-beta04'
classpath('com.android.tools.build:gradle:4.2.2')


// NOTE: Do not place your application dependencies here; they belong
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
android.enableJetifier=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
19 changes: 8 additions & 11 deletions pushdown_ext_onclick_single/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 27


compileSdkVersion 33

defaultConfig {
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
targetSdkVersion 33

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

}

Expand All @@ -27,16 +23,17 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
namespace 'com.mti.pushdown_ext_onclick_single'

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'com.android.support:appcompat-v7:27.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'androidx.appcompat:appcompat:1.6.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'


}
3 changes: 1 addition & 2 deletions pushdown_ext_onclick_single/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
~ Last modified 8/7/18 10:35 PM
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mti.pushdown_ext_onclick_single" />
<manifest xmlns:android="http://schemas.android.com/apk/res/android" />
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import android.animation.ValueAnimator;
import android.graphics.Rect;
import android.os.SystemClock;
import android.support.annotation.IntDef;
import android.util.TypedValue;
import android.view.MotionEvent;
import android.view.View;
Expand All @@ -25,6 +24,8 @@

import static java.lang.annotation.RetentionPolicy.SOURCE;

import androidx.annotation.IntDef;

/***
* Created by Tareq on 07,August,2018.
*/
Expand Down
Loading

0 comments on commit 7c8dd42

Please sign in to comment.