Compare commits

...
Author SHA1 Message Date
Tobias Kaminsky 975ee12cc0 daily dev 20220122
Bump version to 3.20.0 on master
2022-01-22 05:37:41 +01:00
Tobias Kaminsky c2cd8e2486 Merge remote-tracking branch 'origin/master' into dev 2022-01-22 05:30:57 +01:00
Tobias Kaminsky 70b93ed89c Merge pull request #9723 from nextcloud/bump-minor-version
Bump version to 3.20.0 on master
2022-01-21 08:58:47 +01:00
Tobias Kaminsky add4b08802 Merge pull request #9721 from nextcloud/chore/temurin
workflows: Use temurin JDK instead of adopt
2022-01-21 08:33:12 +01:00
Tobias Kaminsky e0d2670a5e daily dev 20220121
Restore library version
Use capability in SearchRemoteOperation
Clear DNS cache on network changes
Update translations
Update Nextcloud Android library
2022-01-21 06:44:26 +01:00
Tobias Kaminsky 68b08163b7 Merge remote-tracking branch 'origin/master' into dev 2022-01-21 05:33:52 +01:00
Nextcloud bot d8cbde9105 [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-21 03:52:14 +00:00
Álvaro Brey Vilas f4e979a385 Bump version to 3.20.0 on master
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-20 15:00:46 +01:00
Álvaro Brey Vilas 417dee2535 workflows: Use temurin JDK instead of adopt
Ref: https://blog.adoptopenjdk.net/2021/08/goodbye-adoptopenjdk-hello-adoptium/

tl;dr: AdoptOpenJDK is discontinued and recommendation is to use Eclipse Temurin instead

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-20 11:01:09 +01:00
Álvaro Brey 717ad59140 Merge pull request #9651 from nextcloud/gallerySearch
Use capability in SearchRemoteOperation
2022-01-20 10:59:29 +01:00
Tobias Kaminsky 84507a39aa Merge pull request #9719 from nextcloud/fix/ipv4-cache
Clear DNS cache on network changes
2022-01-20 09:42:56 +01:00
Álvaro Brey Vilas 7d58967517 Restore library version
Required PR has been merged on library

Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-20 09:34:32 +01:00
tobiasKaminsky a9cec44b1f Use capability in SearchRemoteOperation
Signed-off-by: tobiasKaminsky <[email protected]>
2022-01-20 09:10:33 +01:00
Tobias Kaminsky 7b30483a52 Create scorecards-analysis.yml 2022-01-20 07:14:36 +01:00
Tobias Kaminsky 2d603b1cfd daily dev 20220120
Remove IRC info from app and docs
Update translations
Update Nextcloud Android library
2022-01-20 06:45:11 +01:00
Tobias Kaminsky ec33e5591d Merge remote-tracking branch 'origin/master' into dev 2022-01-20 05:33:39 +01:00
Nextcloud bot 2956fafabc [tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <[email protected]>
2022-01-20 03:54:30 +00:00
Álvaro Brey Vilas 7299b598d4 Clear DNS cache on network changes
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-19 16:34:09 +01:00
Álvaro Brey 648c104cd9 Merge pull request #9121 from redgloboli/redgloboli-no-more-freenode
Update README.md
2022-01-19 11:11:39 +01:00
Álvaro Brey Vilas ea0bc503e0 Update CommunityActivity screenshot
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-18 18:20:17 +01:00
redgloboli 0f62399615 Remove IRC info from app and docs
Signed-off-by: Álvaro Brey Vilas <[email protected]>
2022-01-18 16:26:58 +01:00
26 changed files with 107 additions and 43 deletions

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: Run analysis wrapper
run: |
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
- name: set up JDK 11
uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: Build ${{ matrix.flavor }}
run: |
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: Check ${{ matrix.task }}
run: ./gradlew ${{ matrix.task }}
File renamed without changes.
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: Build QA
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
+55
View File
@@ -0,0 +1,55 @@
name: Scorecards supply-chain security
on:
# Only the default branch is supported.
branch_protection_rule:
schedule:
- cron: '33 1 * * 5'
push:
branches: [ master ]
# Declare default permissions as read only.
permissions: read-all
jobs:
analysis:
name: Scorecards analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
actions: read
contents: read
steps:
- name: "Checkout code"
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
with:
persist-credentials: false
- name: "Run analysis"
uses: ossf/scorecard-action@e3e75cf2ffbf9364bbff86cdbdf52b23176fe492 # v1.0.1
with:
results_file: results.sarif
results_format: sarif
# Read-only PAT token. To create it,
# follow the steps in https://github.com/ossf/scorecard-action#pat-token-creation.
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
# Publish the results to enable scorecard badges. For more details, see
# https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories, `publish_results` will automatically be set to `false`,
# regardless of the value entered here.
publish_results: false
# Upload the results as artifacts (optional).
- name: "Upload artifact"
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2.3.1
with:
name: SARIF file
path: results.sarif
retention-days: 5
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # v1.0.26
with:
sarif_file: results.sarif
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: "adopt"
distribution: "temurin"
java-version: 11
- name: create AVD and generate snapshot for caching
-4
View File
@@ -1,9 +1,5 @@
# [Nextcloud](https://nextcloud.com) Android app
[![irc](https://img.shields.io/badge/IRC-%23nextcloud%20on%20freenode-orange.svg)](https://webchat.freenode.net/?channels=nextcloud)
[![irc](https://img.shields.io/badge/IRC-%23nextcloud--mobile%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=nextcloud-mobile)
# Index
1. [Guidelines](#guidelines)
1. [Issue reporting](#issue-reporting)
+2 -3
View File
@@ -1,6 +1,6 @@
# [Nextcloud](https://nextcloud.com) Android app :iphone:
[![Build Status](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/80401cb343854343b4d94acbfb72d3ec)](https://www.codacy.com/app/Nextcloud/android?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=nextcloud/android&amp;utm_campaign=Badge_Grade) [![Releases](https://img.shields.io/github/release/nextcloud/android.svg)](https://github.com/nextcloud/android/releases/latest) [![irc](https://img.shields.io/badge/IRC-%23nextcloud--mobile%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=nextcloud-mobile)
[![Build Status](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/80401cb343854343b4d94acbfb72d3ec)](https://www.codacy.com/app/Nextcloud/android?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=nextcloud/android&amp;utm_campaign=Badge_Grade) [![Releases](https://img.shields.io/github/release/nextcloud/android.svg)](https://github.com/nextcloud/android/releases/latest)
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png"
alt="Download from Google Play"
@@ -16,7 +16,6 @@
## How to contribute :rocket:
If you want to [contribute](https://nextcloud.com/contribute/) to Nextcloud, you are very welcome:
- on our IRC channels [![irc](https://img.shields.io/badge/IRC-%23nextcloud%20on%20freenode-orange.svg)](https://webchat.freenode.net/?channels=nextcloud) and [![irc](https://img.shields.io/badge/IRC-%23nextcloud--mobile%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=nextcloud-mobile) on freenode
- our forum at https://help.nextcloud.com
- for translations of the app on [Transifex](https://www.transifex.com/nextcloud/nextcloud/android/)
- opening issues and PRs (including a corresponding issue)
@@ -75,7 +74,7 @@ or
## Support :rescue_worker_helmet:
If you need assistance or want to ask a question about the Android app, you are welcome to [ask for support](https://help.nextcloud.com/c/clients/android) in our Forums or the [IRC-Channel](https://webchat.freenode.net/?channels=nextcloud-mobile). If you have found a bug, feel free to [open a new Issue on GitHub](https://github.com/nextcloud/android/issues). Keep in mind, that this repository only manages the Android app. If you find bugs or have problems with the server/backend, you should ask the [Nextcloud server team](https://github.com/nextcloud/server) for help!
If you need assistance or want to ask a question about the Android app, you are welcome to [ask for support](https://help.nextcloud.com/c/clients/android) in our Forums. If you have found a bug, feel free to [open a new Issue on GitHub](https://github.com/nextcloud/android/issues). Keep in mind, that this repository only manages the Android app. If you find bugs or have problems with the server/backend, you should ask the [Nextcloud server team](https://github.com/nextcloud/server) for help!
## Remarks :scroll:
+4 -4
View File
@@ -64,7 +64,7 @@ ext {
daggerVersion = "2.40.5"
markwonVersion = "4.6.2"
prismVersion = "2.0.0"
androidLibraryVersion ="1b0e418e6843f56c62ee37854a8c167ed7aadd72"
androidLibraryVersion ="2b6ccf62a00f9feb7f1c48483c17ba6a260b6caa"
mockitoVersion = "4.2.0"
mockkVersion = "1.12.2"
powermockVersion = "2.0.9"
@@ -87,7 +87,7 @@ repositories {
// semantic versioning for version code
def versionMajor = 3
def versionMinor = 19
def versionMinor = 20
def versionPatch = 0
def versionBuild = 0 // 0-50=Alpha / 51-98=RC / 90-99=stable
@@ -173,8 +173,8 @@ android {
versionDev {
applicationId "com.nextcloud.android.beta"
dimension "default"
versionCode 20220119
versionName "20220119"
versionCode 20220122
versionName "20220122"
}
qa {
Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 70 KiB

@@ -33,5 +33,7 @@ public class FileDataStorageManagerContentProviderClientIT extends FileDataStora
.getContentResolver()
.acquireContentProviderClient(ProviderMeta.ProviderTableMeta.CONTENT_URI)
);
super.before();
}
}
@@ -32,6 +32,7 @@ import com.owncloud.android.lib.resources.files.SearchRemoteOperation;
import com.owncloud.android.lib.resources.files.UploadFileRemoteOperation;
import com.owncloud.android.lib.resources.files.model.RemoteFile;
import com.owncloud.android.lib.resources.status.CapabilityBooleanType;
import com.owncloud.android.lib.resources.status.GetCapabilitiesRemoteOperation;
import com.owncloud.android.lib.resources.status.OCCapability;
import com.owncloud.android.operations.RefreshFolderOperation;
import com.owncloud.android.utils.FileStorageUtils;
@@ -57,6 +58,7 @@ import static org.junit.Assert.assertTrue;
abstract public class FileDataStorageManagerIT extends AbstractOnServerIT {
protected FileDataStorageManager sut;
private OCCapability capability;
@Before
public void before() {
@@ -65,6 +67,10 @@ abstract public class FileDataStorageManagerIT extends AbstractOnServerIT {
sut.deleteVirtuals(VirtualFolderType.GALLERY);
assertEquals(0, sut.getAllFiles().size());
capability = (OCCapability) new GetCapabilitiesRemoteOperation(null)
.execute(client)
.getSingleData();
}
@After
@@ -168,7 +174,8 @@ abstract public class FileDataStorageManagerIT extends AbstractOnServerIT {
// search
SearchRemoteOperation searchRemoteOperation = new SearchRemoteOperation("image/%",
PHOTO_SEARCH,
false);
false,
capability);
RemoteOperationResult<List<RemoteFile>> searchResult = searchRemoteOperation.execute(client);
TestCase.assertTrue(searchResult.isSuccess());
@@ -253,7 +260,8 @@ abstract public class FileDataStorageManagerIT extends AbstractOnServerIT {
// search
SearchRemoteOperation searchRemoteOperation = new SearchRemoteOperation("",
GALLERY_SEARCH,
false);
false,
capability);
RemoteOperationResult<List<RemoteFile>> searchResult = searchRemoteOperation.execute(client);
TestCase.assertTrue(searchResult.isSuccess());
@@ -62,13 +62,6 @@ public class CommunityActivity extends DrawerActivity {
protected void setupContent() {
binding.communityReleaseCandidateText.setMovementMethod(LinkMovementMethod.getInstance());
TextView contributeIrcView = binding.communityContributeIrcText;
contributeIrcView.setMovementMethod(LinkMovementMethod.getInstance());
contributeIrcView.setText(Html.fromHtml(getString(R.string.community_contribute_irc_text) + " " +
getString(R.string.community_contribute_irc_text_link,
ThemeColorUtils.primaryColorToHexString(this),
getString(R.string.irc_weblink))));
TextView contributeForumView = binding.communityContributeForumText;
contributeForumView.setMovementMethod(LinkMovementMethod.getInstance());
contributeForumView.setText(Html.fromHtml(getString(R.string.community_contribute_forum_text) + " " +
@@ -56,11 +56,10 @@ public class FetchRemoteFileTask extends AsyncTask<Void, Void, String> {
@Override
protected String doInBackground(Void... voids) {
SearchRemoteOperation searchRemoteOperation = new SearchRemoteOperation(fileId,
FILE_ID_SEARCH,
false);
false,
fileDisplayActivity.getCapabilities());
RemoteOperationResult remoteOperationResult = searchRemoteOperation.execute(user.toPlatformAccount(),
fileDisplayActivity);
@@ -30,6 +30,7 @@ import android.view.ViewGroup;
import com.owncloud.android.datamodel.VirtualFolderType;
import com.owncloud.android.lib.common.utils.Log_OC;
import com.owncloud.android.lib.resources.files.SearchRemoteOperation;
import com.owncloud.android.lib.resources.status.OCCapability;
import com.owncloud.android.ui.asynctasks.GallerySearchTask;
import com.owncloud.android.ui.events.ChangeMenuEvent;
import com.owncloud.android.ui.events.SearchEvent;
@@ -67,9 +68,13 @@ public class GalleryFragment extends OCFileListFragment {
searchEvent = new SearchEvent("", SearchRemoteOperation.SearchType.GALLERY_SEARCH);
OCCapability ocCapability = mContainerActivity.getStorageManager()
.getCapability(accountManager.getUser().getAccountName());
searchRemoteOperation = new SearchRemoteOperation(searchEvent.getSearchQuery(),
searchEvent.getSearchType(),
false);
false,
ocCapability);
}
@Override
@@ -1515,8 +1515,13 @@ public class OCFileListFragment extends ExtendedListFragment implements
searchOnlyFolders = true;
}
remoteOperation = new SearchRemoteOperation(event.getSearchQuery(), event.getSearchType(),
searchOnlyFolders);
OCCapability ocCapability = mContainerActivity.getStorageManager()
.getCapability(currentUser.getAccountName());
remoteOperation = new SearchRemoteOperation(event.getSearchQuery(),
event.getSearchType(),
searchOnlyFolders,
ocCapability);
} else {
remoteOperation = new GetSharesRemoteOperation();
}
@@ -30,6 +30,7 @@ import android.content.IntentFilter;
import com.nextcloud.client.account.UserAccountManager;
import com.nextcloud.client.device.PowerManagementService;
import com.nextcloud.client.network.ConnectivityService;
import com.nextcloud.common.DNSCache;
import com.owncloud.android.MainApp;
import com.owncloud.android.datamodel.UploadsStorageManager;
@@ -55,6 +56,7 @@ public final class ReceiversHelper {
BroadcastReceiver broadcastReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
DNSCache.clear();
if (connectivityService.getConnectivity().isConnected()) {
FilesSyncHelper.restartJobsIfNeeded(uploadsStorageManager,
accountManager,
-8
View File
@@ -86,14 +86,6 @@
android:text="@string/community_contribute_headline"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/community_contribute_irc_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/community_contribute_irc_text"
android:paddingBottom="@dimen/standard_quarter_padding"
android:textAppearance="?android:attr/textAppearanceMedium"/>
<TextView
android:id="@+id/community_contribute_forum_text"
android:layout_width="wrap_content"
+2 -1
View File
@@ -549,6 +549,7 @@
<string name="prefs_lock_using_device_credentials">Gailuaren egiaztagiriak</string>
<string name="prefs_lock_using_passcode">Pasahitza</string>
<string name="prefs_manage_accounts">Kudeatu kontuak</string>
<string name="prefs_recommend">Gomendatu lagun bati</string>
<string name="prefs_show_hidden_files">Erakutsi ezkutuko fitxategiak</string>
<string name="prefs_sourcecode">Eskuratu iturburu-kodea</string>
<string name="prefs_storage_path">Datu-biltegiratze karpeta</string>
@@ -823,7 +824,7 @@
<string name="uploads_view_group_failed_uploads">Huts egin du/berrabiarazteko zain</string>
<string name="uploads_view_group_finished_uploads">Igoa</string>
<string name="uploads_view_later_waiting_to_upload">Igotzeko itxoiten</string>
<string name="uploads_view_title">Igoerak</string>
<string name="uploads_view_title">Kargak</string>
<string name="uploads_view_upload_status_cancelled">Ezeztatuak</string>
<string name="uploads_view_upload_status_conflict">Gatazka</string>
<string name="uploads_view_upload_status_failed_connection_error">Konexio errorea</string>
+1
View File
@@ -461,6 +461,7 @@
<string name="no_email_app_available">Nenhum aplicativo disponível para lidar com endereço de e-mail </string>
<string name="no_mutliple_accounts_allowed">Somente uma conta é permitida</string>
<string name="no_pdf_app_available">Nenhum aplicativo disponível para lidar com PDF</string>
<string name="no_send_app">Nenhum aplicativo disponível para enviar os arquivos selecionados</string>
<string name="no_share_permission_selected">Selecione ao menos uma permissão para compartilhar.</string>
<string name="note_confirm">Enviar</string>
<string name="note_could_not_sent">Não foi possível enviar a anotação</string>
-1
View File
@@ -95,7 +95,6 @@
<string name="beta_apk_link" translatable="false">https://download.nextcloud.com/android/dev/latest.apk</string>
<string name="play_store_register_beta" translatable="false">https://play.google.com/apps/testing/com.nextcloud.client</string>
<string name="fdroid_link" translatable="false">https://f-droid.org/repository/browse/?fdid=com.nextcloud.client</string>
<string name="irc_weblink" translatable="false">http://webchat.freenode.net?channels=nextcloud-mobile</string>
<string name="help_link" translatable="false">https://help.nextcloud.com/c/clients/android</string>
<string name="translation_link" translatable="false">https://www.transifex.com/nextcloud/nextcloud/android/</string>
<string name="contributing_link" translatable="false">https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md</string>
-2
View File
@@ -514,8 +514,6 @@
<string name="community_release_candidate_headline">Release candidate</string>
<string name="community_release_candidate_text">The release candidate (RC) is a snapshot of the upcoming release and is expected to be stable. Testing your individual setup could help ensure this. Sign up for testing on the Play store or manually look in the \"Version\" section of F-Droid.</string>
<string name="community_contribute_headline">Actively Contribute</string>
<string name="community_contribute_irc_text">Join the chat on IRC:</string>
<string name="community_contribute_irc_text_link" translatable="false"> &lt;font color=\"%1$s\">&lt;a href=\"%2$s\">#nextcloud-mobile&lt;/a>&lt;/font></string>
<string name="community_contribute_forum_text">Help others on the</string>
<string name="community_contribute_forum_forum">forum</string>
<string name="community_contribute_forum_text_link" translatable="false">&lt;font color=\"%1$s\">&lt;a href=\"%2$s\">%3$s&lt;/a>&lt;/font></string>
@@ -0,0 +1,3 @@
Remove IRC info from app and docs
Update translations
Update Nextcloud Android library
@@ -0,0 +1,5 @@
Restore library version
Use capability in SearchRemoteOperation
Clear DNS cache on network changes
Update translations
Update Nextcloud Android library
@@ -0,0 +1 @@
Bump version to 3.20.0 on master