Skip to content

Commit c277c34

Browse files
authored
Merge pull request #25 from MobileGL-Dev/dev
Merge from dev
2 parents dc0d959 + 0c41b5c commit c277c34

22 files changed

Lines changed: 1236 additions & 1499 deletions

.github/workflows/mg.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: MobileGlues
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches:
6+
- main
7+
- dev
68
workflow_dispatch:
79

810
jobs:
@@ -14,7 +16,7 @@ jobs:
1416
- name: Checkout repo
1517
uses: actions/checkout@v4
1618
with:
17-
submodules: true
19+
submodules: recursive
1820

1921
- name: Set current date as env variable
2022
run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV

MobileGlues

Submodule MobileGlues updated 60 files

app/build.gradle.kts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ android {
1313
applicationId = "com.fcl.plugin.mobileglues"
1414
minSdk = 26
1515
targetSdk = 35
16-
versionCode = 1271
17-
versionName = "1.2.7 - hotfix1"
16+
versionCode = 1299
17+
versionName = "1.3.0·RC1"
1818

1919
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2020
}
@@ -42,7 +42,7 @@ android {
4242
resValue("string","app_name","MobileGlues")
4343

4444
manifestPlaceholders["des"] = "MobileGlues (OpenGL 4.0, 1.17+)"
45-
manifestPlaceholders["renderer"] = "MobileGlues:libmobileglues.so:libEGL.so"
45+
manifestPlaceholders["renderer"] = "MobileGlues:libmobileglues.so:libmobileglues.so"
4646

4747
manifestPlaceholders["minMCVer"] = "1.17"
4848
manifestPlaceholders["maxMCVer"] = "" //为空则不限制 No restriction if empty
@@ -61,6 +61,8 @@ android {
6161
put("LIBGL_ES", "3")
6262
put("DLOPEN", "libspirv-cross-c-shared.so,libshaderconv.so")
6363
put("POJAV_RENDERER", "opengles3")
64+
put("POJAVEXEC_EGL", "libmobileglues.so")
65+
put("LIBGL_EGL", "libmobileglues.so")
6466
}.run {
6567
var env = ""
6668
forEach { (key, value) ->
@@ -71,6 +73,12 @@ android {
7173
}
7274
}
7375

76+
packagingOptions {
77+
jniLibs {
78+
useLegacyPackaging = true
79+
}
80+
}
81+
7482
compileOptions {
7583
sourceCompatibility = JavaVersion.VERSION_11
7684
targetCompatibility = JavaVersion.VERSION_11

app/proguard-rules.pro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22-
23-
-keep class com.fcl.plugin.mobileglues.settings.MGConfig { *; }

app/src/main/java/com/fcl/plugin/mobileglues/AppInfoDialogBuilder.java

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.fcl.plugin.mobileglues
2+
3+
import android.content.Context
4+
import android.content.Intent
5+
import android.net.Uri
6+
import android.view.LayoutInflater
7+
import android.view.View
8+
import android.widget.TextView
9+
import com.google.android.material.dialog.MaterialAlertDialogBuilder
10+
11+
class AppInfoDialogBuilder(context: Context) : MaterialAlertDialogBuilder(context) {
12+
13+
init {
14+
val view = LayoutInflater.from(context).inflate(R.layout.dialog_app_info, null)
15+
view.findViewById<TextView>(R.id.info_version).text = BuildConfig.VERSION_NAME
16+
17+
setTitle(R.string.dialog_info)
18+
setView(view)
19+
setPositiveButton(R.string.dialog_positive, null)
20+
setNeutralButton(R.string.dialog_github) { _, _ ->
21+
context.startActivity(
22+
Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/MobileGL-Dev/MobileGlues-release"))
23+
)
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)