Skip to content

Commit 5f72fe3

Browse files
authored
Merge pull request #2040 from owncloud/release_2.5.0
Release 2.5.0
2 parents 3f566f4 + 23e1cad commit 5f72fe3

File tree

10 files changed

+61
-12
lines changed

10 files changed

+61
-12
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 2.5.0 (October 2017)
2+
- OAuth2 support
3+
- Show file listing option (anonymous upload) when sharing a folder (OC X required)
4+
- First approach to fix instant uploads
5+
- UI improvements, including:
6+
+ Hide share icon when resharing is forbidden
7+
+ Improve feedback when uploading infected files
8+
- Bug fixes
9+
110
## 2.4.0 (May 2017)
211
- Video streaming
312
- Multiple public links per file (OC X required)

androidTest/java/com/owncloud/android/ui/activity/PublicShareActivityTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,7 @@ public void test_12_remove_multiple_links()
687687
* TEST CASE: Check permalink
688688
* PASSED IF: Link to the item in clipboard
689689
*/
690+
/* Disabled until https://github.com/owncloud/android/issues/2032 is done
690691
@Test
691692
public void test_13_permalink()
692693
throws InterruptedException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException {
@@ -718,7 +719,7 @@ public void test_13_permalink()
718719
Log_OC.i(LOG_TAG, "Test Permalink Passed");
719720
720721
}
721-
722+
*/
722723

723724
/**
724725
* TEST CASE: Capability "Allow public links" disabled

build.gradle

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ android {
8989

9090
defaultConfig {
9191

92-
manifestPlaceholders.versionCode = "20400000"
93-
manifestPlaceholders.versionName = "2.4.0"
92+
manifestPlaceholders.versionCode = "20500000"
93+
manifestPlaceholders.versionName = "2.5.0"
9494

9595
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
9696

@@ -229,7 +229,14 @@ def setOutputFileName(variant, appName, callerProject) {
229229
newName += callerProject.archivesBaseName
230230
}
231231

232-
newName += "_$variant.buildType.manifestPlaceholders.versionName"
232+
def versionName = "$variant.mergedFlavor.versionName"
233+
if (variant.mergedFlavor.manifestPlaceholders.versionName != null) {
234+
versionName = "$variant.mergedFlavor.manifestPlaceholders.versionName"
235+
}
236+
if (variant.buildType.manifestPlaceholders.versionName != null) {
237+
versionName = "$variant.buildType.manifestPlaceholders.versionName"
238+
}
239+
newName += "_$versionName"
233240

234241
def buildNumber = System.env.OC_BUILD_NUMBER
235242
if (buildNumber) {

oc_jb_workaround/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="com.owncloud.android.workaround.accounts"
4-
android:versionCode="0100035"
5-
android:versionName="1.0.35" >
4+
>
65

76
<uses-sdk
87
android:minSdkVersion="16"

oc_jb_workaround/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ android {
88
compileSdkVersion 24
99
buildToolsVersion '25.0.2'
1010

11+
defaultConfig {
12+
versionCode = 100036
13+
versionName = "1.0.36"
14+
}
15+
1116
sourceSets {
1217
main {
1318
manifest.srcFile 'AndroidManifest.xml'

res/layout/share_file_layout.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
android:layout_height="36dp"
7878
android:layout_alignParentRight="true"
7979
android:padding="@dimen/standard_half_padding"
80-
android:src="@drawable/copy_link" />
80+
android:src="@drawable/copy_link"
81+
android:visibility="invisible"/>
8182

8283
</RelativeLayout>
8384

res/xml/users_and_groups_searchable.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
android:hint="@string/search_users_and_groups_hint"
2525
android:searchSuggestAuthority="@string/search_suggest_authority"
2626
android:searchSuggestIntentAction="@string/search_suggest_intent_action"
27-
android:searchSuggestThreshold="1" >
27+
android:searchSuggestThreshold="4" >
2828
</searchable>

src/com/owncloud/android/authentication/AuthenticatorActivity.java

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,11 +1374,34 @@ public void onAuthenticatorTaskCallback(RemoteOperationResult result) {
13741374
String username = ((UserInfo) result.getData().get(0)).mId;
13751375

13761376
if (mAction == ACTION_CREATE) {
1377-
mUsernameInput.setText(username);
1377+
1378+
if (!BASIC_TOKEN_TYPE.equals(mAuthTokenType)) {
1379+
mUsernameInput.setText(username);
1380+
}
1381+
13781382
success = createAccount(result);
13791383

13801384
} else {
1381-
success = updateAccount(username);
1385+
1386+
try {
1387+
1388+
if (BASIC_TOKEN_TYPE.equals(mAuthTokenType)) {
1389+
1390+
updateAccountAuthentication();
1391+
success = true;
1392+
1393+
} else {
1394+
1395+
success = updateAccount(username);
1396+
}
1397+
1398+
} catch (AccountNotFoundException e) {
1399+
Log_OC.e(TAG, "Account " + mAccount + " was removed!", e);
1400+
Toast.makeText(this, R.string.auth_account_does_not_exist,
1401+
Toast.LENGTH_SHORT).show();
1402+
// do not use a Snackbar, finishing right now!
1403+
finish();
1404+
}
13821405
}
13831406

13841407
if (success) {
@@ -1534,6 +1557,7 @@ private boolean updateAccount(String username) {
15341557
boolean success = false;
15351558

15361559
RemoteOperationResult result;
1560+
15371561
if (!mUsernameInput.getText().toString().trim().equals(username)) {
15381562
// fail - not a new account, but an existing one; disallow
15391563
result = new RemoteOperationResult(ResultCode.ACCOUNT_NOT_THE_SAME);

src/com/owncloud/android/providers/UsersAndGroupsSearchProvider.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class UsersAndGroupsSearchProvider extends ContentProvider {
7171

7272
private static final int SEARCH = 1;
7373

74-
private static final int RESULTS_PER_PAGE = 50;
74+
private static final int RESULTS_PER_PAGE = 30;
7575
private static final int REQUESTED_PAGE = 1;
7676

7777
public static final String CONTENT = "content";
@@ -163,7 +163,6 @@ public Cursor query(Uri uri, String[] projection, String selection, String[] sel
163163
private Cursor searchForUsersOrGroups(Uri uri) {
164164
MatrixCursor response = null;
165165

166-
167166
String userQuery = uri.getLastPathSegment().toLowerCase();
168167

169168

src/com/owncloud/android/ui/fragment/ShareFileFragment.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
204204
}
205205

206206
// Private link button
207+
/*
208+
Disabled until https://github.com/owncloud/android/issues/2032 is done
209+
207210
ImageView getPrivateLinkButton = (ImageView) view.findViewById(R.id.getPrivateLinkButton);
208211
209212
getPrivateLinkButton.setOnClickListener(new View.OnClickListener() {
@@ -221,6 +224,7 @@ public boolean onLongClick(View view) {
221224
return true;
222225
}
223226
});
227+
*/
224228

225229
OwnCloudVersion serverVersion = AccountUtils.getServerVersion(mAccount);
226230
final boolean shareWithUsersEnable = (serverVersion != null && serverVersion.isSearchUsersSupported());

0 commit comments

Comments
 (0)