Skip to content
Merged
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
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Configure JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: '17'
cache: gradle

- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4

- name: Build
run: ./gradlew build
33 changes: 33 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Release

on:
push:
tags:
- '*'

env:
RELEASE_SIGNING_ENABLED: true

jobs:
publish:
runs-on: ubuntu-latest
if: github.repository == 'Commit451/Addendum'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: '17'
cache: gradle

- name: Release to Maven Central
run: ./gradlew publishAndReleaseToMavenCentral -PVERSION_NAME="${GITHUB_REF_NAME}" --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

23 changes: 7 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
# Addendum
Useful Kotlin Extensions for the Android SDK and popular Android Libraries

[![Build Status](https://travis-ci.org/Commit451/Addendum.svg?branch=master)](https://travis-ci.org/Commit451/Addendum) [![](https://jitpack.io/v/Commit451/Addendum.svg)](https://jitpack.io/#Commit451/Addendum)
[![Build](https://github.com/Commit451/Addendum/actions/workflows/ci.yml/badge.svg)](https://github.com/Commit451/Addendum/actions/workflows/ci.yml) [![Maven Central](https://img.shields.io/maven-central/v/com.commit451/addendum.svg?label=Maven%20Central)](https://central.sonatype.com/search?q=g:com.commit451%20AND%20a:addendum)

## Gradle Dependency
Add the jitpack url to the project:
```groovy
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```
then, in your app `build.gradle`
In your app `build.gradle`:
```groovy
dependencies {
implementation "com.github.Commit451.Addendum:addendum:latest.version.here"
implementation "com.commit451:addendum:latest.version.here"
//for design support library
implementation "com.github.Commit451.Addendum:addendum-design:latest.version.here"
implementation "com.commit451:addendum-design:latest.version.here"
//for RecyclerView support
implementation "com.github.Commit451.Addendum:addendum-recyclerview:latest.version.here"
implementation "com.commit451:addendum-recyclerview:latest.version.here"
//for Parceler support
implementation "com.github.Commit451.Addendum:addendum-parceler:latest.version.here"
implementation "com.commit451:addendum-parceler:latest.version.here"
//for ThreeTenABP support
implementation "com.github.Commit451.Addendum:addendum-threetenabp:latest.version.here"
implementation "com.commit451:addendum-threetenabp:latest.version.here"
}
```

Expand Down
20 changes: 0 additions & 20 deletions addendum-design/build.gradle

This file was deleted.

38 changes: 38 additions & 0 deletions addendum-design/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
import com.vanniktech.maven.publish.SonatypeHost

plugins {
id("com.android.library")
id("com.vanniktech.maven.publish")
}

group = findProperty("GROUP") as String
version = findProperty("VERSION_NAME") as String

android {
namespace = "com.commit451.addendum.design"
compileSdk = rootProject.extra["compileSdkVersion"] as Int

defaultConfig {
minSdk = rootProject.extra["minSdkVersion"] as Int
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

dependencies {
api("com.google.android.material:material:1.13.0")
implementation(project(":addendum"))
}

mavenPublishing {
configure(AndroidSingleVariantLibrary("release", true, true))
coordinates("com.commit451", "addendum-design", version.toString())
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
if (System.getenv("RELEASE_SIGNING_ENABLED") == "true") {
signAllPublications()
}
}
2 changes: 1 addition & 1 deletion addendum-design/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<manifest package="com.commit451.addendum.design"/>
<manifest />
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package com.commit451.addendum.design

import android.widget.TextView
import com.google.android.material.R
import com.google.android.material.snackbar.Snackbar


Expand Down
20 changes: 0 additions & 20 deletions addendum-parceler/build.gradle

This file was deleted.

38 changes: 38 additions & 0 deletions addendum-parceler/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
import com.vanniktech.maven.publish.SonatypeHost

plugins {
id("com.android.library")
id("com.vanniktech.maven.publish")
}

group = findProperty("GROUP") as String
version = findProperty("VERSION_NAME") as String

android {
namespace = "com.commit451.addendum.parceler"
compileSdk = rootProject.extra["compileSdkVersion"] as Int

defaultConfig {
minSdk = rootProject.extra["minSdkVersion"] as Int
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

dependencies {
api("org.parceler:parceler-api:1.1.13")
implementation(project(":addendum"))
}

mavenPublishing {
configure(AndroidSingleVariantLibrary("release", true, true))
coordinates("com.commit451", "addendum-parceler", version.toString())
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
if (System.getenv("RELEASE_SIGNING_ENABLED") == "true") {
signAllPublications()
}
}
2 changes: 1 addition & 1 deletion addendum-parceler/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<manifest package="com.commit451.addendum.parceler"/>
<manifest />
20 changes: 0 additions & 20 deletions addendum-recyclerview/build.gradle

This file was deleted.

38 changes: 38 additions & 0 deletions addendum-recyclerview/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
import com.vanniktech.maven.publish.SonatypeHost

plugins {
id("com.android.library")
id("com.vanniktech.maven.publish")
}

group = findProperty("GROUP") as String
version = findProperty("VERSION_NAME") as String

android {
namespace = "com.commit451.addendum.recyclerview"
compileSdk = rootProject.extra["compileSdkVersion"] as Int

defaultConfig {
minSdk = rootProject.extra["minSdkVersion"] as Int
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

dependencies {
api("androidx.recyclerview:recyclerview:1.4.0")
implementation(project(":addendum"))
}

mavenPublishing {
configure(AndroidSingleVariantLibrary("release", true, true))
coordinates("com.commit451", "addendum-recyclerview", version.toString())
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
if (System.getenv("RELEASE_SIGNING_ENABLED") == "true") {
signAllPublications()
}
}
2 changes: 1 addition & 1 deletion addendum-recyclerview/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<manifest package="com.commit451.addendum.recyclerview"/>
<manifest />
20 changes: 0 additions & 20 deletions addendum-threetenabp/build.gradle

This file was deleted.

38 changes: 38 additions & 0 deletions addendum-threetenabp/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
import com.vanniktech.maven.publish.SonatypeHost

plugins {
id("com.android.library")
id("com.vanniktech.maven.publish")
}

group = findProperty("GROUP") as String
version = findProperty("VERSION_NAME") as String

android {
namespace = "com.commit451.addendum.threetenabp"
compileSdk = rootProject.extra["compileSdkVersion"] as Int

defaultConfig {
minSdk = rootProject.extra["minSdkVersion"] as Int
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

dependencies {
api("com.jakewharton.threetenabp:threetenabp:1.4.8")
implementation(project(":addendum"))
}

mavenPublishing {
configure(AndroidSingleVariantLibrary("release", true, true))
coordinates("com.commit451", "addendum-threetenabp", version.toString())
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
if (System.getenv("RELEASE_SIGNING_ENABLED") == "true") {
signAllPublications()
}
}
2 changes: 1 addition & 1 deletion addendum-threetenabp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<manifest package="com.commit451.addendum.threetenabp"/>
<manifest />
23 changes: 0 additions & 23 deletions addendum/build.gradle

This file was deleted.

Loading