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
6 changes: 5 additions & 1 deletion agdk/agdktunnel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ feedback on in-game collisions.
1. cd to `agdk/third_party`
2. git clone https://github.com/zeux/volk.git
3. git clone https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
4. Download and install the Vulkan SDK for the `glslc` compiler
5. Create or edit the `local.properties` file in this directory to add a `glslc.dir` pointing
to the directory with the `glslc` compiler (i.e. glslc.dir=/Users/foo/VulkanSDK/1.4.341.1/macOS/bin)

## Building

Open the `agdktunnel' directory in Android Studio 2024.3.1 Patch 1 (Meerkat) or higher.
Open the `agdktunnel' directory in Android Studio 2026.1.1 Patch 1 (Quail 1) or higher.

## Library Wrapper notes

Expand Down Expand Up @@ -104,6 +107,7 @@ For more information see the codelab: [Using Play Asset Delivery in native games

## Version history

1.2.5 - Updated to current AGDK/NDK/AGP versions, 16KB page compatible fix
1.2.1 - Updated to current AGDK/NDK/AGP versions, deprecated Android Performance Tuner integration
1.2.0 - Major refactor to add basegameframework support, Vulkan/GLES simplerenderer, updating AGDK versions
1.0.4 - Merged Play integrations from AOSP. Play Asset Delivery,
Expand Down
35 changes: 18 additions & 17 deletions agdk/agdktunnel/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ def usePad = PADEnabled
def playcoreDir = file('libs/play-core-native-sdk')

android {
compileSdkVersion 36
ndkVersion '27.2.12479018'
compileSdkVersion 37
ndkVersion '29.0.14206865'

defaultConfig {
applicationId 'com.google.sample.agdktunnel'
minSdkVersion 24
targetSdkVersion 36
versionCode 125
versionName '1.2.5'
targetSdkVersion 37
versionCode 126
versionName '1.2.6'

externalNativeBuild {
cmake {
Expand All @@ -51,7 +51,7 @@ android {
buildTypes {
release {
minifyEnabled = false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
'proguard-rules.pro',
'$playcoreDir/proguard/common.pgcfg',
'$playcoreDir/proguard/per-feature-proguard-files'
Expand All @@ -66,7 +66,7 @@ android {
debug {
externalNativeBuild {
minifyEnabled = false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
'proguard-rules.pro'
cmake {
arguments "-DANDROID_STL=c++_shared",
Expand Down Expand Up @@ -106,22 +106,23 @@ android {
}

dependencies {
implementation "androidx.lifecycle:lifecycle-viewmodel:2.2.0"
implementation "androidx.lifecycle:lifecycle-livedata:2.2.0"
implementation "androidx.lifecycle:lifecycle-runtime:2.2.0"
implementation "androidx.core:core:1.5.0"
implementation "androidx.constraintlayout:constraintlayout:2.0.4"
implementation 'androidx.fragment:fragment:1.2.5'
implementation 'com.google.oboe:oboe:1.5.0'
implementation "androidx.games:games-frame-pacing:2.1.2"
implementation "androidx.games:games-activity:3.0.5"
implementation "androidx.appcompat:appcompat:1.6.1"
implementation "androidx.lifecycle:lifecycle-viewmodel:2.10.0"
implementation "androidx.lifecycle:lifecycle-livedata:2.10.0"
implementation "androidx.lifecycle:lifecycle-runtime:2.10.0"
implementation "androidx.core:core:1.19.0"
implementation "androidx.constraintlayout:constraintlayout:2.2.1"
implementation 'androidx.fragment:fragment:1.8.9'
implementation 'com.google.oboe:oboe:1.10.0'
implementation "androidx.games:games-frame-pacing:2.1.3"
implementation "androidx.games:games-activity:4.4.2"
implementation "androidx.games:games-controller:2.0.2"

// Dependency for using APIs wrapped using library wrapper
implementation 'com.google.android.gms:play-services-gni-native-c:1.0.0-beta2'

// Google Play Games dependencies
implementation "com.google.android.gms:play-services-games-v2:17.0.0"
implementation "com.google.android.gms:play-services-games-v2:21.0.0"
// Use the Play Core AAR included with the SDK.
if(PADEnabled.toBoolean()) {
implementation files("$playcoreDir/playcore.aar")
Expand Down
2 changes: 1 addition & 1 deletion agdk/agdktunnel/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.9.1'
classpath 'com.android.tools.build:gradle:9.2.1'
}
}

Expand Down
7 changes: 3 additions & 4 deletions agdk/agdktunnel/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
#android.enableJetifier=true
android.useAndroidX=true

android.prefabVersion=2.0.0

GameSDKPath=../..

# Set to true to delivery optimized compressed assets using the Play Asset Delivery API
PADEnabled=false
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
android.uniquePackageNames=false
android.dependency.useConstraints=true
android.r8.strictFullModeForKeepRules=false
2 changes: 1 addition & 1 deletion agdk/agdktunnel/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
4 changes: 3 additions & 1 deletion agdk/agdktunnel/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.10.0'
}/*
Comment thread
natetrost marked this conversation as resolved.
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down