Skip to content

Commit

Permalink
Android class name paths updated to correct values (#2276)
Browse files Browse the repository at this point in the history
* Class name paths updated

* Update paths
  • Loading branch information
rh101 authored Dec 15, 2024
1 parent 42f5d4f commit 5507b5d
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion core/platform/android/Application-android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ int Application::run()

void Application::setAnimationInterval(float interval)
{
JniHelper::callStaticVoidMethod("org/axmol/lib/AxmolRenderer", "setAnimationInterval", interval);
JniHelper::callStaticVoidMethod("dev/axmol/lib/AxmolRenderer", "setAnimationInterval", interval);
}

//////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions core/platform/android/ControllerManualAdapter/lint.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="NewApi">
<ignore path="src/org/axmol/lib/GameControllerHelper.java" />
<ignore path="src/dev/axmol/lib/GameControllerHelper.java" />
</issue>
</lint>
</lint>
10 changes: 5 additions & 5 deletions core/platform/android/GLViewImpl-android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,17 @@ Rect GLViewImpl::getSafeAreaRect() const
float marginX = DEFAULT_MARGIN_ANDROID / _scaleX;
float marginY = DEFAULT_MARGIN_ANDROID / _scaleY;

bool isScreenRound = JniHelper::callStaticBooleanMethod("org/axmol/lib/AxmolEngine", "isScreenRound");
bool hasSoftKeys = JniHelper::callStaticBooleanMethod("org/axmol/lib/AxmolEngine", "hasSoftKeys");
bool isCutoutEnabled = JniHelper::callStaticBooleanMethod("org/axmol/lib/AxmolEngine", "isCutoutEnabled");
bool isScreenRound = JniHelper::callStaticBooleanMethod("dev/axmol/lib/AxmolEngine", "isScreenRound");
bool hasSoftKeys = JniHelper::callStaticBooleanMethod("dev/axmol/lib/AxmolEngine", "hasSoftKeys");
bool isCutoutEnabled = JniHelper::callStaticBooleanMethod("dev/axmol/lib/AxmolEngine", "isCutoutEnabled");

float insetTop = 0.0f;
float insetBottom = 0.0f;
float insetLeft = 0.0f;
float insetRight = 0.0f;

static axstd::pod_vector<int32_t> cornerRadii =
JniHelper::callStaticIntArrayMethod("org/axmol/lib/AxmolEngine", "getDeviceCornerRadii");
JniHelper::callStaticIntArrayMethod("dev/axmol/lib/AxmolEngine", "getDeviceCornerRadii");

if (isScreenRound)
{
Expand Down Expand Up @@ -241,7 +241,7 @@ Rect GLViewImpl::getSafeAreaRect() const
{
// screen with enabled cutout area (ex. Google Pixel 3 XL, Huawei P20, Asus ZenFone 5, etc)
static axstd::pod_vector<int32_t> safeInsets =
JniHelper::callStaticIntArrayMethod("org/axmol/lib/AxmolEngine", "getSafeInsets");
JniHelper::callStaticIntArrayMethod("dev/axmol/lib/AxmolEngine", "getSafeInsets");

if (safeInsets.size() >= 4)
{
Expand Down
8 changes: 4 additions & 4 deletions core/platform/android/java/lint.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="InlinedApi">
<ignore path="src/org/axmol/lib/GameControllerHelper.java" />
<ignore path="src/dev/axmol/lib/GameControllerHelper.java" />
</issue>
<issue id="NewApi">
<ignore path="src/org/axmol/lib/AxmolActivity.java" />
<ignore path="src/org/axmol/lib/GameControllerHelper.java" />
<ignore path="src/dev/axmol/lib/AxmolActivity.java" />
<ignore path="src/dev/axmol/lib/GameControllerHelper.java" />
</issue>
</lint>
</lint>
2 changes: 1 addition & 1 deletion core/platform/android/javaactivity-android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ JNIEXPORT void JNICALL Java_dev_axmol_lib_AxmolRenderer_nativeOnContextLost(JNIE
director->replaceScene(rootScene);
director->purgeCachedData();

JniHelper::callStaticVoidMethod("org/axmol/lib/AxmolEngine", "restartProcess");
JniHelper::callStaticVoidMethod("dev/axmol/lib/AxmolEngine", "restartProcess");
#endif
}

Expand Down

0 comments on commit 5507b5d

Please sign in to comment.