diff --git a/.circle/config.yml b/.circle/config.yml
new file mode 100644
index 0000000..76c1f0c
--- /dev/null
+++ b/.circle/config.yml
@@ -0,0 +1,42 @@
+# Java Gradle CircleCI 2.0 configuration file
+#
+# Check https://circleci.com/docs/2.0/language-java/ for more details
+#
+version: 2
+jobs:
+ build:
+ docker:
+ # specify the version you desire here
+ - image: circleci/openjdk:8-jdk
+
+ # Specify service dependencies here if necessary
+ # CircleCI maintains a library of pre-built images
+ # documented at https://circleci.com/docs/2.0/circleci-images/
+ # - image: circleci/postgres:9.4
+
+ working_directory: ~/repo
+
+ environment:
+ # Customize the JVM maximum heap limit
+ JVM_OPTS: -Xmx3200m
+ TERM: dumb
+
+ steps:
+ - checkout
+
+ # Download and cache dependencies
+ - restore_cache:
+ keys:
+ - v1-dependencies-{{ checksum "build.gradle" }}
+ # fallback to using the latest cache if no exact match is found
+ - v1-dependencies-
+
+ - run: gradle dependencies
+
+ - save_cache:
+ paths:
+ - ~/.gradle
+ key: v1-dependencies-{{ checksum "build.gradle" }}
+
+ # run tests!
+ - run: gradle test
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
deleted file mode 100755
index 97626ba..0000000
--- a/.idea/encodings.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
old mode 100755
new mode 100644
diff --git a/.idea/misc.xml b/.idea/misc.xml
old mode 100755
new mode 100644
index 8ba72f7..3963879
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -24,78 +24,10 @@
-
-
-
-
-
-
-
-
- Android
-
-
- Android > Lint > Correctness
-
-
- Android > Lint > Performance
-
-
- Android > Lint > Security
-
-
- Code maturity issuesJava
-
-
- Code style issuesJava
-
-
- Data flow issuesJava
-
-
- Error handlingGroovy
-
-
- Error handlingJava
-
-
- Groovy
-
-
- Java
-
-
- Logging issuesJava
-
-
-
-
- Android
-
-
-
-
-
-
-
-
-
- 1.8
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
old mode 100755
new mode 100644
index 94cf5ac..432e979
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -2,7 +2,6 @@
-
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
old mode 100755
new mode 100644
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
old mode 100755
new mode 100644
index 94a25f7..35eb1dd
--- a/.idea/vcs.xml
+++ b/.idea/vcs.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 680fef9..80fa657 100755
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'
android {
- compileSdkVersion 25
- buildToolsVersion "25.0.3"
+ compileSdkVersion 28
+ buildToolsVersion "28.0.3"
defaultConfig {
applicationId "xyz.belvi.addcard"
minSdkVersion 16
- targetSdkVersion 25
+ targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -20,12 +20,12 @@ android {
}
dependencies {
- compile fileTree(include: ['*.jar'], dir: 'libs')
+ implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
- compile 'com.android.support.constraint:constraint-layout:1.0.2'
- compile 'com.github.KingsMentor:Luhn:v2.1.3'
+ implementation 'com.android.support.constraint:constraint-layout:1.1.3'
+ implementation 'com.github.KingsMentor:Luhn:v2.1.3'
// compile project(':luhn')
}
diff --git a/build.gradle b/build.gradle
index 2aae982..5592e2a 100755
--- a/build.gradle
+++ b/build.gradle
@@ -9,7 +9,9 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:2.3.2'
+ classpath 'com.android.tools.build:gradle:3.2.1'
+ classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
+ classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
// NOTE: Do not place your application dependencies here; they belong
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index f75c1b9..e7b8485 100755
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Wed Jun 28 11:14:10 WAT 2017
+#Thu Sep 21 08:06:16 WAT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
diff --git a/luhn/build.gradle b/luhn/build.gradle
index 9de5fea..e72b34f 100755
--- a/luhn/build.gradle
+++ b/luhn/build.gradle
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
android {
compileSdkVersion 25
- buildToolsVersion "25.0.3"
+ buildToolsVersion '26.0.2'
defaultConfig {
@@ -33,3 +33,32 @@ dependencies {
exclude group: "com.android.support"
}
}
+
+ext {
+ bintrayRepo = 'maven'
+ bintrayName = 'Luhn'
+
+ publishedGroupId = 'xyz.belvi.validator'
+ libraryName = 'luhn'
+ artifact = 'luhn'
+
+ libraryDescription = 'Smooth UI for Credit Card Entry on Android device, perform check for supported credit card types , pan length and luhn check. Inspired by Uber credit card entry interface'
+
+ siteUrl = 'https://github.com/KingsMentor/BaseAuth'
+ gitUrl = 'https://github.com/KingsMentor/BaseAuth.git'
+
+ libraryVersion = '2.1.3'
+
+ developerId = 'kingsmentor'
+ developerName = 'Nosakhare Belvi'
+ developerEmail = 'nosakharebelvi@gmail.com'
+
+ licenseName = 'The Apache Software License, Version 2.0'
+ licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
+ allLicenses = ["Apache-2.0"]
+}
+
+
+
+apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
+apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
\ No newline at end of file
diff --git a/luhn/src/main/java/xyz/belvi/luhn/customTextInputLayout/inputLayouts/CardTextInputLayout.java b/luhn/src/main/java/xyz/belvi/luhn/customTextInputLayout/inputLayouts/CardTextInputLayout.java
index 22ae4a6..46a4566 100755
--- a/luhn/src/main/java/xyz/belvi/luhn/customTextInputLayout/inputLayouts/CardTextInputLayout.java
+++ b/luhn/src/main/java/xyz/belvi/luhn/customTextInputLayout/inputLayouts/CardTextInputLayout.java
@@ -15,6 +15,7 @@
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
import xyz.belvi.luhn.customTextInputLayout.transformations.CreditCardTransformation;
+// KINDLY CHECK MY GIT REPO FOR MORE
public class CardTextInputLayout extends TextInputLayout {
private boolean hasValidInput;
private Object collapsingTextHelper;