Skip to content

Commit

Permalink
fixing crash on api level 28
Browse files Browse the repository at this point in the history
  • Loading branch information
KingsMentor committed Jan 16, 2019
1 parent 7306907 commit f6fd12f
Show file tree
Hide file tree
Showing 12 changed files with 85 additions and 86 deletions.
42 changes: 42 additions & 0 deletions .circle/config.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 0 additions & 6 deletions .idea/encodings.xml

This file was deleted.

Empty file modified .idea/gradle.xml
100755 → 100644
Empty file.
68 changes: 0 additions & 68 deletions .idea/misc.xml
100755 → 100644

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

1 change: 0 additions & 1 deletion .idea/modules.xml
100755 → 100644

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

Empty file modified .idea/runConfigurations.xml
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion .idea/vcs.xml
100755 → 100644

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

12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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')
}
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
31 changes: 30 additions & 1 deletion luhn/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
buildToolsVersion '26.0.2'


defaultConfig {
Expand Down Expand Up @@ -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 = '[email protected]'

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'
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f6fd12f

Please sign in to comment.