Skip to content

Commit 726f390

Browse files
committed
Configured with support for pushing library to maven central
1 parent da8e207 commit 726f390

14 files changed

Lines changed: 73 additions & 28 deletions

File tree

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2020 LiteKite Startup
189+
Copyright 2021 LiteKite Startup
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.
@@ -198,4 +198,4 @@
198198
distributed under the License is distributed on an "AS IS" BASIS,
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201-
limitations under the License.
201+
limitations under the License.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ dependencies {
190190

191191
~~~
192192
193-
Copyright 2020 LiteKite Startup.
193+
Copyright 2021 LiteKite Startup.
194194
195195
Licensed under the Apache License, Version 2.0 (the "License");
196196
you may not use this file except in compliance with the License.
@@ -204,4 +204,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
204204
See the License for the specific language governing permissions and
205205
limitations under the License.
206206
207-
~~~
207+
~~~

build.gradle

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 LiteKite Startup. All rights reserved.
2+
* Copyright 2021 LiteKite Startup. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,23 +16,29 @@
1616

1717
// Top-level build file where you can add configuration options common to all sub-projects/modules.
1818
buildscript {
19-
ext.kotlin_version = "1.4.21"
19+
ext.kotlin_version = "1.4.30"
20+
ext.dokka_version = "1.4.20"
2021
repositories {
2122
google()
23+
mavenCentral()
2224
jcenter()
2325
}
2426
dependencies {
25-
classpath "com.android.tools.build:gradle:4.1.1"
26-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
27-
2827
// NOTE: Do not place your application dependencies here; they belong
2928
// in the individual module build.gradle files
29+
classpath "com.android.tools.build:gradle:4.1.2"
30+
31+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
32+
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
33+
34+
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.13.0'
3035
}
3136
}
3237

3338
allprojects {
3439
repositories {
3540
google()
41+
mavenCentral()
3642
jcenter()
3743
}
3844
}

gradle.properties

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,29 @@ org.gradle.jvmargs=-Xmx2048m
1414
# Kotlin code style for this project: "official" or "obsolete":
1515
kotlin.code.style=official
1616
android.useAndroidX=true
17-
android.enableJetifier=true
17+
android.enableJetifier=true
18+
19+
GROUP=com.github.litekite
20+
VERSION_NAME=0.0.7
21+
22+
POM_DESCRIPTION=An Android Custom Widgets Library, offers custom ui components.
23+
POM_INCEPTION_YEAR=2020
24+
25+
POM_URL=https://github.com/LiteKite/Android-Widgets
26+
POM_SCM_URL=https://github.com/LiteKite/Android-Widgets
27+
POM_SCM_CONNECTION=scm:git:git://github.com:LiteKite/Android-Widgets.git
28+
POM_SCM_DEV_CONNECTION=scm:git:git://github.com:LiteKite/Android-Widgets.git
29+
30+
POM_LICENCE_NAME=The Apache Software License, Version 2.0
31+
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
32+
POM_LICENCE_DIST=repo
33+
34+
POM_DEVELOPER_ID=svignesh93
35+
POM_DEVELOPER_NAME=Vignesh S
36+
POM_DEVELOPER_URL=https://github.com/svignesh93
37+
38+
# Required to publish to Nexus (see https://github.com/gradle/gradle/issues/11308)
39+
systemProp.org.gradle.internal.publish.checksums.insecure=true
40+
41+
# Increase timeout when pushing to Sonatype (otherwise we get timeouts)s
42+
systemProp.org.gradle.internal.http.socketTimeout=120000

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip

widgetslib/build.gradle

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 LiteKite Startup. All rights reserved.
2+
* Copyright 2021 LiteKite Startup. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,10 +18,11 @@ apply plugin: 'com.android.library'
1818
apply plugin: 'kotlin-android'
1919
apply plugin: 'kotlin-kapt'
2020
apply plugin: 'kotlin-parcelize'
21+
apply plugin: 'org.jetbrains.dokka'
22+
apply plugin: 'com.vanniktech.maven.publish'
2123

2224
android {
2325
compileSdkVersion 30
24-
buildToolsVersion "30.0.2"
2526
defaultConfig {
2627
minSdkVersion 21
2728
targetSdkVersion 30
@@ -44,6 +45,7 @@ android {
4445
}
4546
kotlinOptions {
4647
jvmTarget = JavaVersion.VERSION_1_8
48+
freeCompilerArgs += '-Xexplicit-api=strict'
4749
}
4850
buildTypes {
4951
release {
@@ -57,12 +59,20 @@ kapt {
5759
correctErrorTypes true
5860
}
5961

62+
dokkaHtml.configure {
63+
dokkaSourceSets {
64+
named("main") {
65+
noAndroidSdkLink.set(false)
66+
}
67+
}
68+
}
69+
6070
dependencies {
6171
implementation fileTree(dir: "libs", include: ["*.jar"])
6272
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
6373
implementation 'androidx.core:core-ktx:1.3.2'
6474
implementation 'androidx.appcompat:appcompat:1.2.0'
65-
implementation 'com.google.android.material:material:1.2.1'
75+
implementation 'com.google.android.material:material:1.3.0'
6676
testImplementation 'junit:junit:4.13.1'
6777
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
6878
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'

widgetslib/gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Module Gradle settings.
2+
POM_ARTIFACT_ID=android-widgets
3+
POM_NAME=Android Widgets
4+
POM_PACKAGING=aar

widgetslib/src/androidTest/java/com/litekite/widget/ExampleInstrumentedTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 LiteKite Startup. All rights reserved.
2+
* Copyright 2021 LiteKite Startup. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,9 +30,9 @@ import org.junit.Assert.*
3030
* See [testing documentation](http://d.android.com/tools/testing).
3131
*/
3232
@RunWith(AndroidJUnit4::class)
33-
class ExampleInstrumentedTest {
33+
public class ExampleInstrumentedTest {
3434
@Test
35-
fun useAppContext() {
35+
public fun useAppContext() {
3636
// Context of the app under test.
3737
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
3838
assertEquals("com.litekite.widgets", appContext.packageName)

widgetslib/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!--
3-
Copyright 2020 LiteKite Startup. All rights reserved.
3+
Copyright 2021 LiteKite Startup. All rights reserved.
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

widgetslib/src/main/kotlin/com/litekite/widget/CircleImageButton.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 LiteKite Startup. All rights reserved.
2+
* Copyright 2021 LiteKite Startup. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@ import androidx.core.graphics.drawable.toBitmap
2929
* @version 1.0, 22/07/2020
3030
* @since 1.0
3131
*/
32-
class CircleImageButton @JvmOverloads constructor(
32+
public class CircleImageButton @JvmOverloads constructor(
3333
context: Context,
3434
attrs: AttributeSet? = null,
3535
defStyleAttr: Int = 0

0 commit comments

Comments
 (0)