Skip to content

Commit

Permalink
#298 wants reopening, x86 devices are crashing. Let's just build with…
Browse files Browse the repository at this point in the history
… ndk r10c for now.

Reverts 07475df.
  • Loading branch information
chrisboyle committed Jul 30, 2015
1 parent 364c2f1 commit b93d32d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
3 changes: 1 addition & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ android {

defaultConfig {
applicationId "name.boyle.chris.sgtpuzzles"
versionCode 107
versionCode 108
versionName "${timestamp()}-${idForSimon()}"

if (file(ndkDir.absolutePath + '/platforms/android-15').exists()) { // the last without PIE
Expand Down Expand Up @@ -124,7 +124,6 @@ android.applicationVariants.all{ variant ->
abiParam,
'NDK_LOG=1',
'NDK_DEBUG=' + (variant.ndkCompile.debuggable ? '1' : '0')]
// You must remove the fake stpcpy implementation in android-gen.c when increasing APP_PLATFORM to >= 21
exec {
commandLine common + [
'APP_PLATFORM=android-9', // 9 is earliest for x86 + mips
Expand Down
9 changes: 0 additions & 9 deletions app/src/main/jni/android-gen.c
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
#ifdef EXECUTABLE
#include <stdio.h>
#include <string.h>
#include "puzzles.h"

#define USAGE "Usage: puzzles-gen gamename [params | --seed seed | --desc desc]\n"

/* https://github.com/chrisboyle/sgtpuzzles/issues/298 */
char *
stpcpy(char *dst, char const *src)
{
size_t src_len = strlen(src);
return memcpy(dst, src, src_len) + src_len;
}

struct frontend {
midend *me;
};
Expand Down

0 comments on commit b93d32d

Please sign in to comment.