Skip to content

Commit 91a3e8c

Browse files
committed
add travis and jitpack.io integration
2 parents fd9eccb + 347dc43 commit 91a3e8c

File tree

10 files changed

+97
-42
lines changed

10 files changed

+97
-42
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
/captures
99
.externalNativeBuild
1010
.gradle/
11-
gradle/
1211
local.properties
1312
*.DS_Store
1413
build/

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: android
2+
jdk: oraclejdk8
3+
before_install:
4+
- chmod +x gradlew
5+
android:
6+
components:
7+
- tools
8+
- platform-tools
9+
- build-tools-26.0.2
10+
- android-26
11+
- extra-android-support
12+
- extra-android-m2repository
13+
- extra-google-m2repository
14+
15+
# Additional components
16+
#- extra-google-google_play_services
17+
#- addon-google_apis-google-19
18+
19+
# Specify at least one system image, if you need to run emulator(s) during your tests
20+
#- sys-img-armeabi-v7a-android-19
21+
#- sys-img-x86-android-17
22+
23+
licenses:
24+
- '.+'
25+
- 'android-sdk-preview-license-.+'
26+
- 'android-sdk-license-.+'
27+
- 'google-gdk-license-.+'

README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Polish Identifiers Utils
2+
[![](https://jitpack.io/v/DonMat/PolishIdentifiersUtils-kotlin.svg)](https://jitpack.io/#DonMat/PolishIdentifiersUtils-kotlin)
3+
[![Build Status](https://travis-ci.org/DonMat/PolishIdentifiersUtils-kotlin.svg?branch=master)](https://travis-ci.org/DonMat/PolishIdentifiersUtils-kotlin)
4+
5+
6+
This is simple lightweight library written in Kotlin to manage and validates polish identification numbers like: NIP, PESEL, REGON (9-digit and 14-digit).
7+
8+
## Purpose of project
9+
It is easier to maintain validators and other utilities functions as one additional library instead of coppy&pase the same code between projects.
10+
11+
12+
## Download
13+
Gradle:
14+
15+
Step 1. Add it in your root build.gradle at the end of repositories:
16+
17+
```gradle
18+
allprojects {
19+
repositories {
20+
...
21+
maven { url "https://jitpack.io" }
22+
}
23+
}
24+
```
25+
26+
Step 2. Add the dependency
27+
```gradle
28+
dependencies {
29+
compile 'com.github.DonMat:PolishIdentifiersUtils-kotlin:v0.0.2'
30+
}
31+
```
32+
33+
## The library contains
34+
- PeselUtil
35+
* isValid()
36+
* getBirthDate()
37+
* getGender()
38+
39+
- NipUtil
40+
* IN PROGRESS
41+
42+
- RegonUtil
43+
* IN PROGRESS
44+
45+
License
46+
-------
47+
Copyright (C) 2017 Mateusz Utkała
48+
49+
Licensed under the Apache License, Version 2.0 (the "License");
50+
you may not use this file except in compliance with the License.
51+
You may obtain a copy of the License at
52+
53+
http://www.apache.org/licenses/LICENSE-2.0
54+
55+
Unless required by applicable law or agreed to in writing, software
56+
distributed under the License is distributed on an "AS IS" BASIS,
57+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
58+
See the License for the specific language governing permissions and
59+
limitations under the License.

app/src/androidTest/java/pl/utkala/polishidentifiersutilsdemo/ExampleInstrumentedTest.kt

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/src/test/java/pl/utkala/polishidentifiersutilsdemo/ExampleUnitTest.kt

Lines changed: 0 additions & 17 deletions
This file was deleted.

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ buildscript {
99
dependencies {
1010
classpath 'com.android.tools.build:gradle:3.0.1'
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
1213

1314
// NOTE: Do not place your application dependencies here; they belong
1415
// in the individual module build.gradle files
@@ -19,6 +20,7 @@ allprojects {
1920
repositories {
2021
google()
2122
jcenter()
23+
maven { url 'https://jitpack.io' }
2224
}
2325
}
2426

gradle/wrapper/gradle-wrapper.jar

52.4 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Sat Dec 16 12:28:47 CET 2017
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

gradlew

100644100755
File mode changed.

polishIdentifiersUtils/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
apply plugin: 'java-library'
22
apply plugin: 'kotlin'
3+
apply plugin: 'com.github.dcendents.android-maven'
4+
5+
group = 'com.github.DonMat'
36

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

0 commit comments

Comments
 (0)