Commit 4b25ccf8 authored by Erwan Croze's avatar Erwan Croze 👋🏻

Revert "[wagon-git] commit to branch master 22/01/19 09:24"

This reverts commit 059b815b
parent 059b815b
# Introduction
Starting with linphone-android release 4.1 the SDK part of the application is generated as an AAR.
If there is no locally built AAR, Android Studio will download one from this repository.
# Branches and version number
AAR are generated by linphone-sdk repository and version name will be the result of the git describe command in this repository.
Then the AAR will be uploaded here, in the same branch as the linphone-sdk was, except for releases.
# Using this maven repository
Inside your app/build.gradle, add the following:
```
repositories {
maven {
// Switch to release for releases !
url "https://gitlab.linphone.org/BC/public/maven_repository/raw/master"
}
}
```
Then in your dependencies list, add linphone-android-sdk:
```
implementation "org.linphone:linphone-sdk-android:<version_number>"
```
You can use `+` to get the latest snapshot version or hardcode a version number you specifically want.
# How are the AAR created and uploaded
Here's the gradle tasks used to upload the AAR:
```
def gitVersion = new ByteArrayOutputStream()
def gitBranch = new ByteArrayOutputStream()
task getGitVersion {
exec {
commandLine 'git', 'describe', '--always'
standardOutput = gitVersion
}
exec {
commandLine 'git', 'name-rev', '--name-only', 'HEAD'
standardOutput = gitBranch
}
doLast {
def branchSplit = gitBranch.toString().trim().split('/')
def splitLen = branchSplit.length
if (splitLen == 4) {
gitBranch = branchSplit[2] + '/' + branchSplit[3]
println("Local repository seems to be in detached head state, using last 2 segments of Git branch: " + gitBranch.toString().trim())
} else {
println("Git branch: " + gitBranch.toString().trim())
}
}
}
uploadArchives {
repositories {
mavenDeployer {
configuration = configurations.deployerJars
repository(url: 'git:' + gitBranch.toString().trim() + '://git@gitlab.linphone.org:BC/public/maven_repository.git')
pom.project {
groupId 'org.linphone'
artifactId 'linphone-sdk-android'
version gitVersion.toString().trim()
}
}
}
}
```
The upload of the AAR to the maven repository (hosted in our gitlab) requires the following dependency: `maven { url "https://raw.github.com/synergian/wagon-git/releases"}`
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.linphone</groupId>
<artifactId>liblinphone-sdk</artifactId>
<version>3.3.2</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>multidex</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.16.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.linphone</groupId>
<artifactId>liblinphone-sdk</artifactId>
<version>3.4.0</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>multidex</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.16.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
6820e11dbb771d6a4bee39683507a992
\ No newline at end of file
f2ea320a65ec3a31361a8be05e49ad2a10a40894
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.linphone</groupId>
<artifactId>liblinphone-sdk</artifactId>
<version>3.4.1
</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>+</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>multidex</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
8002effc354ed2c163502b8e8fb7e73c
\ No newline at end of file
981f471c0e3d18307083048227043b56ec76ea4a
\ No newline at end of file
6c6435f5eea84080087c88d2e2c7a098
\ No newline at end of file
b3871d670c57e1d5ef4c5a4ae506b4d48255c281
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.linphone</groupId>
<artifactId>liblinphone-sdk</artifactId>
<version>4.0.1-DEBUG</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>multidex</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.16.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
84fde96a0ee6b146cc3d36589a56ad63
\ No newline at end of file
e6b07bbd2e64ad59720a1f51543b943cfeb19a7c
\ No newline at end of file
546891598e00dcce78f11092c22b8d15
\ No newline at end of file
99043b04dbc859d62e64a5dfed6cebb727b6dab1
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.linphone</groupId>
<artifactId>liblinphone-sdk</artifactId>
<version>4.0.1</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>+</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>multidex</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
5573d60f2e5c9d2dcad49e3dbb6901ee
\ No newline at end of file
07b5d1b240816d7cb13a10f7a384814dca1737b1
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.linphone</groupId>
<artifactId>liblinphone-sdk</artifactId>
<versioning>
<release>3.4.1</release>
<versions>
<version>4.0.1-DEBUG</version>
<version>4.0.1</version>
<version>3.4.0</version>
<version>3.3.2</version>
<version>3.4.1</version>
</versions>
<lastUpdated>20181018120042</lastUpdated>
</versioning>
</metadata>
cda4c1bbcf5b30d4673d37d5a19509d3
\ No newline at end of file
326c8ed7bcd978d25ed8cee9a63db34365fbf930
\ No newline at end of file
9e08fea294708fffec7397990d785ef3914d7eff
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.linphone</groupId>
<artifactId>linphone-sdk-android</artifactId>
<version>4.1-122-g88eea40</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>multidex</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.16.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
3c05978bcb1bbc28e35e7c2e2662b4d8fda10a23
\ No newline at end of file
a76e67dfed68205e53dc8d8e4aa7badec2328df1
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.linphone</groupId>
<artifactId>linphone-sdk-android</artifactId>
<version>4.1-156-ga46331c</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>multidex</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.16.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
368d94da71e120d226242d9c4c9af7a4d8b8024a
\ No newline at end of file
376c5bdee8d6ea3af0725a3a61f6ba4661e88a17
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.linphone</groupId>
<artifactId>linphone-sdk-android</artifactId>
<version>4.1-160-g7a9af0d</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>multidex</artifactId>
<version>1.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.16.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
3da5221c60f3502a4ad390bc0091f7bd11f8f73e
\ No newline at end of file
f9538d0b258f1cd53a70e5e51c5d4647
\ No newline at end of file
9d624b5a52efe02de202f216ea4b7839
\ No newline at end of file
6dd3b419909edb69274984309a296c4e61beee3d
\ No newline at end of file
9daef02cd45674e81472c901ea8b046930ebf6f5
\ No newline at end of file
......@@ -10,6 +10,6 @@
<version>4.1-160-g7a9af0d</version>
<version>4.1-166-g396010a</version>
</versions>
<lastUpdated>20190122082412</lastUpdated>
<lastUpdated>20190121010625</lastUpdated>
</versioning>
</metadata>
7686bc6008d0f6657f211235cb205b5a
\ No newline at end of file
a9e32bfadef914f3ab4d7058ef41669c
\ No newline at end of file
85028f672f2ada5c9d4d6edd871800b86b4b4291
\ No newline at end of file
76471991d15f86294f085ceec475496cb33ff301
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment