Compare commits
21
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
975ee12cc0 | ||
|
|
c2cd8e2486 | ||
|
|
70b93ed89c | ||
|
|
add4b08802 | ||
|
|
e0d2670a5e | ||
|
|
68b08163b7 | ||
|
|
d8cbde9105 | ||
|
|
f4e979a385 | ||
|
|
417dee2535 | ||
|
|
717ad59140 | ||
|
|
84507a39aa | ||
|
|
7d58967517 | ||
|
|
a9cec44b1f | ||
|
|
7b30483a52 | ||
|
|
2d603b1cfd | ||
|
|
ec33e5591d | ||
|
|
2956fafabc | ||
|
|
7299b598d4 | ||
|
|
648c104cd9 | ||
|
|
ea0bc503e0 | ||
|
|
0f62399615 |
No files matched your search
@@ -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: |
|
||||
|
||||
@@ -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: |
|
||||
|
||||
@@ -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.
@@ -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' }}
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
# [Nextcloud](https://nextcloud.com) Android app
|
||||
|
||||
[](https://webchat.freenode.net/?channels=nextcloud)
|
||||
[](https://webchat.freenode.net/?channels=nextcloud-mobile)
|
||||
|
||||
|
||||
# Index
|
||||
1. [Guidelines](#guidelines)
|
||||
1. [Issue reporting](#issue-reporting)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# [Nextcloud](https://nextcloud.com) Android app :iphone:
|
||||
|
||||
[](https://drone.nextcloud.com/nextcloud/android) [](https://www.codacy.com/app/Nextcloud/android?utm_source=github.com&utm_medium=referral&utm_content=nextcloud/android&utm_campaign=Badge_Grade) [](https://github.com/nextcloud/android/releases/latest) [](https://webchat.freenode.net/?channels=nextcloud-mobile)
|
||||
[](https://drone.nextcloud.com/nextcloud/android) [](https://www.codacy.com/app/Nextcloud/android?utm_source=github.com&utm_medium=referral&utm_content=nextcloud/android&utm_campaign=Badge_Grade) [](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 [](https://webchat.freenode.net/?channels=nextcloud) and [](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
@@ -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 |
+2
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"> <font color=\"%1$s\"><a href=\"%2$s\">#nextcloud-mobile</a></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"><font color=\"%1$s\"><a href=\"%2$s\">%3$s</a></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
|
||||
Reference in new issue
Block a user