Skip to content

Commit d6f8c14

Browse files
author
Evgeniy Prudnikov
committed
Android: Publish of artifacts from forks to the Artifactory and switch to them in android-ui project
DEVSIX-6634
1 parent 9b9f7c3 commit d6f8c14

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

android-pdf-viewer/build.gradle

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'maven-publish'
23

34
ext {
45
bintrayRepo = 'maven'
@@ -25,7 +26,7 @@ ext {
2526
}
2627

2728
android {
28-
compileSdk 32
29+
compileSdkVersion 32
2930

3031
defaultConfig {
3132
minSdkVersion 14
@@ -36,7 +37,26 @@ android {
3637

3738
}
3839

40+
repositories {
41+
maven {
42+
url "https://repo.itextsupport.com/android"
43+
}
44+
}
3945
dependencies {
40-
api project(path: ':pdfium-android')
4146
implementation 'androidx.core:core:1.7.0'
47+
implementation 'com.itextpdf.android.pdfium:pdfium-android:1.9.0'
48+
}
49+
50+
project.afterEvaluate {
51+
publishing {
52+
publications {
53+
library(MavenPublication) {
54+
groupId = 'com.itextpdf.android.pdfviewer'
55+
artifactId = 'android-pdf-viewer'
56+
version = android.defaultConfig.versionName
57+
58+
artifact bundleReleaseAar
59+
}
60+
}
61+
}
4262
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.4.2'
8+
classpath 'com.android.tools.build:gradle:7.1.3'
99
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
1010
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1111
}

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-5.1.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip

0 commit comments

Comments
 (0)