-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from wellingtoncosta/develop
Release 3.2.0
- Loading branch information
Showing
69 changed files
with
5,588 additions
and
1,841 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
RESULT_FILE=$1 | ||
|
||
if [ -f $RESULT_FILE ]; then | ||
rm $RESULT_FILE | ||
fi | ||
touch $RESULT_FILE | ||
|
||
checksum_file() { | ||
echo $(openssl md5 $1 | awk '{print $2}') | ||
} | ||
|
||
FILES=() | ||
while read -r -d ''; do | ||
FILES+=("$REPLY") | ||
done < <(find . -type f \( -name "build.gradle*" -o -name "dependencies.kt" -o -name "gradle-wrapper.properties" \) -print0) | ||
|
||
# Loop through files and append MD5 to result file | ||
for FILE in ${FILES[@]}; do | ||
echo $(checksum_file $FILE) >> $RESULT_FILE | ||
done | ||
# Now sort the file so that it is | ||
sort $RESULT_FILE -o $RESULT_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
|
||
@Target(FIELD) | ||
@Retention(SOURCE) | ||
@interface End { | ||
@interface Limit { | ||
|
||
int key(); | ||
|
||
|
30 changes: 30 additions & 0 deletions
30
convalida-annotations/src/main/java/convalida/annotations/FutureDate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package convalida.annotations; | ||
|
||
import androidx.annotation.StringRes; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.Target; | ||
|
||
import static java.lang.annotation.ElementType.FIELD; | ||
import static java.lang.annotation.RetentionPolicy.SOURCE; | ||
|
||
/** | ||
* @author Wellington Costa on 31/07/2019. | ||
*/ | ||
@Target(FIELD) | ||
@Retention(SOURCE) | ||
public @interface FutureDate { | ||
|
||
@StringRes int errorMessageResId() default -1; | ||
|
||
String errorMessage() default ""; | ||
|
||
String dateFormat(); | ||
|
||
String limitDate(); | ||
|
||
boolean autoDismiss() default true; | ||
|
||
boolean required() default true; | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
convalida-annotations/src/main/java/convalida/annotations/Ipv4.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package convalida.annotations; | ||
|
||
import androidx.annotation.StringRes; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.Target; | ||
|
||
import static java.lang.annotation.ElementType.FIELD; | ||
import static java.lang.annotation.RetentionPolicy.SOURCE; | ||
|
||
/** | ||
* @author Wellington Costa on 30/07/2019. | ||
*/ | ||
@Target(FIELD) | ||
@Retention(SOURCE) | ||
public @interface Ipv4 { | ||
|
||
@StringRes int errorMessageResId() default -1; | ||
|
||
String errorMessage() default ""; | ||
|
||
boolean autoDismiss() default true; | ||
|
||
boolean required() default true; | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
convalida-annotations/src/main/java/convalida/annotations/Ipv6.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package convalida.annotations; | ||
|
||
import androidx.annotation.StringRes; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.Target; | ||
|
||
import static java.lang.annotation.ElementType.FIELD; | ||
import static java.lang.annotation.RetentionPolicy.SOURCE; | ||
|
||
/** | ||
* @author Wellington Costa on 30/07/2019. | ||
*/ | ||
@Target(FIELD) | ||
@Retention(SOURCE) | ||
public @interface Ipv6 { | ||
|
||
@StringRes int errorMessageResId() default -1; | ||
|
||
String errorMessage() default ""; | ||
|
||
boolean autoDismiss() default true; | ||
|
||
boolean required() default true; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.