Skip to content

Commit

Permalink
add changelog to app, update build scripts and apk
Browse files Browse the repository at this point in the history
  • Loading branch information
uberspot committed Jan 12, 2016
1 parent 1c49211 commit 92f16bd
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 7 deletions.
Binary file modified 2048-android-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.uberspot.a2048"
android:versionCode="20"
android:versionName="2.0" >
android:versionCode="21"
android:versionName="2.05" >

<uses-sdk
android:minSdkVersion="8"
Expand Down
13 changes: 9 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,23 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
}
}
apply plugin: 'android'
apply plugin: 'com.android.application'

repositories {
mavenCentral()
}

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'de.cketti.library.changelog:ckchangelog:1.2.2'
}

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
compileSdkVersion 23
buildToolsVersion "23.0.2"

sourceSets {
main {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
20 changes: 20 additions & 0 deletions res/xml/changelog_master.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<changelog>
<release version="2.05" versioncode="21" >
<change>Added changelog in app</change>
</release>
<release version="2.0" versioncode="20" >
<change>Added undo button (thx to fraggerfox on github)</change>
</release>
<release version="1.96" versioncode="19" >
<change>Rebuilt apk with new build tools.</change>
</release>
<release version="1.95" versioncode="18">
<change>Added German, Spanish, Polish, Serbian translations thx to contributors in githube</change>
<change>Added experimental night mode button</change>
<change>Minor optimizations to responsiveness</change>
</release>
<release version="1.91" versioncode="18" >
<change>Added greek and french app translation, minor build improvements.</change>
</release>
</changelog>
7 changes: 7 additions & 0 deletions src/com/uberspot/a2048/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
import android.webkit.WebView;
import android.widget.Toast;

import de.cketti.library.changelog.ChangeLog;

public class MainActivity extends Activity {

private static final String MAIN_ACTIVITY_TAG = "2048_MainActivity";
Expand Down Expand Up @@ -74,6 +76,11 @@ protected void onCreate(Bundle savedInstanceState) {

setContentView(R.layout.activity_main);

ChangeLog cl = new ChangeLog(this);
if (cl.isFirstRun()) {
cl.getLogDialog().show();
}

// Load webview with game
mWebView = (WebView) findViewById(R.id.mainWebView);
WebSettings settings = mWebView.getSettings();
Expand Down

0 comments on commit 92f16bd

Please sign in to comment.