Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Update to v2.1.3
Browse files Browse the repository at this point in the history
Add flavors for normal and play, which have the applicationIds of .chan and .clover
  • Loading branch information
floens committed Jan 29, 2016
1 parent 39d3113 commit 15fc60f
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 10 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
gps/
Clover/app/keys.properties
Clover/app/version.properties
Clover/app/src/main/res/values/private_strings.xml
Clover/captures/


Expand Down
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
New in 2.1.3 (2016-01-28)
- New Google Play release


New in 2.1.2 (2016-01-17)
- Fix for a crash on Android 4
- Changed the top boards again
Expand Down
25 changes: 18 additions & 7 deletions Clover/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ android {
buildToolsVersion '23.0.2'

defaultConfig {
applicationId "org.floens.chan"
minSdkVersion 14
targetSdkVersion 23

versionName "v2.1.2"
versionCode 54
versionName "v2.1.3"
versionCode 55
}

compileOptions {
Expand Down Expand Up @@ -61,18 +62,28 @@ android {
proguardFiles 'proguard.cfg'
}

beta.initWith(buildTypes.release)
beta {
versionNameSuffix " Beta"
}

debug {
versionNameSuffix " Debug"
// minifyEnabled true
// proguardFiles 'proguard.cfg'
}
}

productFlavors {
normal {
applicationId = "org.floens.chan"
// resValue "string", "app_name", "Clover F-Droid"
resValue "string", "app_name", "Clover"
resValue "string", "app_flavor_name", ""
}

play {
applicationId = "org.floens.clover"
resValue "string", "app_name", "Clover"
resValue "string", "app_flavor_name", "Google Play"
}
}

sourceSets {
beta.java.srcDirs = ['src/release/java']
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ public void onClick(View v) {
}
final String finalVersion = version;

about.add(new LinkSettingView(this, getString(R.string.app_name), version, new View.OnClickListener() {
String userVersion = version + " " + getString(R.string.app_flavor_name);
about.add(new LinkSettingView(this, getString(R.string.app_name), userVersion, new View.OnClickListener() {
@Override
public void onClick(View v) {
if ((++clickCount) % 5 == 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class PreviousVersionHandler {
* 52 = v2.1.0 = 2
* 53 = v2.1.1 = 2
* 54 = v2.1.2 = 2
* 55 = v2.1.3 = 2
*/
private static final int CURRENT_VERSION = 2;

Expand Down
20 changes: 20 additions & 0 deletions Clover/app/src/main/res/values/private_strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="extra_abouts">
<item>Donate to Clover development</item>
<item>Give a PayPal or Bitcoin donation to the Clover developer</item>
<item>https://floens.github.io/Clover/#donate</item>

<item>Rate Clover</item>
<item>Rate Clover on Google Play</item>
<item>https://play.google.com/store/apps/details?id=org.floens.chan</item>

<item>Find Clover on GitHub</item>
<item>View the source code and give feedback</item>
<item>https://github.com/Floens/Clover</item>

<item>Send feedback</item>
<item>Email developer for feedback and questions</item>
<item>florens@airmail.cc__EMAIL__Clover feedback __VERSION__</item>
</string-array>
</resources>
3 changes: 2 additions & 1 deletion Clover/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>
<string name="app_name">Clover</string>
<!-- Defined in gradle flavor -->
<!--<string name="app_name">Clover</string>-->

<string name="previous_version_1">
<![CDATA[
Expand Down
Binary file added releases/Clover_v2.1.3.apk
Binary file not shown.

0 comments on commit 15fc60f

Please sign in to comment.