Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Matrix SDK library is now built and hosted by Jitpack (Fixes matrix-o…
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty committed May 3, 2019
1 parent f6973bc commit 973cdef
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Improvements:

Other changes:
- Olm lib is now only a dependency of Matrix Sdk
- Matrix SDK library is now built and hosted by Jitpack (https://jitpack.io/#matrix-org/matrix-android-sdk/) (matrix-org/matrix-android-sdk#241)

Bugfix:
- Fix mistake in Arabic translation (#3129)
Expand Down
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ allprojects {
maven {
url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
}
// For Matrix Android SDK
maven {
url 'https://jitpack.io'
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion compile_with_sdk_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sed -i.bak "s/^include ':matrix-sdk'/\/\/include ':matrix-sdk'/" ./settings.grad
sed -i.bak "s/^project(':matrix-sdk')/\/\/project(':matrix-sdk')/" ./settings.gradle || true

echo "replace step 2"
sed -i.bak "s/^ \/\/implementation(name: 'matrix/ implementation(name: 'matrix/" ./vector/build.gradle || true
sed -i.bak "s/^ \/\/implementation 'com.github.matrix-org:matrix-android-sdk/ implementation 'com.github.matrix-org:matrix-android-sdk/" ./vector/build.gradle || true
sed -i.bak "s/^ implementation project(':matrix-/ \/\/implementation project(':matrix-/" ./vector/build.gradle || true

# Delete the created files
Expand Down
2 changes: 1 addition & 1 deletion compile_with_sdk_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sed -i.bak "s/^\/\/include ':matrix-sdk'/include ':matrix-sdk'/" ./settings.grad
sed -i.bak "s/^\/\/project(':matrix-sdk')/project(':matrix-sdk')/" ./settings.gradle || true

echo "replace step 2"
sed -i.bak "s/^ implementation(name: 'matrix/ \/\/implementation(name: 'matrix/" ./vector/build.gradle || true
sed -i.bak "s/^ implementation 'com.github.matrix-org:matrix-android-sdk/ \/\/implementation 'com.github.matrix-org:matrix-android-sdk/" ./vector/build.gradle || true
sed -i.bak "s/^ \/\/implementation project(':matrix-/ implementation project(':matrix-/" ./vector/build.gradle || true

# Delete the created files
Expand Down
4 changes: 2 additions & 2 deletions vector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ dependencies {

/************* Matrix SDK management **************/
// update settings.gradle
// use the matrix SDK as external lib
implementation(name: 'matrix-sdk', ext: 'aar')
// use the matrix SDK as external dependency
implementation 'com.github.matrix-org:matrix-android-sdk:v0.9.23'
// use the matrix SDK as a sub project
// you have to uncomment some lines in settings.gradle
//implementation project(':matrix-sdk')
Expand Down
Binary file removed vector/libs/matrix-sdk.aar
Binary file not shown.

0 comments on commit 973cdef

Please sign in to comment.