Skip to content

Commit

Permalink
ref-in android Activity
Browse files Browse the repository at this point in the history
fix android theme
fix android orientation
update android Firebase 33.6.0
add android option --firebase.crashlytics.forcecrash
add android resource mengine_splashscreen_background_inside
  • Loading branch information
irov committed Nov 28, 2024
1 parent f68c1a3 commit 49031c7
Show file tree
Hide file tree
Showing 81 changed files with 1,087 additions and 916 deletions.
14 changes: 8 additions & 6 deletions gradle/app/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="preferExternal">
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="auto"
>

<!-- OpenGL ES 2.0 -->
<uses-feature android:glEsVersion="0x00020000" />
Expand All @@ -19,18 +18,21 @@
android:label="@string/app_name"
android:name="org.Mengine.Project.FinalApplication"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="true"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
android:theme="@style/MengineApplicationTheme"
android:networkSecurityConfig="@xml/network_security_config"
android:hardwareAccelerated="true">

<activity
android:name="org.Mengine.Base.MengineActivity"
android:alwaysRetainTaskState="true"
android:preferMinimalPostProcessing="true"
android:clearTaskOnLaunch="false"
android:exported="true"
android:launchMode="singleTop"
android:keepScreenOn="true"
android:screenOrientation="${ANDROID_APP_SCREEN_ORIENTATION}">
android:configChanges="mcc|mnc|fontScale|touchscreen|density|layoutDirection|locale|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation">

<intent-filter>
Expand Down
5 changes: 5 additions & 0 deletions gradle/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def ANDROID_APP_SPLIT_ENABLE = Utils.getBooleanProperty(project, "ANDROID_APP_SP
def ANDROID_APP_BUNDLE_ENABLE = Utils.getBooleanProperty(project, "ANDROID_APP_BUNDLE_ENABLE", false)
def ANDROID_APP_DELIVERY_PACKAGES = Utils.getStringProperty(project, "ANDROID_APP_DELIVERY_PACKAGES", null)
def ANDROID_APP_BUILD_NUMBER = Utils.getIntegerProperty(project, "ANDROID_APP_BUILD_NUMBER", 0)
def ANDROID_APP_SCREEN_ORIENTATION = Utils.getStringProperty(project, "ANDROID_APP_SCREEN_ORIENTATION", "portrait")

def MENGINE_APP_LIBRARY_MENGINE = Utils.existAppLibrary(project, "MENGINE_APP_LIBRARY_MENGINE")
def MENGINE_APP_LIBRARY_OPENAL32 = Utils.existAppLibrary(project, "MENGINE_APP_LIBRARY_OPENAL32")
Expand Down Expand Up @@ -168,6 +169,10 @@ android {
}

defaultConfig {
manifestPlaceholders = [ANDROID_APP_SCREEN_ORIENTATION: ANDROID_APP_SCREEN_ORIENTATION]

println "ANDROID_APP_SCREEN_ORIENTATION: $ANDROID_APP_SCREEN_ORIENTATION"

if (project.hasProperty("ANDROID_APP_ID")) {
applicationId ANDROID_APP_ID

Expand Down
2 changes: 1 addition & 1 deletion gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ buildscript {
}

if (Utils.existAppPlugin(project, "MENGINE_APP_PLUGIN_APPLOVIN") == true) {
classpath 'com.applovin.quality:AppLovinQualityServiceGradlePlugin:5.6.3'
classpath 'com.applovin.quality:AppLovinQualityServiceGradlePlugin:5.6.4'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/gradle.properties.ci
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
org.gradle.jvmargs=-Xms4096M -Xmx4096M -Dkotlin.daemon.jvm.options\="-Xmx4096M"
android.useAndroidX=true
android.useFullClasspathForDexingTransform=true
android.enableJetifier=true
android.enableJetifier=false
Loading

0 comments on commit 49031c7

Please sign in to comment.