Skip to content

Commit 25fc7d0

Browse files
refactor: set library name on maven to ioninappbrowser-android
1 parent 5c88053 commit 25fc7d0

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/publish-android.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Publish Native Android Library
22

3-
on: workflow_dispatch
3+
#on: workflow_dispatch
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches: [test-publish-android]
48

59
jobs:
610
publish-android:

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
<modelVersion>4.0.0</modelVersion>
77
<groupId>io.ionic.libs</groupId>
8-
<artifactId>osinappbrowser-android</artifactId>
8+
<artifactId>ioninappbrowser-android</artifactId>
99
<version>1.2.1</version>
1010
</project>

scripts/publish-android.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LOG_OUTPUT=./tmp/publish-android.txt
55
THE_VERSION=`sed -n 's/.*<version>\(.*\)<\/version>.*/\1/p' ../pom.xml`
66

77
# Get latest io.ionic:portals XML version info
8-
PUBLISHED_URL="https://repo1.maven.org/maven2/io/ionic/libs/osinappbrowser-android/maven-metadata.xml"
8+
PUBLISHED_URL="https://repo1.maven.org/maven2/io/ionic/libs/ioninappbrowser-android/maven-metadata.xml"
99
PUBLISHED_DATA=$(curl -s $PUBLISHED_URL)
1010
PUBLISHED_VERSION="$(perl -ne 'print and last if s/.*<latest>(.*)<\/latest>.*/\1/;' <<< $PUBLISHED_DATA)"
1111

@@ -21,9 +21,9 @@ else
2121

2222
printf %"s\n" "Attempting to build and publish version $THE_VERSION"
2323
# Publish a release to the Maven repo
24-
"$ANDROID_PATH"/gradlew clean build publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --no-daemon --max-workers 1 -b "$ANDROID_PATH"/build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
24+
# "$ANDROID_PATH"/gradlew clean build publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --no-daemon --max-workers 1 -b "$ANDROID_PATH"/build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
2525
# Stage a version
26-
# "$ANDROID_PATH"/gradlew clean build publishReleasePublicationToSonatypeRepository --no-daemon --max-workers 1 -b "$ANDROID_PATH"/build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
26+
"$ANDROID_PATH"/gradlew clean build publishReleasePublicationToSonatypeRepository --no-daemon --max-workers 1 -b "$ANDROID_PATH"/build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
2727

2828
echo $RESULT
2929

scripts/publish-module.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ afterEvaluate {
2727
release(MavenPublication) {
2828
// Coordinates
2929
groupId 'io.ionic.libs'
30-
artifactId 'osinappbrowser-android'
30+
artifactId 'ioninappbrowser-android'
3131
version LIB_VERSION
3232

3333
// Two artifacts, the `aar` (or `jar`) and the sources
@@ -41,7 +41,7 @@ afterEvaluate {
4141

4242
// POM Data
4343
pom {
44-
name = 'osinappbrowser-android'
44+
name = 'ioninappbrowser-android'
4545
description = 'InAppBrowser Android Lib'
4646
url = 'https://github.com/OutSystems/OSInAppBrowserLib-Android'
4747
licenses {

0 commit comments

Comments
 (0)