Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .idea/codeStyles/Project.xml

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

54 changes: 27 additions & 27 deletions .idea/compiler.xml

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

3 changes: 2 additions & 1 deletion .idea/gradle.xml

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

10 changes: 10 additions & 0 deletions .idea/jarRepositories.xml

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

2 changes: 1 addition & 1 deletion .idea/misc.xml

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

Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import com.jfrog.bintray.gradle.BintrayExtension
//import com.jfrog.bintray.gradle.BintrayExtension
import meow.AppConfig
import meow.AppConfig.Dependencies
import meow.AppConfig.Publishing
import meow.AppConfig.Versions
import meow.getPropertyAny
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id("com.android.library")
kotlin("android")
`maven-publish`
id("com.jfrog.bintray") version "1.8.5"
id("com.github.dcendents.android-maven")
}

group = Publishing.groupId
Expand Down Expand Up @@ -69,7 +67,7 @@ android {

dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))

implementation ("com.intuit.sdp:sdp-android:1.0.6")
// Implementation Dependencies
Dependencies.implementationItems.forEach {
implementation(it)
Expand All @@ -95,40 +93,40 @@ sourceSets.create("main") {
java.excludes.add("**/build/**")
resources.srcDirs("${meow.AppConfig.Build.SRC_MAIN}res")
}

publishing {
publications {
create<MavenPublication>(publicationName) {
groupId = project.group.toString()
artifactId = Publishing.artifactId
version = project.version.toString()

pom.withXml {
val dependenciesNode = asNode().appendNode("dependencies")
val configurationNames = arrayOf("implementation", "api")
configurationNames.forEach { c ->
configurations[c].allDependencies.forEach {
if (it.group != null) {
val dependencyNode = dependenciesNode.appendNode("dependency")
dependencyNode.appendNode("groupId", it.group)
dependencyNode.appendNode("artifactId", it.name)
dependencyNode.appendNode("version", it.version)
}
}
}
}

val sourcesJar by tasks.registering(Jar::class) {
archiveClassifier.convention("sources")
from(project.sourceSets["main"].allSource)
}

artifact("$buildDir/outputs/aar/MeowBottomNavigation-release.aar")
artifact(sourcesJar.get())
}
}
}

//
//publishing {
// publications {
// create<MavenPublication>(publicationName) {
// groupId = project.group.toString()
// artifactId = Publishing.artifactId
// version = project.version.toString()
//
// pom.withXml {
// val dependenciesNode = asNode().appendNode("dependencies")
// val configurationNames = arrayOf("implementation", "api")
// configurationNames.forEach { c ->
// configurations[c].allDependencies.forEach {
// if (it.group != null) {
// val dependencyNode = dependenciesNode.appendNode("dependency")
// dependencyNode.appendNode("groupId", it.group)
// dependencyNode.appendNode("artifactId", it.name)
// dependencyNode.appendNode("version", it.version)
// }
// }
// }
// }
//
// val sourcesJar by tasks.registering(Jar::class) {
// archiveClassifier.convention("sources")
// from(project.sourceSets["main"].allSource)
// }
//
// artifact("$buildDir/outputs/aar/MeowBottomNavigation-release.aar")
// artifact(sourcesJar.get())
// }
// }
//}
/*
bintray {
user = getPropertyAny("bintray.user")
key = getPropertyAny("bintray.key")
Expand Down Expand Up @@ -156,4 +154,4 @@ bintray {
)
publicDownloadNumbers = true
})
}
}*/
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@

package meow.bottomnavigation

import android.R
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Path
import android.graphics.PointF
import android.graphics.*
import android.util.AttributeSet
import android.view.View


/**
* Bezier View class.
*
Expand All @@ -49,6 +48,7 @@ class BezierView @JvmOverloads constructor(

private var width = 0f
private var height = 0f
private var bgRes = 0
private var bezierOuterWidth = 0f
private var bezierOuterHeight = 0f
private var bezierInnerWidth = 0f
Expand All @@ -61,6 +61,13 @@ class BezierView @JvmOverloads constructor(
mainPaint?.color = field
invalidate()
}
var backgroundResourceId = 0
set(value) {
if (value != 0) {
field=value;
invalidate()
}
}
var shadowColor = 0
set(value) {
field = value
Expand Down Expand Up @@ -118,6 +125,7 @@ class BezierView @JvmOverloads constructor(
isAntiAlias = true
style = Paint.Style.FILL
color = this@BezierView.color

}

shadowPaint = Paint(Paint.ANTI_ALIAS_FLAG)
Expand Down
Loading