Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ Ensure that on host is installed:
Before running Extender you need to have prepackaged toolchains and sdks. Full instruction how it can be done you can find [here](https://github.com/defold/defold/tree/dev/scripts/package).

Ensure that you have the following tools packaged:
* iPhoneOS18.2.sdk
* iPhoneSimulator18.2.sdk
* MacOSX15.2.sdk
* XcodeDefault16.2.xctoolchain.darwin
* iPhoneOS26.2.sdk
* iPhoneSimulator26.2.sdk
* MacOSX26.2.sdk
* XcodeDefault26.2.xctoolchain.darwin

NOTE: Complete list of needed packages see [link](./server/scripts/standalone/setup-standalone-env.sh)

Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ if (project.hasProperty('publishToGar')) {
publishing {
repositories {
maven {
name "extenderRepo"
url "artifactregistry://europe-west1-maven.pkg.dev/extender-426409/extender-maven/"
name = "extenderRepo"
url = uri("artifactregistry://europe-west1-maven.pkg.dev/extender-426409/extender-maven/")
}
}
}
}

wrapper {
gradleVersion = '8.9'
gradleVersion = '9.1'
distributionType = Wrapper.DistributionType.ALL
}
13 changes: 8 additions & 5 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ plugins {
id 'java'
}

sourceCompatibility = 1.8
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

repositories {
mavenCentral()
Expand All @@ -18,9 +21,9 @@ if (project.hasProperty('publishToGar')) {
publications {
extenderClient(MavenPublication) {
artifact jar
groupId 'com.defold.extender'
artifactId 'client'
version project.ext.clientVersion
groupId = 'com.defold.extender'
artifactId = 'client'
version = project.ext.clientVersion
}
}
}
Expand All @@ -46,4 +49,4 @@ dependencies {

test {
useJUnitPlatform()
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
23 changes: 7 additions & 16 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'io.spring.gradle:dependency-management-plugin:1.1.7'
classpath 'org.springframework.boot:spring-boot-gradle-plugin:3.5.5'
}
}
Expand All @@ -29,25 +28,17 @@ ext {
}

configurations {
// A configuration meant for consumers that need the API of this component
implementation {
canBeResolved = true
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't iterate over implementation artifacts directly, so we don't need it here (it's not supported in new Gradle, so it's easier to just remove it)

all*.exclude group: 'commons-logging', module: 'commons-logging'
}

repositories {
mavenCentral()
}

dependencyManagement {
imports {
mavenBom 'com.google.cloud:spring-cloud-gcp-dependencies:7.4.0'
mavenBom 'org.junit:junit-bom:5.13.4'
}
}

dependencies {
implementation(platform("com.google.cloud:spring-cloud-gcp-dependencies:7.4.0"))
testImplementation(platform("org.junit:junit-bom:5.13.4"))

implementation('org.springframework.boot:spring-boot-starter-web') {
exclude module: 'spring-boot-starter-tomcat'
}
Expand Down Expand Up @@ -175,9 +166,9 @@ if (project.hasProperty('publishToGar')) {
publications {
extender(MavenPublication) {
artifact bootJar
groupId 'com.defold.extender'
artifactId 'server'
version project.ext.extenderVersion
groupId = 'com.defold.extender'
artifactId = 'server'
version = project.ext.extenderVersion

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax changes for new gradle

}
}
}
Expand Down Expand Up @@ -224,4 +215,4 @@ jacocoTestReport {
xml.required.set(true)
html.required.set(true)
}
}
}
2 changes: 1 addition & 1 deletion server/envs/generate_user_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ OUTPUT_FILE=$ENV_DIR/user.env
if [[ -z $1 ]]; then
echo "Load macos environment..."
source ${ENV_DIR}/macos.env
APPENDED_PATH=${PLATFORMSDK_DIR}/XcodeDefault${XCODE_16_VERSION}.xctoolchain/usr/bin:/usr/local/bin:${PATH}
APPENDED_PATH=${PLATFORMSDK_DIR}/XcodeDefault${XCODE_26_VERSION}.xctoolchain/usr/bin:/usr/local/bin:${PATH}
else
echo "Load $1 environment..."
source ${ENV_DIR}/$1.env
Expand Down
7 changes: 7 additions & 0 deletions server/envs/macos.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ XCODE_16_VERSION=16.2
XCODE_16_CLANG_VERSION=16.0.0
MACOS_15_VERSION=15.2
IOS_18_VERSION=18.2
SWIFT_6_2_VERSION=6.2
IOS_26_VERSION_MIN=15.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

min version changed, so we need it in a separate variable now

MACOS_26_VERSION_MIN=11.5
XCODE_26_VERSION=26.2
XCODE_26_CLANG_VERSION=17.0.0
MACOS_26_VERSION=26.2
IOS_26_VERSION=26.2
18 changes: 10 additions & 8 deletions server/manifestmergetool/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ jar {


configurations {
// A configuration meant for consumers that need the API of this component
implementation {
// Resolvable configuration for shading contents into the fat jar
implementationResolved {
canBeResolved = true
canBeConsumed = false
extendsFrom implementation

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we iterate over artifacts, so it's reimplemented gradle 9 way

}
all*.exclude group: 'com.android.tools', module: 'repository'
all*.exclude group: 'com.android.tools', module: 'sdklib'
Expand All @@ -35,13 +37,13 @@ task mainJar(type: Jar) {
attributes 'Main-Class': 'com.defold.manifestmergetool.ManifestMergeTool'
}
from {
configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) }
configurations.implementationResolved.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
duplicatesStrategy DuplicatesStrategy.WARN
duplicatesStrategy = DuplicatesStrategy.WARN
with jar
doLast {
copy {
Expand All @@ -60,17 +62,17 @@ if (project.hasProperty('publishToGar')) {
publications {
manifestMergeTool(MavenPublication) {
artifact mainJar
groupId 'com.defold.extender'
artifactId 'manifestmergetool'
version project.ext.manifestMergetoolVersion
groupId = 'com.defold.extender'
artifactId = 'manifestmergetool'
version = project.ext.manifestMergetoolVersion
}
}
}
}

repositories {
mavenCentral()
maven { url "https://maven.google.com" }
maven { url = uri("https://maven.google.com") }
}

dependencies {
Expand Down
8 changes: 4 additions & 4 deletions server/scripts/standalone/setup-standalone-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ if [[ $(uname) == "Darwin" ]]; then

# Keep Apple's naming convention to avoid bugs
PACKAGES=(
iPhoneOS${IOS_18_VERSION}.sdk
iPhoneSimulator${IOS_18_VERSION}.sdk
MacOSX${MACOS_15_VERSION}.sdk
XcodeDefault${XCODE_16_VERSION}.xctoolchain.darwin
iPhoneOS${IOS_26_VERSION}.sdk
iPhoneSimulator${IOS_26_VERSION}.sdk
MacOSX${MACOS_26_VERSION}.sdk
XcodeDefault${XCODE_26_VERSION}.xctoolchain.darwin
)
function download_packages() {
for package_name in ${PACKAGES[@]}; do
Expand Down
4 changes: 2 additions & 2 deletions server/src/main/resources/template.build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ android {
compileSdkVersion {{compile-sdk-version}}

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

namespace = "com.defold.defold"
Expand Down
18 changes: 9 additions & 9 deletions server/test-data/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ ANDROID_64_NDK_API_VERSION='21'
ANDROID_SYS_ROOT=${ANDROID_NDK}/toolchains/llvm/prebuilt/${HOST}-x86_64/sysroot
ANDROID_INCLUDE_ARCH=${ANDROID_NDK}/sources/android/cpufeatures

IOS_GCC=${DYNAMO_HOME}/ext/SDKs/XcodeDefault16.2.xctoolchain/usr/bin/clang++
IOS_AR=${DYNAMO_HOME}/ext/SDKs/XcodeDefault16.2.xctoolchain/usr/bin/ar
IOS_MIN_VERSION=11.0
IOS_SYS_ROOT=${DYNAMO_HOME}/ext/SDKs/iPhoneOS18.2.sdk

OSX_GCC=${DYNAMO_HOME}/ext/SDKs/XcodeDefault16.2.xctoolchain/usr/bin/clang++
OSX_AR=${DYNAMO_HOME}/ext/SDKs/XcodeDefault16.2.xctoolchain/usr/bin/ar
OSX_MIN_VERSION=10.13
OSX_SYS_ROOT=${DYNAMO_HOME}/ext/SDKs/MacOSX15.2.sdk
IOS_GCC=${DYNAMO_HOME}/ext/SDKs/XcodeDefault26.2.xctoolchain/usr/bin/clang++
IOS_AR=${DYNAMO_HOME}/ext/SDKs/XcodeDefault26.2.xctoolchain/usr/bin/ar
IOS_MIN_VERSION=15.0
IOS_SYS_ROOT=${DYNAMO_HOME}/ext/SDKs/iPhoneOS26.2.sdk

OSX_GCC=${DYNAMO_HOME}/ext/SDKs/XcodeDefault26.2.xctoolchain/usr/bin/clang++
OSX_AR=${DYNAMO_HOME}/ext/SDKs/XcodeDefault26.2.xctoolchain/usr/bin/ar
OSX_MIN_VERSION=11.5
OSX_SYS_ROOT=${DYNAMO_HOME}/ext/SDKs/MacOSX25.2.sdk

EMCC=$DYNAMO_HOME/ext/SDKs/emsdk-3.1.65/upstream/emscripten/em++
EMAR=$DYNAMO_HOME/ext/SDKs/emsdk-3.1.65/upstream/emscripten/emar
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
url = uri("https://plugins.gradle.org/m2/")
}
}
}
Expand Down