Skip to content

Commit

Permalink
Merge branch 'omega-hotfix' into omega-master
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinguidee committed Dec 30, 2019
2 parents 114c97c + ecf2933 commit b9b4ca7
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 60 deletions.
1 change: 0 additions & 1 deletion ion/src/simulator/android/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ion_src += $(addprefix ion/src/simulator/android/src/cpp/, \
images.cpp \
telemetry.cpp \
)

ion_src += $(addprefix ion/src/simulator/shared/, \
Expand Down
2 changes: 1 addition & 1 deletion ion/src/simulator/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.numworks.calculator"
applicationId "io.github.omega.simulator"
minSdkVersion 16
targetSdkVersion 28
def (major, minor, patch) = System.getenv('EPSILON_VERSION').toLowerCase().tokenize('.').collect{it.toInteger()}
Expand Down
4 changes: 2 additions & 2 deletions ion/src/simulator/android/src/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.numworks.calculator"
package="io.github.omega.simulator"
android:installLocation="auto">

<uses-feature android:glEsVersion="0x00020000" />
Expand All @@ -18,7 +18,7 @@
android:theme="@style/AppTheme"
android:hardwareAccelerated="true" >

<activity android:name="EpsilonActivity"
<activity android:name="OmegaActivity"
android:label="@string/app_name"
android:alwaysRetainTaskState="true"
android:launchMode="singleInstance"
Expand Down
2 changes: 1 addition & 1 deletion ion/src/simulator/android/src/cpp/images.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SDL_Texture * IonSimulatorLoadImage(SDL_Renderer * renderer, const char * identi
JNIEnv * env = static_cast<JNIEnv *>(SDL_AndroidGetJNIEnv());
jobject activity = static_cast<jobject>(SDL_AndroidGetActivity());

jclass j_class = env->FindClass("com/numworks/calculator/EpsilonActivity");
jclass j_class = env->FindClass("io/github/omega/simulator/OmegaActivity");
jmethodID j_methodId = env->GetMethodID(
j_class,
"retrieveBitmapAsset",
Expand Down
28 changes: 0 additions & 28 deletions ion/src/simulator/android/src/cpp/telemetry.cpp

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.numworks.calculator;
package io.github.omega.simulator;

import java.util.Locale;

Expand All @@ -14,10 +14,7 @@

import org.libsdl.app.SDLActivity;

public class EpsilonActivity extends SDLActivity {
private static GoogleAnalytics sAnalytics;
private static Tracker sTracker;

public class OmegaActivity extends SDLActivity {
protected String[] getLibraries() {
return new String[] {
"epsilon"
Expand All @@ -42,14 +39,4 @@ public Bitmap retrieveBitmapAsset(String identifier) {
}
return bitmap;
}

public void telemetryInit() {
sAnalytics = GoogleAnalytics.getInstance(this);
sTracker = sAnalytics.newTracker("UA-93775823-3");
}

public void telemetryEvent(String eventName) {
sTracker.setScreenName(eventName);
sTracker.send(new HitBuilders.ScreenViewBuilder().build());
}
}
2 changes: 1 addition & 1 deletion ion/src/simulator/android/src/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="yellow">#FFB734</color>
<color name="yellow">#C03535</color>
<color name="lightGray">#F7F7F7</color>
</resources>
37 changes: 35 additions & 2 deletions ion/src/simulator/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ion/src/simulator/ios/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>Epsilon</string>
<key>CFBundleIdentifier</key>
<string>com.numworks.calculator</string>
<string>io.github.omega.simulator</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
2 changes: 1 addition & 1 deletion ion/src/simulator/macos/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string>app.icns</string>
<key>CFBundleIdentifier</key>
<string>com.numworks.calculator</string>
<string>io.github.omega.simulator</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
2 changes: 1 addition & 1 deletion ion/src/simulator/shared/events_keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Event getPlatformEvent() {
return eventFromSDLTextInputEvent(event.text);
}
if (event.type == SDL_APP_WILLENTERFOREGROUND) {
IonSimulatorTelemetryEvent("Calculator");
// IonSimulatorTelemetryEvent("Calculator");
return None;
}
}
Expand Down
6 changes: 3 additions & 3 deletions ion/src/simulator/shared/main_sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ int main(int argc, char * argv[]) {
arguments.push_back(language);
}

IonSimulatorTelemetryInit();
// IonSimulatorTelemetryInit();
Ion::Simulator::Main::init();
IonSimulatorTelemetryEvent("Calculator");
// IonSimulatorTelemetryEvent("Calculator");
ion_main(arguments.size(), &arguments[0]);
Ion::Simulator::Main::quit();
IonSimulatorTelemetryDeinit();
// IonSimulatorTelemetryDeinit();

return 0;
}
Expand Down
6 changes: 3 additions & 3 deletions ion/src/simulator/shared/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ extern "C" {
SDL_Texture * IonSimulatorLoadImage(SDL_Renderer * renderer, const char * identifier);
char * IonSimulatorGetLanguageCode();

void IonSimulatorTelemetryInit();
void IonSimulatorTelemetryEvent(const char * eventName);
void IonSimulatorTelemetryDeinit();
// void IonSimulatorTelemetryInit();
// void IonSimulatorTelemetryEvent(const char * eventName);
// void IonSimulatorTelemetryDeinit();

void IonSimulatorKeyboardKeyDown(int keyNumber);
void IonSimulatorKeyboardKeyUp(int keyNumber);
Expand Down

0 comments on commit b9b4ca7

Please sign in to comment.