Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into canary
Browse files Browse the repository at this point in the history
  • Loading branch information
kokekanon committed Jan 2, 2025
2 parents 6534d7a + 093edcc commit 469b7a0
Show file tree
Hide file tree
Showing 55 changed files with 1,067 additions and 380 deletions.
50 changes: 31 additions & 19 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,55 +4,67 @@ plugins {
}

android {
compileSdk 32
namespace 'com.github.otclient'
compileSdk 35

defaultConfig {
applicationId "com.github.otclient"
minSdk 21
targetSdk 32
targetSdk 35
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
cppFlags '-std=c++20'
arguments "-DVCPKG_TARGET_ANDROID=ON"
cppFlags '-std=c++20', '-fuse-ld=lld', '-flto'
arguments "-DVCPKG_TARGET_ANDROID=ON", "-DANDROID_STL=c++_shared"
}
}
ndk {
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64'
}

externalNativeBuild {
cmake {
path file('../../CMakeLists.txt')
version '3.31.1'
}
}

buildTypes {
release {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = '1.8'
}
externalNativeBuild {
cmake {
path file('../../CMakeLists.txt')
version '3.22.1'
}
jvmTarget = '17'
}

buildFeatures {
viewBinding true
prefab true
}
ndkVersion '25.1.8937393'

ndkVersion '28.0.12674087'

defaultConfig {
externalNativeBuild {
cmake {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
}
}

dependencies {
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.5.0'
implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.games:games-activity:1.2.1'
implementation 'com.google.android.material:material:1.6.1'
implementation 'com.google.android.material:material:1.10.0'
}
3 changes: 1 addition & 2 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.github.otclient" >
xmlns:tools="http://schemas.android.com/tools" >

<!-- OpenGL ES 2.0 -->
<uses-feature android:glEsVersion="0x00020000"/>
Expand Down
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.2.2' apply false
id 'com.android.library' version '7.2.2' apply false
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
id 'com.android.application' version '8.7.3' apply false
id 'com.android.library' version '8.7.3' apply false
id 'org.jetbrains.kotlin.android' version '1.9.23' apply false
}

task clean(type: Delete) {
Expand Down
3 changes: 2 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ kotlin.code.style=official
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
# Enables experimental Prefab
android.prefabVersion=2.0.0
android.prefabVersion=2.0.0
android.useGoldLinker=false
Binary file modified android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 4 additions & 3 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Mon Aug 29 19:57:03 BRT 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 469b7a0

Please sign in to comment.