Skip to content
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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## 2.7.0 beta v1 (March 2018)
- Fingerprint lock
- Pattern lock (contribution)
- Upload picture directly from camera (contribution)
- GIF support
- New features wizard
- UI improvements, including:
+ Display file size during upload (contribution)
- Bug fixes, including:
+ Hide always visible notification in Android 8

## 2.6.0 (February 2018)
- Camera uploads, replacing instant uploads (Android 5 or higher required)
- Android 8 support
Expand Down
Binary file removed beta/res/mipmap-hdpi/icon.png
Binary file not shown.
Binary file removed beta/res/mipmap-mdpi/icon.png
Binary file not shown.
Binary file removed beta/res/mipmap-xhdpi/icon.png
Binary file not shown.
Binary file removed beta/res/mipmap-xxhdpi/icon.png
Binary file not shown.
Binary file removed beta/res/mipmap-xxxhdpi/icon.png
Binary file not shown.
77 changes: 0 additions & 77 deletions beta/res/values/setup.xml

This file was deleted.

26 changes: 2 additions & 24 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ android {

defaultConfig {

manifestPlaceholders.versionCode = "20600000"
manifestPlaceholders.versionName = "2.6.0"
manifestPlaceholders.versionCode = "20600100"
manifestPlaceholders.versionName = "2.7.0-beta.1"

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

Expand Down Expand Up @@ -135,10 +135,6 @@ android {
assets.srcDirs = ['assets']
}

beta {
res.srcDirs = ['beta/res']
}

// move whole local unit tests structure as a whole from src/test/* to test/*
test.setRoot('test')

Expand Down Expand Up @@ -181,14 +177,6 @@ android {
keyPassword System.env.OC_RELEASE_KEY_PASSWORD
}
}
beta {
if (System.env.OC_BETA_KEYSTORE) {
storeFile file(System.env.OC_BETA_KEYSTORE) // use an absolute path
storePassword System.env.OC_BETA_KEYSTORE_PASSWORD
keyAlias System.env.OC_BETA_KEY_ALIAS
keyPassword System.env.OC_BETA_KEY_PASSWORD
}
}
}

