Skip to content

Commit

Permalink
[*] Moved project to androidx.
Browse files Browse the repository at this point in the history
  • Loading branch information
VicMikhailau committed Nov 5, 2019
1 parent fb69eca commit b4fc46a
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions MaskedEditText/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ ext {
}

android {
compileSdkVersion 26
compileSdkVersion 29

defaultConfig {
minSdkVersion 14
targetSdkVersion 26
targetSdkVersion 29
versionCode 3
versionName "2.0.4"
}
Expand All @@ -42,13 +42,13 @@ android {
}

ext {
support = "26.1.0"
androidx_appcompat = "1.1.0"
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile "com.android.support:appcompat-v7:$support"
api fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
api "androidx.appcompat:appcompat:$androidx_appcompat"
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import android.content.Context;
import android.content.res.TypedArray;
import android.support.v7.widget.AppCompatEditText;
import android.text.Editable;
import android.util.AttributeSet;

import androidx.appcompat.widget.AppCompatEditText;

public class MaskedEditText extends AppCompatEditText {

// ===========================================================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package com.vicmikhailau.maskededittext;

import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.Log;
import android.widget.EditText;
import android.support.v7.widget.AppCompatEditText;

import java.lang.ref.WeakReference;

Expand Down
14 changes: 7 additions & 7 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 26
compileSdkVersion 29

defaultConfig {
applicationId "com.vicmikhailau.maskededittextsample"
minSdkVersion 14
targetSdkVersion 26
targetSdkVersion 29
versionCode 1
versionName "1.0"
}
Expand All @@ -19,12 +19,12 @@ android {
}

ext {
support = "26.1.0"
androidx_appcompat = "1.1.0"
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile "com.android.support:appcompat-v7:$support"
compile project(':MaskedEditText')
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
implementation "androidx.appcompat:appcompat:$androidx_appcompat"
implementation project(':MaskedEditText')
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.vicmikhailau.maskededittextsample;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.EditText;

import com.vicmikhailau.maskededittext.MaskedEditText;
import com.vicmikhailau.maskededittext.MaskedFormatter;
import com.vicmikhailau.maskededittext.MaskedWatcher;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

/**
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.5.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
Expand All @@ -20,5 +20,5 @@ allprojects {
}

task clean(type: Delete) {
delete rootProject.buildDir
delete rootProject.buildDirt
}
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# org.gradle.parallel=true
android.enableJetifier=true
android.useAndroidX=true
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 @@
#Fri Dec 01 10:58:37 MSK 2017
#Tue Nov 05 20:16:03 MSK 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

0 comments on commit b4fc46a

Please sign in to comment.