Skip to content

Commit

Permalink
android update
Browse files Browse the repository at this point in the history
adding newer gradle support
  • Loading branch information
msmalik681 committed Sep 4, 2024
1 parent 2e2519b commit 2e7956a
Show file tree
Hide file tree
Showing 17 changed files with 164 additions and 7 deletions.
2 changes: 2 additions & 0 deletions engine/android/-local.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sdk.dir=/home/malik/.android
ndk.dir=/home/malik/.android/ndk-bundle
10 changes: 10 additions & 0 deletions engine/android/app/.cxx/abi_configuration_3b6j5l4y.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"allAbis": [
"armeabi-v7a",
"arm64-v8a"
],
"validAbis": [
"ARMEABI_V7A",
"ARM64_V8A"
]
}
1 change: 1 addition & 0 deletions engine/android/app/.cxx/abi_configuration_3b6j5l4y.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
21 changes: 21 additions & 0 deletions engine/android/app/.cxx/abi_configuration_3b6j5l4y_key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"ndkHandlerSupportedAbis": [
"ARMEABI_V7A",
"ARM64_V8A",
"X86",
"X86_64"
],
"ndkHandlerDefaultAbis": [
"ARMEABI_V7A",
"ARM64_V8A",
"X86",
"X86_64"
],
"externalNativeBuildAbiFilters": [
"armeabi-v7a",
"arm64-v8a"
],
"ndkConfigAbiFilters": [],
"splitsFilterAbis": [],
"ideBuildOnlyTargetAbi": true
}
11 changes: 11 additions & 0 deletions engine/android/app/.cxx/ndk_locator_record_4w44q421.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ndk": "/home/malik/.android/ndk/21.1.6352462",
"revision": {
"mMajor": 21,
"mMinor": 1,
"mMicro": 6352462,
"mPreview": 0,
"mPrecision": "MICRO",
"mPreviewSeparator": " "
}
}
42 changes: 42 additions & 0 deletions engine/android/app/.cxx/ndk_locator_record_4w44q421.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[
{
"level": "INFO",
"message": "android.ndkVersion from module build.gradle is [not set]"
},
{
"level": "INFO",
"message": "android.ndkPath from module build.gradle is not set"
},
{
"level": "INFO",
"message": "ndk.dir in local.properties is not set"
},
{
"level": "INFO",
"message": "Not considering ANDROID_NDK_HOME because support was removed after deprecation period."
},
{
"level": "INFO",
"message": "sdkFolder is /home/malik/.android"
},
{
"level": "INFO",
"message": "NDK side-by-side folder from sdkFolder /home/malik/.android/ndk does not exist"
},
{
"level": "INFO",
"message": "Because no explicit NDK was requested, the default version [21.1.6352462] for this Android Gradle Plugin will be used"
},
{
"level": "INFO",
"message": "Folder /home/malik/.android/ndk/21.1.6352462 does not exist. Ignoring."
},
{
"level": "INFO",
"message": "No NDK was found. Trying to download it now."
},
{
"level": "INFO",
"message": "NDK 21.1.6352462 was downloaded to /home/malik/.android/ndk/21.1.6352462. Using that."
}
]
4 changes: 4 additions & 0 deletions engine/android/app/.cxx/ndk_locator_record_4w44q421_key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"sdkFolder": "/home/malik/.android",
"sideBySideNdkFolderNames": []
}
11 changes: 11 additions & 0 deletions engine/android/app/.cxx/ndk_locator_record_652t305s.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ndk": "/home/malik/.android/ndk/21.1.6352462",
"revision": {
"mMajor": 21,
"mMinor": 1,
"mMicro": 6352462,
"mPreview": 0,
"mPrecision": "MICRO",
"mPreviewSeparator": " "
}
}
26 changes: 26 additions & 0 deletions engine/android/app/.cxx/ndk_locator_record_652t305s.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"level": "INFO",
"message": "android.ndkVersion from module build.gradle is [not set]"
},
{
"level": "INFO",
"message": "android.ndkPath from module build.gradle is not set"
},
{
"level": "INFO",
"message": "ndk.dir in local.properties is not set"
},
{
"level": "INFO",
"message": "Not considering ANDROID_NDK_HOME because support was removed after deprecation period."
},
{
"level": "INFO",
"message": "sdkFolder is /home/malik/.android"
},
{
"level": "INFO",
"message": "Because no explicit NDK was requested, the default version [21.1.6352462] for this Android Gradle Plugin will be used"
}
]
6 changes: 6 additions & 0 deletions engine/android/app/.cxx/ndk_locator_record_652t305s_key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdkFolder": "/home/malik/.android",
"sideBySideNdkFolderNames": [
"21.1.6352462"
]
}
1 change: 1 addition & 0 deletions engine/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ android {
targetSdkVersion 31

//////////// MODFY FOR CUSTOM APK /////////////////
namespace "org.openbor.engine"
applicationId "org.openbor.engine"
versionCode 1
versionName "1.0.0"
Expand Down
3 changes: 1 addition & 2 deletions engine/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="org.openbor.engine"
android:versionCode="1"
android:versionName="1.4.4"
android:installLocation="preferExternal">

<!-- Android 4.4.2 -->
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="31" />
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="31" />

<!-- OpenGL ES 2.0 -->
<uses-feature android:glEsVersion="0x00020000" />
Expand Down
6 changes: 3 additions & 3 deletions engine/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

buildscript {
repositories {
jcenter()
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.android.tools.build:gradle:7.4.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -15,7 +15,7 @@ buildscript {

allprojects {
repositories {
jcenter()
mavenCentral()
google()
}
}
Expand Down
4 changes: 3 additions & 1 deletion engine/android/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ then
fi

#set build version, android home temp variable and build
export ANDROID_SDK_ROOT=~/.android

export ANDROID_HOME=~/.android
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
cd $(dirname $(readlink -f $0))
cd ../
./version.sh
Expand Down
2 changes: 1 addition & 1 deletion engine/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
20 changes: 20 additions & 0 deletions engine/version.tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* OpenBOR - http://www.ChronoCrash.com
* -----------------------------------------------------------------------
* All rights reserved, see LICENSE in OpenBOR root for details.
*
* Copyright (c) OpenBOR Team
*/

#ifndef VERSION_H
#define VERSION_H

#define VERSION_NAME "OpenBOR"
#define VERSION_MAJOR "4"
#define VERSION_MINOR "0"
#define VERSION_BUILD "7728"
#define VERSION_BUILD_INT 7728
#define VERSION_COMMIT "2e2519b"
#define VERSION "v"VERSION_MAJOR"."VERSION_MINOR" Build "VERSION_BUILD" (commit hash: "VERSION_COMMIT")"

#endif
1 change: 1 addition & 0 deletions engine/version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
OpenBOR-v4.0.7728-2e2519b

0 comments on commit 2e7956a

Please sign in to comment.