Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.10.0 #2466

Merged
merged 6 commits into from
Mar 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/release_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ AC:
- [ ] [GIT] Create branch release_Y.Y.Y in owncloud/android-library from master (almost feature-frozen)
- [ ] [GIT] Create branch release_X.X.X in owncloud/android from master (almost feature-frozen)
- [ ] [DEV] Update version number and name in AndroidManifest.xml in android module
- [ ] [DEV] Update version number and name in AndroidManifest.xml in oc_jb_workaround module
- [ ] [DIS] Create changelog file (< 500 chars) and add to CHANGELOG.md in owncloud/android
- [ ] [QA] Design Test plan
- [ ] [QA] Regression Test plan
Expand All @@ -24,7 +23,6 @@ AC:
- [ ] [DIS] Update screenshots and store listing, if needed, in Blackberry World
- [ ] [GIT] merge master branch into stable, in owncloud/android-library
- [ ] [GIT] merge master branch into stable, in owncloud/android
- [ ] [DIS] push OC JB workaround app to Play Store
- [ ] [DOC] Update owncloud.org/download version numbers (notify rocketchat #marketing)


Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ target/

# Local configuration files (sdk path, etc)
local.properties
oc_workaround/local.properties
oc_framework/local.properties
oc_framework-test-project/local.properties
tests/local.properties
Expand All @@ -28,7 +27,6 @@ lint.xml

# Proguard README
proguard-project.txt
oc_workaround/proguard-project.txt
oc_framework/proguard-project.txt
oc_framework-test-project/proguard-project.txt
tests/proguard-project.txt
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
## 2.10.0 (March 2018)
- Android 9 (P) support (contribution)
- Allow light filtering apps (optional)
- Show additional info (user ID, email) when sharing with users with same display name
- Support more options to enforce password when sharing publicly
- Select all and inverse when uploading files (contribution)
- Sorting options in sharing view (contribution)
- Batched notifications for file deletions (contribution)
- Commit hash in settings (contribution)
- UI improvements, including:
+ Disable log in button when credentials are empty (contribution)
+ Warning to properly set camera folder in camera uploads
- Bug fixes, including:
+ Some camera upload issues in Android 9 (P) (contribution)
+ Fix eye icon not visible to show/hide password in public shares (contribution)
+ Fix welcome wizard rotation (contribution)

## 2.10.0 beta v1 (February 2018)
- Android 9 (P) support (contribution)
- Select all and inverse when uploading files (contribution)
Expand Down
Binary file removed doc/workaround_icon-hires.png
Binary file not shown.
Binary file removed doc/workaround_icon-playstore.png
Binary file not shown.
77 changes: 0 additions & 77 deletions doc/workaround_icon.svg

This file was deleted.

6 changes: 3 additions & 3 deletions owncloudApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ android {
compileSdkVersion 28

defaultConfig {
minSdkVersion 15
minSdkVersion 19
targetSdkVersion 28

versionCode = 20900400
versionName = "2.10.0-beta.1"
versionCode = 21000000
versionName = "2.10.0"

buildConfigField "String", gitRemote, "\"" + getGitOriginRemote() + "\""
buildConfigField "String", commitSHA1, "\"" + getLatestGitHash() + "\""
Expand Down
6 changes: 0 additions & 6 deletions owncloudApp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,6 @@
android:exported="true"
android:launchMode="singleTask"
android:theme="@style/Theme.ownCloud.Authenticator">
<intent-filter>
<action android:name="com.owncloud.android.workaround.accounts.CREATE" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.VIEW" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
import java.util.Map;
import java.util.Vector;

import static com.owncloud.android.operations.UploadFileOperation.CREATED_AS_CAMERA_UPLOAD_PICTURE;
import static com.owncloud.android.operations.UploadFileOperation.CREATED_AS_CAMERA_UPLOAD_VIDEO;

/**
* Service for uploading files. Invoke using context.startService(...).
*
Expand Down Expand Up @@ -282,28 +285,33 @@ public int onStartCommand(Intent intent, int flags, int startId) {
Log_OC.d(TAG, "Starting command with id " + startId);

int createdBy = intent.getIntExtra(KEY_CREATED_BY, UploadFileOperation.CREATED_BY_USER);

boolean isCameraUploadFile =
createdBy == CREATED_AS_CAMERA_UPLOAD_PICTURE || createdBy == CREATED_AS_CAMERA_UPLOAD_VIDEO;
boolean isAvailableOfflineFile = intent.getBooleanExtra(KEY_IS_AVAILABLE_OFFLINE_FILE, false);
boolean isRequestedFromWifiBackEvent = intent.getBooleanExtra(
KEY_REQUESTED_FROM_WIFI_BACK_EVENT, false
);

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
if ((isCameraUploadFile || isAvailableOfflineFile || isRequestedFromWifiBackEvent) &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
/*
* After calling startForegroundService method from {@link TransferRequester} for camera uploads or
* available offline, we have to call this within five seconds after the service is created to avoid
* an error
*/
Log_OC.d(TAG, "Starting FileUploader service in foreground");
mNotificationBuilder
.setOngoing(true)
.setSmallIcon(R.drawable.notification_icon)
.setTicker(getString(R.string.uploader_upload_in_progress_ticker))
.setContentTitle(getString(R.string.uploader_upload_in_progress_ticker))
.setProgress(100, 0, false)
.setContentText(String.format(getString(R.string.uploader_upload_in_progress_content), 0, ""))
.setChannelId(UPLOAD_NOTIFICATION_CHANNEL_ID)
.setWhen(System.currentTimeMillis());
.setSmallIcon(R.drawable.notification_icon);

if (isCameraUploadFile) {
mNotificationBuilder.setContentTitle(getString(R.string.uploader_upload_camera_upload_files));
} else if (isAvailableOfflineFile) {
mNotificationBuilder.setContentTitle(getString(R.string.uploader_upload_available_offline_files));
} else if (isRequestedFromWifiBackEvent) {
mNotificationBuilder.setContentTitle(getString(R.string.uploader_upload_requested_from_wifi_files));
}

startForeground(141, mNotificationBuilder.build());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@ private void openHelp() {

private void openFeedback() {
String feedbackMail = (String) getText(R.string.mail_feedback);
String feedback = getText(R.string.drawer_feedback) +
" - android v" + BuildConfig.VERSION_NAME;
String feedback = "Android v" + BuildConfig.VERSION_NAME + " - " + getText(R.string.drawer_feedback);
Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_SUBJECT, feedback);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,34 +646,20 @@ private void recoverSortMenuFormPreferences(Menu menu) {

private void startSynchronization() {
Log_OC.d(TAG, "Got to start sync");
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.KITKAT) {
Log_OC.d(TAG, "Canceling all syncs for " + MainApp.getAuthority());
ContentResolver.cancelSync(null, MainApp.getAuthority());
// cancel the current synchronizations of any ownCloud account
Bundle bundle = new Bundle();
bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);
bundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);
Log_OC.d(TAG, "Requesting sync for " + getAccount().name + " at " +
MainApp.getAuthority());
ContentResolver.requestSync(
getAccount(),
MainApp.getAuthority(), bundle);
} else {
Log_OC.d(TAG, "Requesting sync for " + getAccount().name + " at " +
MainApp.getAuthority() + " with new API");
SyncRequest.Builder builder = new SyncRequest.Builder();
builder.setSyncAdapter(getAccount(), MainApp.getAuthority());
builder.setExpedited(true);
builder.setManual(true);
builder.syncOnce();

// Fix bug in Android Lollipop when you click on refresh the whole account
Bundle extras = new Bundle();
builder.setExtras(extras);

SyncRequest request = builder.build();
ContentResolver.requestSync(request);
}
Log_OC.d(TAG, "Requesting sync for " + getAccount().name + " at " +
MainApp.getAuthority() + " with new API");
SyncRequest.Builder builder = new SyncRequest.Builder();
builder.setSyncAdapter(getAccount(), MainApp.getAuthority());
builder.setExpedited(true);
builder.setManual(true);
builder.syncOnce();

// Fix bug in Android Lollipop when you click on refresh the whole account
Bundle extras = new Bundle();
builder.setExtras(extras);

SyncRequest request = builder.build();
ContentResolver.requestSync(request);
}

/**
Expand Down Expand Up @@ -1496,7 +1482,7 @@ public void onRemoteOperationFinish(RemoteOperation operation, RemoteOperationRe
private void onRemoveFileOperationFinish(RemoveFileOperation operation,
RemoteOperationResult result) {

if (getListOfFilesFragment().isSingleItemChecked() || result.isException()) {
if (getListOfFilesFragment().isSingleItemChecked() || result.isException() || !result.isSuccess()) {
showSnackMessage(
ErrorMessageAdapter.getResultMessage(result, operation, getResources())
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,7 @@ public void onCreate(Bundle savedInstanceState) {
if (feedbackEnabled) {
pFeedback.setOnPreferenceClickListener(preference -> {
String feedbackMail = (String) getText(R.string.mail_feedback);
String feedback = getText(R.string.prefs_feedback) +
" - android v" + appVersion;
String feedback = "Android v" + BuildConfig.VERSION_NAME + " - " + getText(R.string.prefs_feedback);
Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.putExtra(Intent.EXTRA_SUBJECT, feedback);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ public void onClick(DialogInterface dialog, int which) {
String value = getEntryValues()[which].toString();
if (callChangeListener(value)) {
setValue(value);

// Workaround for pre kitkat since they don't support change listener within setValue
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
setSummary(getEntries()[which]);
}
}
dialog.dismiss();
}
Expand Down
30 changes: 0 additions & 30 deletions owncloudApp/src/main/res/raw-de/changelog.html

This file was deleted.

Loading