Compare commits

..
Author SHA1 Message Date
Tobias Kaminsky 8fc8cc9836 daily dev 20220127
gplay/AndroidManifest: set exported value for service
ezvcard/ContactOperations: suppress locale lint in third_party class
build.gradle: Disable some translation errors in lint
manifest: Remove unneeded labels
BackgroundJobFactory: fix lint due to unchecked build version for ContentObserverJob
lint: Fix getLayoutInflater calls
build.gradle: Run migrations for AGP 7.1.0
Update Nextcloud Android library
Update 3rd-party dependencies
2022-01-27 06:48:55 +01:00
Tobias Kaminsky a8dae30a3a Merge remote-tracking branch 'origin/master' into dev 2022-01-27 05:34:09 +01:00
Álvaro Brey 38c60b7618 Merge pull request #9758 from nextcloud/fix/analysis-again
Analysis: fix checkout and commit generation
2022-01-26 12:55:23 +01:00
Álvaro Brey Vilas 494cceab8e Analysis: fix checkout and commit generation
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 12:54:24 +01:00
Álvaro Brey 7eaed66ebc Merge pull request #9755 from nextcloud/dependabot/gradle/com.android.tools.build-gradle-7.1.0
Bump gradle from 7.0.4 to 7.1.0
2022-01-26 12:06:04 +01:00
Álvaro Brey Vilas 45fc831989 gplay/AndroidManifest: set exported value for service
picked up by lint

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas 9d5395c8fd ezvcard/ContactOperations: suppress locale lint in third_party class
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas 043d839d70 build.gradle: Disable some translation errors in lint
Translations are handled in Transifex

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas a9ec1de015 manifest: Remove unneeded labels
Trips up lint

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas 00586a5bde BackgroundJobFactory: fix lint due to unchecked build version for ContentObserverJob
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas b6115a5fc1 lint: Fix getLayoutInflater calls
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas b07716c0e5 screenshotTest: uninstall app before running
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas 9f2bdd5916 Analysis: use pull_request_target
Can't post reports otherwise as github token is readonly in pull_request

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:53 +01:00
Álvaro Brey Vilas e35b6211f0 build.gradle: Run migrations for AGP 7.1.0
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-26 11:33:52 +01:00
dependabot[bot] ae8752a4f7 Bump gradle from 7.0.4 to 7.1.0
Bumps gradle from 7.0.4 to 7.1.0.

---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-26 11:33:47 +01:00
Álvaro Brey e6d64e5ed5 Merge pull request #9754 from nextcloud/dependabot/gradle/mockitoVersion-4.3.1
Bump mockitoVersion from 4.3.0 to 4.3.1
2022-01-26 10:45:40 +01:00
Álvaro Brey 41b3921643 Merge pull request #9744 from nextcloud/dependabot/gradle/com.karumi-shot-5.13.0
Bump shot from 5.11.2 to 5.13.0
2022-01-26 10:44:25 +01:00
Tobias Kaminsky ebb74bc8a0 daily dev 20220126
Fix default visibility of recently modified
Remove recently added search
OCFileListFragment: restore search event on view restored
OCFileListFragment: add recently modified to the list of valid search events
Update translations
Update Nextcloud Android library
Update 3rd-party dependencies
2022-01-26 05:38:35 +01:00
Tobias Kaminsky 0e8fbe73b1 Merge remote-tracking branch 'origin/master' into dev 2022-01-26 05:31:19 +01:00
Nextcloud bot 750864d951 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-26 03:55:40 +00:00
dependabot[bot] 8e67653a38 Bump mockitoVersion from 4.3.0 to 4.3.1
Bumps `mockitoVersion` from 4.3.0 to 4.3.1.

Updates `mockito-core` from 4.3.0 to 4.3.1
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.3.0...v4.3.1)

Updates `mockito-android` from 4.3.0 to 4.3.1
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.3.0...v4.3.1)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.mockito:mockito-android
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-26 02:05:19 +00:00
Álvaro Brey Vilas 5a65c65e76 uploadReport: update shot path
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-25 10:41:06 +01:00
Álvaro Brey d057d48a89 Merge pull request #9745 from nextcloud/dependabot/gradle/mockitoVersion-4.3.0
Bump mockitoVersion from 4.2.0 to 4.3.0
2022-01-25 09:44:30 +01:00
Álvaro Brey a8feb7bb66 Merge pull request #9718 from nextcloud/fix/recent-files
Fix minor issues with recently modified view
2022-01-25 09:13:58 +01:00
Álvaro Brey b7f1ebd74b Merge pull request #9742 from nextcloud/fix/analysis-on-push
Run analysis workflow on push too
2022-01-25 09:07:25 +01:00
Tobias Kaminsky fe28ce3190 daily dev 20220125
Bump versions for fastlane and plugins
Update Nextcloud Android library
Update 3rd-party dependencies
2022-01-25 06:53:02 +01:00
Tobias Kaminsky dc6ea6cd0e Merge remote-tracking branch 'origin/master' into dev 2022-01-25 05:37:54 +01:00
dependabot[bot] 4c44d469e0 Bump mockitoVersion from 4.2.0 to 4.3.0
Bumps `mockitoVersion` from 4.2.0 to 4.3.0.

