Skip to content

Commit 9ec7c54

Browse files
authored
release 2.1.0 finally (#1621) [release 2.1.0]
* Delete deprecated prop `buildconfig` from gradle.properties * Delete unnecessary props since it's value same with defaults * Don't need config debug keystore, will auto signed by default debug.keystore * Update funding [skip ci] * Fix axmol cmdline tool command 'new' * Refix c99 for winsdk < 10.0.22000.0 * Fix powershell 3 condition statement: 'xxx = if(c) { v1 } else { v2 }' will lost switch parameter semantic * Improve code style * Improve code style * Fixup
1 parent 8ee68b5 commit 9ec7c54

19 files changed

Lines changed: 77 additions & 79 deletions

File tree

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# These are supported funding model platforms
22

3-
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
3+
github: axmolengine # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
44
patreon: # Replace with a single Patreon username
5-
open_collective: # Replace with a single Open Collective username
5+
open_collective: axmol # Replace with a single Open Collective username
66
ko_fi: # Replace with a single Ko-fi username
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry

1k/build.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class build1k {
140140
}
141141

142142
[void] pause($msg) {
143-
$executed_from_explorer = $false
143+
$shoud_pause = $false
144144
do {
145145
if (!$Global:IsWin) { break }
146146
$myProcess = [System.Diagnostics.Process]::GetCurrentProcess()
@@ -154,8 +154,14 @@ class build1k {
154154
}
155155

156156
$executed_from_explorer = ($parentProcess.ProcessName -like "explorer")
157+
if ($executed_from_explorer) {
158+
$procesCmdLineArgs = "$([System.Environment]::GetCommandLineArgs())"
159+
if ($procesCmdLineArgs.IndexOf('.ps1') -ne -1 -and $procesCmdLineArgs.IndexOf('-noexit') -eq -1) {
160+
$shoud_pause = $true
161+
}
162+
}
157163
} while ($false)
158-
if ($executed_from_explorer) {
164+
if ($shoud_pause) {
159165
$this.print("$msg, press any key to continue . . .")
160166
cmd /c pause 1>$null
161167
}

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@
119119
- Include hpp and c files in CMakeLists.txt of cpp template by @@lich426
120120
- Improve gradle scripts, config each build-variants for easy add custom build-variant, refer #1571
121121
- Allow to override AX_USE_COMPAT_GL from user's `CMakeLists.txt` by @smilediver
122-
- Allow generate debug signed apk, and rename keystore props:
122+
- Fix android gradle AGP8 warnings, and rename keystore props:
123123
- RELEASE_STORE_FILE ==> KEY_STORE_FILE
124-
- KEY_STORE_PASSWORD ==> KEY_STORE_PASSWORD
124+
- RELEASE_KEY_STORE_PASSWORD ==> KEY_STORE_PASSWORD
125125
- RELEASE_KEY_ALIAS ==> KEY_ALIAS
126126
- RELEASE_KEY_PASSWORD ==> KEY_PASSWORD
127127
- Enable template projects' `aidl` by default for In-app purchases by @armanhossiny

cmake/Modules/AXConfigDefine.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ if (WINDOWS)
3737
if (NOT CMAKE_SYSTEM_VERSION)
3838
set(CMAKE_SYSTEM_VERSION ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION})
3939
endif()
40-
if (${CMAKE_SYSTEM_VERSION} VERSION_GREATER_EQUAL "10.0.22000.0")
40+
# CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION aka selected windows sdk version
41+
if (${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION} VERSION_GREATER_EQUAL "10.0.22000.0")
4142
set(CMAKE_C_STANDARD 11)
4243
else()
4344
# windows sdk < 10.0.22000.0, The c11 header stdalign.h was missing, so workaroud fallback C standard to 99

setup.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$myRoot = $PSScriptRoot
44
$AX_ROOT = $myRoot
55

6-
Set-Alias println Write-Host
6+
function println($message) { Write-Host "axmol: $message" }
77

88
# import VersionEx
99
. (Join-Path $PSScriptRoot '1k/extensions.ps1')
@@ -148,10 +148,10 @@ if ($IsWin) {
148148

149149
$execPolicy = powershell -Command 'Get-ExecutionPolicy'
150150
if ($execPolicy -ne 'Bypass') {
151-
println "axmol: Setting system installed powershell execution policy '$execPolicy'==>'Bypass', please click 'YES' on UAC dialog"
151+
println "Setting system installed powershell execution policy '$execPolicy'==>'Bypass', please click 'YES' on UAC dialog"
152152
Start-Process powershell -ArgumentList '-Command "Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force"' -WindowStyle Hidden -Wait -Verb runas
153153
} else {
154-
println "axmol: Great, the system installed powershell execution policy is '$execPolicy'"
154+
println "Great, the system installed powershell execution policy is '$execPolicy'"
155155
}
156156
}
157157
else {

templates/cpp-template-default/proj.android/app/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ android {
5050
}
5151

5252
signingConfigs {
53-
common {
53+
release {
5454
if (project.hasProperty("KEY_STORE_FILE")) {
5555
storeFile file(KEY_STORE_FILE)
5656
storePassword KEY_STORE_PASSWORD
@@ -69,17 +69,14 @@ android {
6969
shrinkResources true
7070
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
7171
if (project.hasProperty("KEY_STORE_FILE")) {
72-
signingConfig signingConfigs.common
72+
signingConfig signingConfigs.release
7373
}
7474
}
7575

7676
debug {
7777
debuggable true
7878
jniDebuggable true
7979
renderscriptDebuggable true
80-
if (project.hasProperty("KEY_STORE_FILE")) {
81-
signingConfig signingConfigs.common
82-
}
8380
}
8481
}
8582

templates/cpp-template-default/proj.android/gradle.properties

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,3 @@ PROP_APP_ABI=arm64-v8a
4040
android.injected.testOnly=false
4141
android.useAndroidX=true
4242

43-
# Update AGP from 7.4.2 to 8.1.1
44-
android.defaults.buildfeatures.buildconfig=true
45-
android.nonTransitiveRClass=true
46-
android.nonFinalResIds=true

templates/lua-template-default/proj.android/app/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ android {
5050
}
5151

5252
signingConfigs {
53-
common {
53+
release {
5454
if (project.hasProperty("KEY_STORE_FILE")) {
5555
storeFile file(KEY_STORE_FILE)
5656
storePassword KEY_STORE_PASSWORD
@@ -69,17 +69,14 @@ android {
6969
shrinkResources true
7070
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
7171
if (project.hasProperty("KEY_STORE_FILE")) {
72-
signingConfig signingConfigs.common
72+
signingConfig signingConfigs.release
7373
}
7474
}
7575

7676
debug {
7777
debuggable true
7878
jniDebuggable true
7979
renderscriptDebuggable true
80-
if (project.hasProperty("KEY_STORE_FILE")) {
81-
signingConfig signingConfigs.common
82-
}
8380
}
8481
}
8582

templates/lua-template-default/proj.android/gradle.properties

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,3 @@ PROP_APP_ABI=arm64-v8a
4040
android.injected.testOnly=false
4141
android.useAndroidX=true
4242

43-
# Update AGP from 7.4.2 to 8.1.1
44-
android.defaults.buildfeatures.buildconfig=true
45-
android.nonTransitiveRClass=true
46-
android.nonFinalResIds=true

tests/cpp-tests/proj.android/app/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ android {
5151
}
5252

5353
signingConfigs {
54-
common {
54+
release {
5555
if (project.hasProperty("KEY_STORE_FILE")) {
5656
storeFile file(KEY_STORE_FILE)
5757
storePassword KEY_STORE_PASSWORD
@@ -70,17 +70,14 @@ android {
7070
shrinkResources true
7171
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
7272
if (project.hasProperty("KEY_STORE_FILE")) {
73-
signingConfig signingConfigs.common
73+
signingConfig signingConfigs.release
7474
}
7575
}
7676

7777
debug {
7878
debuggable true
7979
jniDebuggable true
8080
renderscriptDebuggable true
81-
if (project.hasProperty("KEY_STORE_FILE")) {
82-
signingConfig signingConfigs.common
83-
}
8481
}
8582
}
8683

0 commit comments

Comments
 (0)