mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Make it at least compile again
This commit is contained in:
parent
03186fa2b0
commit
51fa993fc1
3 changed files with 6 additions and 3 deletions
4
.github/workflows/build_android.yml
vendored
4
.github/workflows/build_android.yml
vendored
|
@ -79,8 +79,8 @@ jobs:
|
|||
$TOOLS_ROOT/aapt add -f obj/cc-unsigned.apk classes.dex lib/armeabi/libclassicube.so lib/armeabi-v7a/libclassicube.so lib/arm64-v8a/libclassicube.so lib/x86/libclassicube.so lib/x86_64/libclassicube.so
|
||||
# sign the apk with debug key (https://stackoverflow.com/questions/16711233/)
|
||||
cp obj/cc-unsigned.apk obj/cc-signed.apk
|
||||
#jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore debug.keystore -storepass android -keypass android obj/cc-signed.apk androiddebugkey
|
||||
$TOOLS_ROOT/apksigner sign --ks debug.keystore --ks-pass pass:android obj/cc-signed.apk
|
||||
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore debug.keystore -storepass android -keypass android obj/cc-signed.apk androiddebugkey
|
||||
#$TOOLS_ROOT/apksigner sign --ks debug.keystore --ks-pass pass:android obj/cc-signed.apk
|
||||
# jarsigner -verbose
|
||||
# create aligned .apk file
|
||||
$TOOLS_ROOT/zipalign -f 4 obj/cc-signed.apk $ROOT_DIR/src/cc.apk
|
||||
|
|
|
@ -432,7 +432,9 @@ public class MainActivity extends Activity
|
|||
try {
|
||||
CCMotionListener listener = new CCMotionListener(this);
|
||||
view.setOnGenericMotionListener(listener);
|
||||
} catch {
|
||||
} catch (Exception ex) {
|
||||
// Unsupported on android 12
|
||||
} catch (NoClassDefFoundError ex) {
|
||||
// Unsupported on android 12
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <android/native_window.h>
|
||||
#include <android/native_window_jni.h>
|
||||
#include <android/keycodes.h>
|
||||
#include <unistd.h>
|
||||
|
||||
static ANativeWindow* win_handle;
|
||||
static cc_bool winCreated;
|
||||
|
|
Loading…
Reference in a new issue