buildTypes {
Expand All @@ -202,16 +190,6 @@ android {
debug {
applicationIdSuffix ".debug"
}

beta {
manifestPlaceholders.versionCode = "20500001"
manifestPlaceholders.versionName = "2.5.1-beta.1"
applicationIdSuffix ".beta"

if (System.env.OC_BETA_KEYSTORE) {
signingConfig signingConfigs.beta
}
}
}

applicationVariants.all { variant ->
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/whats_new_gif_support.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/whats_new_pattern_lock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/whats_new_gif_support.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/whats_new_pattern_lock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 8 additions & 4 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -552,16 +552,20 @@
<!-- Welcome to oC intro features -->
<string name="welcome_feature_1_title">Manage all your synced files</string>
<string name="welcome_feature_1_text">You can copy, move, delete</string>

<string name="welcome_feature_2_title">Share files and folders</string>
<string name="welcome_feature_2_text">You can share privately or publicly</string>

<string name="welcome_feature_3_title">Multi account</string>
<string name="welcome_feature_3_text">Connect to all your ownCloud servers</string>

<string name="welcome_feature_4_title">Camera uploads</string>
<string name="welcome_feature_4_text">Your pictures/videos automatically uploaded</string>

<string name="welcome_feature_5_title">Video streaming</string>
<string name="welcome_feature_5_text">Play your videos without downloading them</string>
<string name="welcome_feature_6_title">Pattern lock</string>
<string name="welcome_feature_6_text">Use a pattern to lock your ownCloud app</string>
<string name="welcome_feature_7_title">Fingerprint lock</string>
<string name="welcome_feature_7_text">Use your fingerprint to lock your ownCloud app</string>
<string name="welcome_feature_8_title">GIF support</string>
<string name="welcome_feature_8_text">Play your animated GIF images</string>
<string name="welcome_feature_9_title">Upload picture from camera</string>
<string name="welcome_feature_9_text">Take a picture and upload it directly to your server</string>
</resources>
22 changes: 19 additions & 3 deletions src/com/owncloud/android/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
*
* @author masensio
* @author David A. Velasco
* Copyright (C) 2016 ownCloud GmbH.
* @author David González Verdugo
* Copyright (C) 2018 ownCloud GmbH.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
Expand Down Expand Up @@ -65,7 +66,7 @@ public class MainApp extends Application {
// TODO better place
// private static boolean mOnlyOnDevice = false;

public static String BUILD_TYPE_BETA = "beta";
public static String BETA_VERSION = "beta";

public void onCreate(){
super.onCreate();
Expand Down Expand Up @@ -105,7 +106,7 @@ public void onCreate(){
// initialise thumbnails cache on background thread
new ThumbnailsCacheManager.InitDiskCacheTask().execute();

if (BuildConfig.DEBUG || BuildConfig.BUILD_TYPE.equals(BUILD_TYPE_BETA)) {
if (BuildConfig.DEBUG || isBeta()) {

String dataFolder = getDataFolder();

Expand Down Expand Up @@ -246,4 +247,19 @@ public static String getUserAgent() {
// Mozilla/5.0 (Android) ownCloud-android/1.7.0
return String.format(appString, version);
}

public static boolean isBeta() {
boolean isBeta = false;
try {
String packageName = getAppContext().getPackageName();
PackageInfo packageInfo = getAppContext().getPackageManager().getPackageInfo(packageName, 0);
String versionName = packageInfo.versionName;
if (versionName.contains(BETA_VERSION)){
isBeta = true;
};
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
return isBeta;
}
}
27 changes: 18 additions & 9 deletions src/com/owncloud/android/features/FeatureList.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/**
* ownCloud Android client application
*
Expand All @@ -24,7 +25,6 @@
import android.os.Parcel;
import android.os.Parcelable;

import com.owncloud.android.BuildConfig;
import com.owncloud.android.MainApp;
import com.owncloud.android.R;
import com.owncloud.android.lib.common.utils.Log_OC;
Expand All @@ -44,16 +44,25 @@ public class FeatureList {
static final private FeatureItem featuresList[] = {
// Basic features showed on first install
new FeatureItem(R.drawable.whats_new_files, R.string.welcome_feature_1_title,
R.string.welcome_feature_1_text, "2.6.0", "0", SHOW_ON_FIRST_RUN),
R.string.welcome_feature_1_text, "2.7.0", "0", SHOW_ON_FIRST_RUN),
new FeatureItem(R.drawable.whats_new_share, R.string.welcome_feature_2_title,
R.string.welcome_feature_2_text, "2.6.0", "0", SHOW_ON_FIRST_RUN),
R.string.welcome_feature_2_text, "2.7.0", "0", SHOW_ON_FIRST_RUN),
new FeatureItem(R.drawable.whats_new_accounts, R.string.welcome_feature_3_title,
R.string.welcome_feature_3_text, "2.6.0", "0" ,SHOW_ON_FIRST_RUN),
R.string.welcome_feature_3_text, "2.7.0", "0" ,SHOW_ON_FIRST_RUN),
new FeatureItem(R.drawable.whats_new_camera_uploads, R.string.welcome_feature_4_title,
R.string.welcome_feature_4_text, "2.6.0", "0", SHOW_ON_FIRST_RUN),
R.string.welcome_feature_4_text, "2.7.0", "0", SHOW_ON_FIRST_RUN),
new FeatureItem(R.drawable.whats_new_video_streaming, R.string.welcome_feature_5_title,
R.string.welcome_feature_5_text, "2.6.0", "0", SHOW_ON_FIRST_RUN),
// Features introduced in certain point in time
R.string.welcome_feature_5_text, "2.7.0", "0", SHOW_ON_FIRST_RUN),

// Features introduced in 2.7.0
new FeatureItem(R.drawable.whats_new_pattern_lock, R.string.welcome_feature_6_title,
R.string.welcome_feature_6_text, "0", "2.6.1", SHOW_ON_UPGRADE),
new FeatureItem(R.drawable.whats_new_fingerprint_lock, R.string.welcome_feature_7_title,
R.string.welcome_feature_7_text, "0", "2.6.1", SHOW_ON_UPGRADE),
new FeatureItem(R.drawable.whats_new_gif_support, R.string.welcome_feature_8_title,
R.string.welcome_feature_8_text, "0", "2.6.1", SHOW_ON_UPGRADE),
new FeatureItem(R.drawable.whats_new_upload_camera_picture, R.string.welcome_feature_9_title,
R.string.welcome_feature_9_text, "0", "2.6.1", SHOW_ON_UPGRADE),
};


Expand Down Expand Up @@ -96,7 +105,7 @@ public FeatureItem(int image, int titleText, int contentText, String version, St
this.titleText = titleText;
this.contentText = contentText;
this.versionNumber = versionCodeFromString(version);
this.betaVersion = Integer.parseInt(betaVersion);
this.betaVersion = versionCodeFromString(betaVersion);
this.showOnInitialRun = showOnInitialRun;
}

Expand Down Expand Up @@ -163,4 +172,4 @@ static int versionCodeFromString(String version) {

return result;
}
}
}
2 changes: 1 addition & 1 deletion src/com/owncloud/android/ui/activity/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public boolean onPreferenceClick(Preference preference) {
}

boolean loggerEnabled = getResources().getBoolean(R.bool.logger_enabled) ||
BuildConfig.DEBUG || BuildConfig.BUILD_TYPE.equals(MainApp.BUILD_TYPE_BETA);
BuildConfig.DEBUG || MainApp.isBeta();
Preference pLogger = findPreference("logger");
if (pLogger != null) {
if (loggerEnabled) {
Expand Down
4 changes: 2 additions & 2 deletions src/com/owncloud/android/ui/activity/WhatsNewActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected void onCreate(Bundle savedInstanceState) {

mProgress = (ProgressIndicator) findViewById(R.id.progressIndicator);
mPager = (ViewPager)findViewById(R.id.contentPanel);
boolean isBeta = BuildConfig.BUILD_TYPE.equals(MainApp.BUILD_TYPE_BETA);
boolean isBeta = MainApp.isBeta();

FeaturesViewAdapter adapter = new FeaturesViewAdapter(getSupportFragmentManager(),
FeatureList.getFiltered(getLastSeenVersionCode(), isFirstRun(), isBeta));
Expand Down Expand Up @@ -156,7 +156,7 @@ static public void runIfNeeded(Context context) {
}

static private boolean shouldShow(Context context) {
boolean isBeta = BuildConfig.BUILD_TYPE.equals(MainApp.BUILD_TYPE_BETA);
boolean isBeta = MainApp.isBeta();
boolean showWizard = context.getResources().getBoolean(R.bool.wizard_enabled);
return showWizard &&
((isFirstRun() && context instanceof AccountAuthenticatorActivity) ||
Expand Down