Skip to content

Commit

Permalink
Migrated to kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmuvi committed Jun 23, 2017
1 parent 07c797c commit f5a2296
Show file tree
Hide file tree
Showing 7 changed files with 238 additions and 206 deletions.
7 changes: 7 additions & 0 deletions .idea/kotlinc.xml

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

2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.1.3'
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
17 changes: 15 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 24
Expand All @@ -21,13 +22,25 @@ android {
}

dependencies {
//region production libraries
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.1'
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
//endregion

//region test libraries
testCompile 'junit:junit:4.12'
//endregion

//region android test libraries
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
testCompile 'junit:junit:4.12'
//endregion
}

apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
repositories {
mavenCentral()
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.carlosmuvi.segmentedprogressbar

import android.graphics.Color


data class PropertiesModel(
var segmentCount : Int = 5,
var containerColor : Int = Color.LTGRAY,
var fillColor : Int = Color.BLUE
)

This file was deleted.

Loading

0 comments on commit f5a2296

Please sign in to comment.