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

Commit 879549a

Browse files
committed
Merge branch 'release/0.8.16'
2 parents e5478fd + 9acb023 commit 879549a

File tree

206 files changed

+4938
-2958
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+4938
-2958
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ before_script:
4444

4545
# Just build the project for now
4646
script:
47-
- ./gradlew clean lintAppRelease assembleAppRelease --stacktrace
47+
- ./gradlew clean lintAppRelease assembleAppRelease assembleAppfdroidRelease --stacktrace
48+
- ./gradlew testAppReleaseUnitTest --stacktrace
4849
- ./tools/check/check_code_quality.sh
4950
- ./tools/travis/check_pr.sh

CHANGES.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
Changes in Riot 0.8.16 (2018-10-08)
2+
===================================================
3+
4+
MatrixSdk:
5+
- Upgrade to version 0.9.10.
6+
7+
Features:
8+
- Manage blue banner case of server quota notices (#2547)
9+
10+
Improvements:
11+
- Minor changes to toolbar style and other UI elements (#2529)
12+
- Improvements to dialogs, video messages, and the previewer activity (#2583)
13+
- Add a way to enable local file encryption on the SDK (disabled by default)
14+
15+
Other changes:
16+
- Sonar analysis has been configured (#2203)
17+
18+
Bugfix:
19+
- Fix crash when opening file with external application (#2573)
20+
- Fix issue on settings: unable to rename current device if it has no name (#2174)
21+
- Allow anyone to add local alias and to try to delete local alias (#1033)
22+
- Fix issue on "Resend all" action (#2569)
23+
- Fix messages vanishing when resending them (#2508)
24+
- Remove delay for / completion (#2576)
25+
126
Changes in Riot 0.8.15 (2018-08-30)
227
===================================================
328

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Riot-Android [![Jenkins](https://img.shields.io/jenkins/s/https/matrix.org/jenkins/view/MatrixView/job/VectorAndroidDevelop.svg)](https://matrix.org/jenkins/view/MatrixView/job/VectorAndroidDevelop/) [![Weblate](https://translate.riot.im/widgets/riot-android/-/svg-badge.svg)](https://translate.riot.im/engage/riot-android/?utm_source=widget)
1+
Riot-Android [![Jenkins](https://img.shields.io/jenkins/s/https/matrix.org/jenkins/view/MatrixView/job/VectorAndroidDevelop.svg)](https://matrix.org/jenkins/view/MatrixView/job/VectorAndroidDevelop/) [![Weblate](https://translate.riot.im/widgets/riot-android/-/svg-badge.svg)](https://translate.riot.im/engage/riot-android/?utm_source=widget) [![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=vector.android.riot&metric=alert_status)](https://sonarcloud.io/dashboard?id=vector.android.riot) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=vector.android.riot&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=vector.android.riot) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=vector.android.riot&metric=bugs)](https://sonarcloud.io/dashboard?id=vector.android.riot)
22
=======
33

44
Riot is an Android Matrix client.

build.gradle

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ buildscript {
66
repositories {
77
jcenter()
88
google()
9+
maven {
10+
url "https://plugins.gradle.org/m2/"
11+
}
912
}
1013
dependencies {
1114
classpath 'com.android.tools.build:gradle:3.1.2'
1215
classpath 'com.google.gms:google-services:3.2.0'
1316
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
17+
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2'
1418

1519
// NOTE: Do not place your application dependencies here; they belong
1620
// in the individual module build.gradle files
@@ -19,8 +23,8 @@ buildscript {
1923

2024
// global properties used in sub modules
2125
ext {
22-
versionCodeProp = 81500
23-
versionNameProp = "0.8.15"
26+
versionCodeProp = 81600
27+
versionNameProp = "0.8.16"
2428
versionBuild = System.getenv("BUILD_NUMBER") as Integer ?: 0
2529
buildNumberProp = "${versionBuild}"
2630
}
@@ -35,3 +39,39 @@ allprojects {
3539
google()
3640
}
3741
}
42+
43+
apply plugin: 'org.sonarqube'
44+
45+
sonarqube {
46+
properties {
47+
property "sonar.projectName", "Riot-Android"
48+
property "sonar.projectKey", "vector.android.riot"
49+
property "sonar.host.url", "https://sonarcloud.io"
50+
property "sonar.projectVersion", project(":vector").android.defaultConfig.versionName
51+
property "sonar.sourceEncoding", "UTF-8"
52+
property "sonar.links.homepage", "https://github.com/vector-im/riot-android/"
53+
property "sonar.links.ci", "https://matrix.org/jenkins/view/MatrixView/job/VectorAndroidDevelop/"
54+
property "sonar.links.scm", "https://github.com/vector-im/riot-android/"
55+
property "sonar.links.issue", "https://github.com/vector-im/riot-android/issues"
56+
property "sonar.organization", "new_vector_ltd_organization"
57+
property "sonar.login", project.hasProperty("SONAR_LOGIN") ? SONAR_LOGIN : "invalid"
58+
}
59+
}
60+
61+
project(":vector") {
62+
sonarqube {
63+
properties {
64+
property "sonar.sources", project(":vector").android.sourceSets.main.java.srcDirs
65+
// exclude source code from analyses separated by a colon (:)
66+
// property "sonar.exclusions", "**/*.*"
67+
}
68+
}
69+
}
70+
71+
if (findProject(':matrix-sdk') != null) {
72+
project(":matrix-sdk") {
73+
sonarqube {
74+
skipProject = true
75+
}
76+
}
77+
}

build_fdroid_apk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ rm -rf vector/libs
33
mkdir vector/libs
44

55
sh build_jitsi_libs.sh
6-
sh build_matrix_sdk_lib.sh
6+
sh build_matrix_sdk_lib.sh master
77
sh build_olm_lib.sh
88

99
./gradlew lintAppfdroidRelease assembleAppfdroidRelease

build_matrix_sdk_lib.sh

Lines changed: 49 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,60 @@
11
#!/bin/bash
22

3-
echo updir
3+
#
4+
# Copyright 2018 New Vector Ltd
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
19+
# exit on any error
20+
set -e
21+
22+
if [ "$#" -ne 1 ]; then
23+
echo "Usage: $0 GIT_BRANCH" >&2
24+
exit 1
25+
fi
26+
27+
# which branch to build?
28+
branch=$1
29+
30+
if [ -z "$branch" ]; then
31+
echo "Please specify the branch to build as a parameter"
32+
exit 1
33+
fi
34+
35+
echo ${branch}
36+
37+
echo "Save current dir"
38+
currentDir=`pwd`
39+
40+
echo "up dir"
441
cd ..
542

6-
echo remove sdk folder
43+
echo "remove sdk folder"
744
rm -rf matrix-android-sdk
845

9-
echo clone the git folder
10-
git clone -b master https://github.com/matrix-org/matrix-android-sdk
46+
echo "clone the matrix-android-sdk repository, and checkout ${branch} branch"
47+
git clone -b ${branch} https://github.com/matrix-org/matrix-android-sdk
1148

12-
cd matrix-android-sdk
49+
cd matrix-android-sdk
1350

51+
echo "Build matrix sdk from source"
1452
./gradlew clean assembleRelease
1553

16-
cd ../riot-android
17-
cp ../matrix-android-sdk/matrix-sdk/build/outputs/aar/matrix-sdk-release-*.aar vector/libs/matrix-sdk.aar
54+
cd ${currentDir}
55+
56+
echo "Copy freshly built matrix sdk to the libs folder"
57+
# Ensure the lib is updated by removing the previous one
58+
rm vector/libs/matrix-sdk.aar
1859

60+
cp ../matrix-android-sdk/matrix-sdk/build/outputs/aar/matrix-sdk-release-*.aar vector/libs/matrix-sdk.aar

build_matrix_sdk_lib_develop.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ org.gradle.configureondemand=false
2828
# RELEASE_KEY_ALIAS=alias
2929
# RELEASE_KEY_PASSWORD=password
3030

31+
# To be able to analyse with sonar, put these variables in ~/.gradle/gradle.properties
32+
# SONAR_LOGIN=sonar_login

tools/check/forbidden_strings_in_code.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,8 @@ trim \{ it \<\= \' \' \}
144144

145145
### Use AlertDialog form v7 compat lib
146146
android\.app\.AlertDialog
147+
148+
### Put the operator at the beginning of next line
149+
&&$
150+
\|\|$
151+
==$

vector/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ dependencies {
227227
appImplementation 'com.google.firebase:firebase-messaging:17.3.0'
228228

229229
// fdroid flavor only
230+
231+
// Test
232+
testImplementation 'junit:junit:4.12'
230233
}
231234

232235

0 commit comments

Comments
 (0)