Skip to content

Commit

Permalink
Version bump v1.2.4 (21)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvzi committed Feb 8, 2022
1 parent 981c12f commit 92862e6
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 40 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publishPackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
run: chmod +x gradlew
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Append publish.gradle to build.gradle
run: cat app/publish.gradle >> app/build.gradle
- name: Publish package
uses: gradle/gradle-build-action@v2
with:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.2.4
* Remove publish from build.gradle

## 1.2.3
* 🇯🇵 Japanese translation by [@Npepperlinux](https://github.com/Npepperlinux)

Expand Down
42 changes: 2 additions & 40 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "com.github.cvzi.darkmodewallpaper"
minSdkVersion 29
targetSdkVersion 32
versionCode 20
versionName "1.2.3"
versionCode 21
versionName "1.2.4"
}

buildTypes {
Expand All @@ -35,44 +35,6 @@ android {
}
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
archiveClassifier = 'sources'
}

afterEvaluate {
publishing {
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/" + System.getenv("GITHUB_REPOSITORY")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
release(MavenPublication) {
from components.release_apk
groupId = 'com.github.cvzi'
artifactId = 'darkmodewallpaper'
version = android.defaultConfig.versionName
artifact sourcesJar
pom.withXml {
def dependenciesNode = asNode().appendNode('dependencies')
configurations.implementation.allDependencies.each {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
}
}
}
}
}
}

dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
Expand Down
36 changes: 36 additions & 0 deletions app/publish.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
archiveClassifier = 'sources'
}
afterEvaluate {
publishing {
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/" + System.getenv("GITHUB_REPOSITORY")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
release(MavenPublication) {
from components.release_apk
groupId = 'com.github.cvzi'
artifactId = 'darkmodewallpaper'
version = android.defaultConfig.versionName
artifact sourcesJar
pom.withXml {
def dependenciesNode = asNode().appendNode('dependencies')
configurations.implementation.allDependencies.each {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
}
}
}
}
}
}
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/21.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
🇯🇵 Japanese translation by @Npepperlinux

0 comments on commit 92862e6

Please sign in to comment.