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
2 changes: 1 addition & 1 deletion action-sheet/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions action-sheet/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion app-launcher/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions app-launcher/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion app/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions app/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion browser/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions browser/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion clipboard/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions clipboard/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion device/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions device/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion dialog/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions dialog/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion network/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions network/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion preferences/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions preferences/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion push-notifications/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions push-notifications/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion screen-orientation/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions screen-orientation/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion screen-reader/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions screen-reader/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
4 changes: 0 additions & 4 deletions scripts/android/publish-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ task androidSourcesJar(type: Jar) {
}
}

artifacts {
archives androidSourcesJar
}

group = 'com.capacitorjs'
version = LIB_VERSION

Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ publish_plugin () {
export CAP_PLUGIN_PUBLISH=true

# Build and publish
"$ANDROID_PATH"/gradlew clean build publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --no-daemon --max-workers 1 -b "$ANDROID_PATH"/build.gradle -Pandroid.useAndroidX=true > $LOG_OUTPUT 2>&1
(cd "$ANDROID_PATH" && ./gradlew clean build publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --no-daemon --max-workers 1 -Pandroid.useAndroidX=true) > $LOG_OUTPUT 2>&1

if grep --quiet "BUILD SUCCESSFUL" $LOG_OUTPUT; then
printf %"s\n\n" "Success: $PLUGIN_NAME published to MavenCentral."
Expand Down
2 changes: 1 addition & 1 deletion share/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions share/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion splash-screen/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions splash-screen/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion status-bar/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions status-bar/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion text-zoom/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions text-zoom/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
2 changes: 1 addition & 1 deletion toast/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:9.4.1'
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
classpath 'io.github.gradle-nexus:publish-plugin:2.0.0'
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions toast/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
if (System.getenv("CAP_PLUGIN_PUBLISH") != "true") {
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
}
Loading