Updates `mockito-core` from 4.2.0 to 4.3.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.2.0...v4.3.0)

Updates `mockito-android` from 4.2.0 to 4.3.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.2.0...v4.3.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.mockito:mockito-android
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-25 02:04:50 +00:00
dependabot[bot] d328d89c2d Bump shot from 5.11.2 to 5.13.0
Bumps [shot](https://github.com/karumi/shot) from 5.11.2 to 5.13.0.
- [Release notes](https://github.com/karumi/shot/releases)
- [Commits](https://github.com/karumi/shot/compare/5.11.2...5.13.0)

---
updated-dependencies:
- dependency-name: com.karumi:shot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-25 02:04:25 +00:00
Álvaro Brey Vilas 22367838ab Run analysis workflow on push too
Otherwise baseline results aren't generated

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 16:25:33 +01:00
Tobias Kaminsky 2476be69ba Merge pull request #9737 from nextcloud/chore/bump-fastlane
Bump versions for fastlane and plugins
2022-01-24 14:51:09 +01:00
Álvaro Brey Vilas 1a735f1840 Fix default visibility of recently modified
Should be visible unless setup.xml disables is (which it does by default)

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 13:14:01 +01:00
Álvaro Brey Vilas c45dd9f5ff Remove recently added search
Was never fully implemented. Discarding in favor of recently modified.

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 13:14:01 +01:00
Álvaro Brey Vilas 63c780999d OCFileListFragment: restore search event on view restored
Partially reverts https://github.com/nextcloud/android/pull/9427, which deleted too much stuff

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 13:14:00 +01:00
Álvaro Brey Vilas 6a45a90019 OCFileListFragment: add recently modified to the list of valid search events
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 13:14:00 +01:00
Álvaro Brey Vilas 93f973cdc2 Bump versions for fastlane and plugins
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-24 12:09:29 +01:00
Álvaro Brey dd94e20045 Merge pull request #9734 from nextcloud/dependabot/gradle/com.github.spotbugs.snom-spotbugs-gradle-plugin-5.0.5
Bump spotbugs-gradle-plugin from 5.0.4 to 5.0.5
2022-01-24 09:53:05 +01:00
dependabot[bot] f0ea41a56b Bump spotbugs-gradle-plugin from 5.0.4 to 5.0.5
Bumps [spotbugs-gradle-plugin](https://github.com/spotbugs/spotbugs-gradle-plugin) from 5.0.4 to 5.0.5.
- [Release notes](https://github.com/spotbugs/spotbugs-gradle-plugin/releases)
- [Commits](https://github.com/spotbugs/spotbugs-gradle-plugin/compare/5.0.4...5.0.5)

---
updated-dependencies:
- dependency-name: com.github.spotbugs.snom:spotbugs-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
2022-01-24 08:13:52 +00:00
Tobias Kaminsky 21e756cf88 daily dev 20220124
Update translations
Update Nextcloud Android library
2022-01-24 06:48:45 +01:00
Tobias Kaminsky f7e53a17c0 Merge remote-tracking branch 'origin/master' into dev 2022-01-24 05:35:13 +01:00
Nextcloud bot 43610aedba [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-24 03:52:57 +00:00
27 changed files with 142 additions and 110 deletions

No files matched your search

+23 -2
View File
@@ -1,14 +1,35 @@
name: "Analysis"
on:
pull_request:
pull_request_target:
branches: [ master, stable-* ]
push:
branches: [ master, stable-* ]
jobs:
analysis:
runs-on: ubuntu-latest
steps:
- name: Setup variables
id: get-vars
run: |
if [ -z "$GITHUB_HEAD_REF" ]; then
# push
echo "::set-output name=branch::$GITHUB_REF_NAME"
echo "::set-output name=pr::$GITHUB_RUN_ID"
else
# pull request
echo "::set-output name=branch::$GITHUB_HEAD_REF"
echo "::set-output name=pr::${{ github.event.pull_request.number }}"
fi
- name: Show variables
run: |
echo "BRANCH: ${{ steps.get-vars.outputs.branch }}"
echo "PR: ${{ steps.get-vars.outputs.pr }}"
echo "RUN NUMBER: $GITHUB_RUN_NUMBER"
- uses: actions/checkout@v2
with:
ref: ${{ steps.get-vars.outputs.branch }}
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
@@ -18,4 +39,4 @@ jobs:
run: |
mkdir -p $HOME/.gradle
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
scripts/analysis/analysis-wrapper.sh ${{ secrets.GIT_USERNAME }} ${{ secrets.GIT_TOKEN }} ${{ github.head_ref }} ${{ secrets.LOG_USERNAME }} ${{ secrets.LOG_PASSWORD }} $GITHUB_RUN_NUMBER ${{ github.event.pull_request.number }}
scripts/analysis/analysis-wrapper.sh ${{ secrets.GIT_USERNAME }} ${{ secrets.GIT_TOKEN }} ${{ steps.get-vars.outputs.branch }} ${{ secrets.LOG_USERNAME }} ${{ secrets.LOG_PASSWORD }} $GITHUB_RUN_NUMBER ${{ steps.get-vars.outputs.pr }}
+1 -1
View File
@@ -71,7 +71,7 @@ jobs:
sdcard-path-or-size: 100M
target: google_apis
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -skin 500x833
script: ./gradlew gplayDebugExecuteScreenshotTests -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest -Pandroid.testInstrumentationRunnerArguments.COLOR=${{ matrix.color }} -Pandroid.testInstrumentationRunnerArguments.DARKMODE=${{ matrix.scheme }}
script: ./gradlew uninstallAll gplayDebugExecuteScreenshotTests -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest -Pandroid.testInstrumentationRunnerArguments.COLOR=${{ matrix.color }} -Pandroid.testInstrumentationRunnerArguments.DARKMODE=${{ matrix.scheme }}
- name: upload failing results
if: ${{ failure() }}
run:
+26 -22
View File
@@ -8,23 +8,23 @@ GEM
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.541.0)
aws-sdk-core (3.124.0)
aws-partitions (1.549.0)
aws-sdk-core (3.125.5)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.52.0)
aws-sdk-core (~> 3, >= 3.122.0)
aws-sdk-kms (1.53.0)
aws-sdk-core (~> 3, >= 3.125.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.109.0)
aws-sdk-core (~> 3, >= 3.122.0)
aws-sdk-s3 (1.111.2)
aws-sdk-core (~> 3, >= 3.125.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.4)
aws-sigv4 (1.4.0)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
claide (1.0.3)
claide (1.1.0)
colored (1.2)
colored2 (3.1.2)
commander (4.6.0)
@@ -36,17 +36,18 @@ GEM
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.6)
emoji_regex (3.2.3)
excon (0.89.0)
faraday (1.8.0)
excon (0.90.0)
faraday (1.9.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.1)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
multipart-post (>= 1.2, < 3)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-cookie_jar (0.0.7)
faraday (>= 0.8.0)
@@ -55,14 +56,17 @@ GEM
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday_middleware (1.2.0)
faraday (~> 1.0)
fastimage (2.2.5)
fastlane (2.199.0)
fastimage (2.2.6)
fastlane (2.201.1)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
@@ -101,11 +105,11 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-huawei_appgallery_connect (1.0.17)
fastlane-plugin-huawei_appgallery_connect (1.0.18)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.14.0)
google-apis-androidpublisher_v3 (0.15.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-core (0.4.1)
google-apis-core (0.4.2)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
httpclient (>= 2.8.1, < 3.a)
@@ -114,11 +118,11 @@ GEM
retriable (>= 2.0, < 4.a)
rexml
webrick
google-apis-iamcredentials_v1 (0.9.0)
google-apis-iamcredentials_v1 (0.10.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-playcustomapp_v1 (0.6.0)
google-apis-playcustomapp_v1 (0.7.0)
google-apis-core (>= 0.4, < 2.a)
google-apis-storage_v1 (0.10.0)
google-apis-storage_v1 (0.11.0)
google-apis-core (>= 0.4, < 2.a)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
@@ -126,7 +130,7 @@ GEM
google-cloud-env (1.5.0)
faraday (>= 0.17.3, < 2.0)
google-cloud-errors (1.2.0)
google-cloud-storage (1.35.0)
google-cloud-storage (1.36.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
@@ -145,7 +149,7 @@ GEM
http-cookie (1.0.4)
domain_name (~> 0.5)
httpclient (2.8.3)
jmespath (1.4.0)
jmespath (1.5.0)
json (2.6.1)
jwt (2.3.0)
memoist (0.16.2)
+18 -24
View File
@@ -19,13 +19,13 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
classpath 'com.android.tools.build:gradle:7.1.0'
classpath 'com.hiya:jacoco-android:0.2'
classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.4'
classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.5'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.19.0"
classpath "commons-httpclient:commons-httpclient:3.1@jar" // remove after entire switch to lib v2
classpath 'com.karumi:shot:5.11.2'
classpath 'com.karumi:shot:5.13.0'
classpath "org.jacoco:org.jacoco.core:$jacoco_version"
classpath "org.jacoco:org.jacoco.report:$jacoco_version"
classpath "org.jacoco:org.jacoco.agent:$jacoco_version"
@@ -64,8 +64,8 @@ ext {
daggerVersion = "2.40.5"
markwonVersion = "4.6.2"
prismVersion = "2.0.0"
androidLibraryVersion ="2b6ccf62a00f9feb7f1c48483c17ba6a260b6caa"
mockitoVersion = "4.2.0"
androidLibraryVersion ="26878b66a0cd72c44f046307bc0098324c8df48f"
mockitoVersion = "4.3.1"
mockkVersion = "1.12.2"
powermockVersion = "2.0.9"
byteBuddyVersion = "1.12.7"
@@ -102,20 +102,6 @@ for (TaskExecutionRequest tr : getGradle().getStartParameter().getTaskRequests()
}
android {
lintOptions {
checkGeneratedSources = true
abortOnError false
htmlReport true
htmlOutput file("$project.buildDir/reports/lint/lint.html")
disable 'MissingTranslation',
'GradleDependency',
'VectorPath',
'IconMissingDensityFolder',
'IconDensities',
'GoogleAppIndexingWarning',
'MissingDefaultResource',
'InvalidPeriodicWorkRequestInterval' // crashes due to a bug in lint itself
}
compileSdkVersion 31
@@ -173,8 +159,8 @@ android {
versionDev {
applicationId "com.nextcloud.android.beta"
dimension "default"
versionCode 20220122
versionName "20220122"
versionCode 20220127
versionName "20220127"
}
qa {
@@ -193,10 +179,10 @@ android {
// adapt structure from Eclipse to Gradle/Android Studio expectations;
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
resources {
excludes += ['META-INF/LICENSE.txt', 'META-INF/LICENSE']
}
}
tasks.register("checkstyle", Checkstyle) {
@@ -239,6 +225,14 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}
lint {
abortOnError false
checkGeneratedSources true
disable 'MissingTranslation', 'GradleDependency', 'VectorPath', 'IconMissingDensityFolder', 'IconDensities', 'GoogleAppIndexingWarning', 'MissingDefaultResource', 'InvalidPeriodicWorkRequestInterval', 'StringFormatInvalid', 'MissingQuantity'
htmlOutput file("$project.buildDir/reports/lint/lint.html")
htmlReport true
}
}
dependencies {
+1 -3
View File
@@ -110,8 +110,6 @@ previous_git_email = previous_git_email.strip
# update git user name and email for this script
system ("git config --local user.name '" + git_user + "'")
system ("git config --local user.email '[email protected]'")
system ("git remote rm origin")
system ("git remote add origin https://" + git_user + ":" + git_token + "@github.com/nextcloud/android")
# add previous FindBugs result file to git
system ('git add ' + PREVIOUS_FINDBUGS_RESULTS_FILE)
@@ -120,7 +118,7 @@ system ('git add ' + PREVIOUS_FINDBUGS_RESULTS_FILE)
system({"GIT_COMMITTER_EMAIL" => "[email protected]", "GIT_AUTHOR_EMAIL" => "[email protected]"}, 'git commit -sm "Drone: update FindBugs results to reflect reduced error/warning count [skip ci]"')
# push to origin
system ('git push origin HEAD:' + git_branch)
system ('git push')
# restore previous git user name and email
system("git config --local user.name '#{previous_git_username}'")
+1 -7
View File
@@ -179,8 +179,6 @@ previous_git_email = previous_git_email.strip
# update git user name and email for this script
system ("git config --local user.name '" + git_user + "'")
system ("git config --local user.email '[email protected]'")
system ("git remote rm origin")
system ("git remote add origin https://" + git_user + ":" + git_token + "@github.com/nextcloud/android")
# add previous Lint result file to git
system ('git add ' + PREVIOUS_LINT_RESULTS_FILE)
@@ -189,11 +187,7 @@ system ('git add ' + PREVIOUS_LINT_RESULTS_FILE)
system({"GIT_COMMITTER_EMAIL" => "[email protected]", "GIT_AUTHOR_EMAIL" => "[email protected]"}, 'git commit -sm "Drone: update Lint results to reflect reduced error/warning count [skip ci]"')
# push to origin
system ('git push origin HEAD:' + git_branch)
# restore previous git user name and email
system("git config --local user.name '#{previous_git_username}'")
system("git config --local user.email '#{previous_git_email}'")
system ('git push')
puts "SUCCESS: count was reduced"
exit 0 # success
+3 -3
View File
@@ -67,7 +67,7 @@ if [ $TYPE = "IT" ]; then
elif [ $TYPE = "Unit" ]; then
FOLDER=build/reports/tests/testGplayDebugUnitTest
else
FOLDER=build/reports/shot/verification
FOLDER=build/reports/shot/gplay/debug/verification
fi
if [ -e $FOLDER ]; then
@@ -92,10 +92,10 @@ else
upload "build/reports/tests/testGplayDebugUnitTest"
fi
if [ -e build/reports/shot/verification ] ; then
if [ -e build/reports/shot/gplay/debug/verification ] ; then
TYPE="Screenshot"
BRANCH_TYPE=$BRANCH-$TYPE
upload "build/reports/shot/verification"
upload "build/reports/shot/gplay/debug/verification"
fi
exit 1 # always fail
+1
View File
@@ -63,6 +63,7 @@
<service
android:exported="false"
android:name=".services.firebase.NCFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
+1 -5
View File
@@ -88,7 +88,6 @@
android:name=".ui.activity.FileDisplayActivity"
android:configChanges="orientation|screenSize"
android:exported="true"
android:label="@string/app_name"
android:launchMode="singleTop"
android:theme="@style/Theme.ownCloud.Launcher">
<intent-filter>
@@ -193,7 +192,6 @@
<activity
android:name=".ui.preview.PreviewVideoActivity"
android:exported="false"
android:label="@string/app_name"
android:theme="@style/Theme.ownCloud.Fullscreen" />
<service
@@ -425,12 +423,10 @@
android:label="@string/copy_link" />
<activity
android:name=".ui.activity.FolderPickerActivity"
android:exported="false"
android:label="@string/app_name" />
android:exported="false" />
<activity
android:name=".ui.activity.FilePickerActivity"
android:exported="false"
android:label="@string/app_name"
android:launchMode="singleTop"
android:theme="@style/Theme.ownCloud.Dialog.NoTitle"
android:windowSoftInputMode="adjustResize" />
@@ -19,6 +19,7 @@
*/
package com.nextcloud.client.jobs
import android.annotation.SuppressLint
import android.app.NotificationManager
import android.content.ContentResolver
import android.content.Context
@@ -65,6 +66,7 @@ class BackgroundJobFactory @Inject constructor(
private val deckApi: DeckApi
) : WorkerFactory() {
@SuppressLint("NewApi")
@Suppress("ComplexMethod") // it's just a trivial dispatch
override fun createWorker(
context: Context,
@@ -78,18 +80,22 @@ class BackgroundJobFactory @Inject constructor(
null
}
return when (workerClass) {
ContentObserverWork::class -> createContentObserverJob(context, workerParameters, clock)
ContactsBackupWork::class -> createContactsBackupWork(context, workerParameters)
ContactsImportWork::class -> createContactsImportWork(context, workerParameters)
FilesSyncWork::class -> createFilesSyncWork(context, workerParameters)
OfflineSyncWork::class -> createOfflineSyncWork(context, workerParameters)
MediaFoldersDetectionWork::class -> createMediaFoldersDetectionWork(context, workerParameters)
NotificationWork::class -> createNotificationWork(context, workerParameters)
AccountRemovalWork::class -> createAccountRemovalWork(context, workerParameters)
CalendarBackupWork::class -> createCalendarBackupWork(context, workerParameters)
CalendarImportWork::class -> createCalendarImportWork(context, workerParameters)
else -> null // caller falls back to default factory
// ContentObserverWork requires N
return if (deviceInfo.apiLevel >= Build.VERSION_CODES.N && workerClass == ContentObserverWork::class) {
createContentObserverJob(context, workerParameters, clock)
} else {
when (workerClass) {
ContactsBackupWork::class -> createContactsBackupWork(context, workerParameters)
ContactsImportWork::class -> createContactsImportWork(context, workerParameters)
FilesSyncWork::class -> createFilesSyncWork(context, workerParameters)
OfflineSyncWork::class -> createOfflineSyncWork(context, workerParameters)
MediaFoldersDetectionWork::class -> createMediaFoldersDetectionWork(context, workerParameters)
NotificationWork::class -> createNotificationWork(context, workerParameters)
AccountRemovalWork::class -> createAccountRemovalWork(context, workerParameters)
CalendarBackupWork::class -> createCalendarBackupWork(context, workerParameters)
CalendarImportWork::class -> createCalendarImportWork(context, workerParameters)
else -> null // caller falls back to default factory
}
}
}
@@ -82,7 +82,7 @@ class ChooseAccountDialogFragment :
@SuppressLint("InflateParams")
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
_binding = DialogChooseAccountBinding.inflate(LayoutInflater.from(requireContext()))
_binding = DialogChooseAccountBinding.inflate(layoutInflater)
dialogView = binding.root
return MaterialAlertDialogBuilder(requireContext())
@@ -126,7 +126,7 @@ class SetStatusDialogFragment :
@SuppressLint("InflateParams")
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
binding = DialogSetStatusBinding.inflate(LayoutInflater.from(context))
binding = DialogSetStatusBinding.inflate(layoutInflater)
return AlertDialog.Builder(requireContext())
.setView(binding.root)
@@ -359,7 +359,7 @@ public class ReceiveExternalFilesActivity extends FileActivity
}
}
LayoutInflater layout = LayoutInflater.from(requireContext());
LayoutInflater layout = getLayoutInflater();
View view = layout.inflate(R.layout.upload_file_dialog, null);
ArrayAdapter<String> adapter
@@ -153,7 +153,6 @@ public class ExtendedListFragment extends Fragment implements
FAVORITE_SEARCH,
GALLERY_SEARCH,
RECENTLY_MODIFIED_SEARCH,
RECENTLY_ADDED_SEARCH,
// not a real filter, but nevertheless
SHARED_FILTER
}
@@ -673,10 +672,6 @@ public class ExtendedListFragment extends Fragment implements
setMessageForEmptyList(R.string.file_list_empty_headline_server_search,
R.string.file_list_empty_recently_modified,
R.drawable.ic_list_empty_recent);
} else if (searchType == SearchType.RECENTLY_ADDED_SEARCH) {
setMessageForEmptyList(R.string.file_list_empty_headline_server_search,
R.string.file_list_empty_recently_added,
R.drawable.ic_list_empty_recent);
} else if (searchType == SearchType.REGULAR_FILTER) {
setMessageForEmptyList(R.string.file_list_empty_headline_search,
R.string.file_list_empty_search,
@@ -54,6 +54,7 @@ import com.nextcloud.client.device.DeviceInfo;
import com.nextcloud.client.di.Injectable;
import com.nextcloud.client.network.ClientFactory;
import com.nextcloud.client.preferences.AppPreferences;
import com.nextcloud.client.utils.Throttler;
import com.owncloud.android.MainApp;
import com.owncloud.android.R;
import com.owncloud.android.datamodel.ArbitraryDataProvider;
@@ -101,7 +102,6 @@ import com.owncloud.android.utils.EncryptionUtils;
import com.owncloud.android.utils.FileSortOrder;
import com.owncloud.android.utils.FileStorageUtils;
import com.owncloud.android.utils.MimeTypeUtil;
import com.nextcloud.client.utils.Throttler;
import com.owncloud.android.utils.theme.ThemeColorUtils;
import com.owncloud.android.utils.theme.ThemeFabUtils;
import com.owncloud.android.utils.theme.ThemeToolbarUtils;
@@ -240,6 +240,9 @@ public class OCFileListFragment extends ExtendedListFragment implements
if (intent.getParcelableExtra(OCFileListFragment.SEARCH_EVENT) != null) {
searchEvent = Parcels.unwrap(intent.getParcelableExtra(OCFileListFragment.SEARCH_EVENT));
}
if (isSearchEventSet(searchEvent)) {
handleSearchEvent(searchEvent);
}
@@ -1376,9 +1379,6 @@ public class OCFileListFragment extends ExtendedListFragment implements
case GALLERY_SEARCH:
setTitle(R.string.drawer_item_gallery);
break;
case RECENTLY_ADDED_SEARCH:
setTitle(R.string.drawer_item_recently_added);
break;
case RECENTLY_MODIFIED_SEARCH:
setTitle(R.string.drawer_item_recently_modified);
break;
@@ -1397,9 +1397,6 @@ public class OCFileListFragment extends ExtendedListFragment implements
if (event != null) {
switch (event.getSearchType()) {
case FAVORITE_SEARCH:
menuItemAddRemoveValue = MenuItemAddRemove.REMOVE_SORT;
break;
case RECENTLY_MODIFIED_SEARCH:
menuItemAddRemoveValue = MenuItemAddRemove.REMOVE_SORT;
break;
@@ -1479,6 +1476,15 @@ public class OCFileListFragment extends ExtendedListFragment implements
}
}
@Override
public void onViewStateRestored(@Nullable Bundle savedInstanceState) {
super.onViewStateRestored(savedInstanceState);
if (savedInstanceState != null) {
searchEvent = Parcels.unwrap(savedInstanceState.getParcelable(SEARCH_EVENT));
}
}
@Subscribe(threadMode = ThreadMode.BACKGROUND)
public void onMessageEvent(final SearchEvent event) {
handleSearchEvent(event);
@@ -1717,7 +1723,8 @@ public class OCFileListFragment extends ExtendedListFragment implements
(!TextUtils.isEmpty(event.getSearchQuery()) ||
event.searchType == SearchRemoteOperation.SearchType.SHARED_SEARCH ||
event.searchType == SearchRemoteOperation.SearchType.SHARED_FILTER ||
event.searchType == SearchRemoteOperation.SearchType.FAVORITE_SEARCH);
event.searchType == SearchRemoteOperation.SearchType.FAVORITE_SEARCH ||
event.searchType == SearchRemoteOperation.SearchType.RECENTLY_MODIFIED_SEARCH);
}
private void syncAndCheckFiles(Collection<OCFile> files) {
@@ -46,10 +46,6 @@ public final class DrawerMenuUtil {
filterMenuItems(menu, R.id.nav_gallery, R.id.nav_favorites);
}
if (!resources.getBoolean(R.bool.recently_added_enabled)) {
menu.removeItem(R.id.nav_recently_added);
}
if (!resources.getBoolean(R.bool.recently_modified_enabled)) {
menu.removeItem(R.id.nav_recently_modified);
}
@@ -1,5 +1,6 @@
package third_parties.ezvcard_android;
import android.annotation.SuppressLint;
import android.content.ContentProviderOperation;
import android.content.ContentValues;
import android.content.Context;
@@ -474,6 +475,7 @@ public class ContactOperations {
}
private void convertBirthdays(List<NonEmptyContentValues> contentValues, VCard vcard) {
@SuppressLint("SimpleDateFormat")
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
for (Birthday birthday : vcard.getBirthdays()) {
Date date = birthday.getDate();
+1 -7
View File
@@ -53,18 +53,12 @@
android:icon="@drawable/nav_on_device"
android:orderInCategory="0"
android:title="@string/drawer_item_on_device"/>
<item
android:id="@+id/nav_recently_added"
android:icon="@drawable/nav_recently"
android:orderInCategory="0"
android:title="@string/drawer_item_recently_added"
android:visible="false"/>
<item
android:id="@+id/nav_recently_modified"
android:icon="@drawable/nav_recently"
android:orderInCategory="0"
android:title="@string/drawer_item_recently_modified"
android:visible="false"/>
android:visible="true"/>
<item
android:orderInCategory="0"
android:id="@+id/nav_notifications"
+4
View File
@@ -150,8 +150,10 @@
<string name="conflict_already_existing_file">Már létező fájl</string>
<string name="conflict_dialog_error">Hiba az ütközési párbeszédablak létrehozásakor!</string>
<string name="conflict_file_headline">Ütköző fájl: %1$s</string>
<string name="conflict_local_file">Helyi fájl</string>
<string name="conflict_message_description">Amennyiben mindkét verziót kiválasztja, a helyi fájl nevéhez egy szám lesz hozzáfűzve.</string>
<string name="conflict_new_file">Új fájl</string>
<string name="conflict_server_file">Kiszolgálón lévő fájl</string>
<string name="contactlist_item_icon">Felhasználó ikon a névjegylistához</string>
<string name="contactlist_no_permission">Nincs jogosultság megadva, semmi sem lett importálva.</string>
<string name="contacts">Névjegyek</string>
@@ -459,6 +461,7 @@
<string name="no_email_app_available">Nem érhető el alkalmazás a levélcímek kezeléséhez</string>
<string name="no_mutliple_accounts_allowed">Csak egy fiók engedélyezett</string>
<string name="no_pdf_app_available">Nincs elérhető alkalmazás PDF kezeléséhez</string>
<string name="no_send_app">Nem érhető el alkalmazás a kiválasztott fájlok küldéséhez</string>
<string name="no_share_permission_selected">Válasszon legalább egy jogosultságot a megosztáshoz.</string>
<string name="note_confirm">Küldés</string>
<string name="note_could_not_sent">A jegyzet nem küldhető el</string>
@@ -547,6 +550,7 @@
<string name="prefs_lock_using_device_credentials">Eszközhitelesítő-adatok</string>
<string name="prefs_lock_using_passcode">Számkód</string>
<string name="prefs_manage_accounts">Fiókok kezelése</string>
<string name="prefs_recommend">Ajánlás egy barátnak</string>
<string name="prefs_show_hidden_files">Rejtett fájlok megjelenítése</string>
<string name="prefs_sourcecode">Forráskód beszerzése</string>
<string name="prefs_storage_path">Adattároló mappa</string>
+1 -1
View File
@@ -218,7 +218,7 @@
<string name="drawer_close">Zamknij pasek boczny</string>
<string name="drawer_community">Społeczność</string>
<string name="drawer_header_background">Tło nagłówka menu rozwijanego</string>
<string name="drawer_item_activities">Aktywności</string>
<string name="drawer_item_activities">Aktywność</string>
<string name="drawer_item_all_files">Wszystkie pliki</string>
<string name="drawer_item_favorites">Ulubione</string>
<string name="drawer_item_gallery">Media</string>
+1
View File
@@ -461,6 +461,7 @@
<string name="no_email_app_available">E-posta adreslerini işleyecek bir uygulama bulunamadı</string>
<string name="no_mutliple_accounts_allowed">Yalnız bir hesap kullanılabilir</string>
<string name="no_pdf_app_available">PDF dosyalarını işleyecek bir uygulama bulunamadı</string>
<string name="no_send_app">Seçilmiş dosyaların gönderilebileceği bir uygulama bulunamadı</string>
<string name="no_share_permission_selected">Lütfen paylaşmak için en az bir izin seçin.</string>
<string name="note_confirm">Gönder</string>
<string name="note_could_not_sent">Not gönderilemedi</string>
-1
View File
@@ -53,7 +53,6 @@
<bool name="multiaccount_support">true</bool>
<!-- Drawer options -->
<bool name="recently_added_enabled">false</bool>
<bool name="recently_modified_enabled">false</bool>
<bool name="shared_enabled">true</bool>
<bool name="show_drawer_logout">false</bool>
-2
View File
@@ -22,7 +22,6 @@
<string name="drawer_item_home">Home</string>
<string name="drawer_item_favorites">Favorites</string>
<string name="drawer_item_on_device">On device</string>
<string name="drawer_item_recently_added">Recently added</string>
<string name="drawer_item_recently_modified">Recently modified</string>
<string name="drawer_item_shared">Shared</string>
<string name="drawer_item_uploads_list">Uploads</string>
@@ -100,7 +99,6 @@
<string name="file_list_empty_shared">Files and folders you share will show up here.</string>
<string name="file_list_empty_search">Maybe it is in a different folder?</string>
<string name="file_list_empty_recently_modified">Found no files modified within the last 7 days</string>
<string name="file_list_empty_recently_added">Found no recently added files</string>
<string name="trashbin_empty_headline">No deleted files</string>
<string name="trashbin_empty_message">You will be able to recover deleted files from here.</string>
<string name="upload_list_empty_headline">No uploads available</string>
@@ -0,0 +1,3 @@
Update translations
Update Nextcloud Android library
@@ -0,0 +1,3 @@
Bump versions for fastlane and plugins
Update Nextcloud Android library
Update 3rd-party dependencies
@@ -0,0 +1,7 @@
Fix default visibility of recently modified
Remove recently added search
OCFileListFragment: restore search event on view restored
OCFileListFragment: add recently modified to the list of valid search events
Update translations
Update Nextcloud Android library
Update 3rd-party dependencies
@@ -0,0 +1,9 @@
gplay/AndroidManifest: set exported value for service
ezvcard/ContactOperations: suppress locale lint in third_party class
build.gradle: Disable some translation errors in lint
manifest: Remove unneeded labels
BackgroundJobFactory: fix lint due to unchecked build version for ContentObserverJob
lint: Fix getLayoutInflater calls
build.gradle: Run migrations for AGP 7.1.0
Update Nextcloud Android library
Update 3rd-party dependencies