Skip to content

Commit

Permalink
Updated to work with Godot 3.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
oneseedfruit committed Apr 22, 2021
1 parent bdf7ddd commit 70fe523
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {
buildToolsVersion "30.0.1"

defaultConfig {
minSdkVersion 16
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
Expand All @@ -34,12 +34,12 @@ android {
}

dependencies {
compileOnly project(":godot-lib.3.2.3.stable.release")
compileOnly project(":godot-lib")
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'com.google.android.gms:play-services-games:21.0.0'
implementation 'com.google.android.gms:play-services-auth:19.0.0'
implementation 'com.google.code.gson:gson:2.8.6'

testImplementation 'junit:junit:4.13'
testImplementation 'junit:junit:4.13.2'
}

20 changes: 10 additions & 10 deletions app/src/main/java/io/cgisca/godot/gpgs/PlayGameServicesGodot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,16 @@ class PlayGameServicesGodot(godot: Godot) : GodotPlugin(godot), AchievementsList
signInOptionsBuilder.build()
}

connectionController = ConnectionController(godot as Activity, signInOptions)
signInController = SignInController(godot as Activity, this, connectionController)
achievementsController = AchievementsController(godot as Activity, this, connectionController)
leaderboardsController = LeaderboardsController(godot as Activity, this, connectionController)
eventsController = EventsController(godot as Activity, this, connectionController)
playerStatsController = PlayerStatsController(godot as Activity, this, connectionController)
playerInfoController = PlayerInfoController(godot as Activity, this, connectionController)
savedGamesController = SavedGamesController(godot as Activity, this, connectionController)

googleSignInClient = GoogleSignIn.getClient(godot as Activity, signInOptions)
connectionController = ConnectionController(godot.activity as Activity, signInOptions)
signInController = SignInController(godot.activity as Activity, this, connectionController)
achievementsController = AchievementsController(godot.activity as Activity, this, connectionController)
leaderboardsController = LeaderboardsController(godot.activity as Activity, this, connectionController)
eventsController = EventsController(godot.activity as Activity, this, connectionController)
playerStatsController = PlayerStatsController(godot.activity as Activity, this, connectionController)
playerInfoController = PlayerInfoController(godot.activity as Activity, this, connectionController)
savedGamesController = SavedGamesController(godot.activity as Activity, this, connectionController)

googleSignInClient = GoogleSignIn.getClient(godot.activity as Activity, signInOptions)

runOnUiThread {
signInController.setShowPopups(enablePopups)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.4.10"
ext.kotlin_version = '1.4.31'
repositories {
google()
jcenter()
Expand Down
2 changes: 0 additions & 2 deletions godot-lib.3.2.3.stable.release/build.gradle

This file was deleted.

2 changes: 2 additions & 0 deletions godot-lib/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('godot-lib.3.3.stable.release.aar'))
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':app', ':godot-lib.3.2.3.stable.release'
include ':app', ':godot-lib'

0 comments on commit 70fe523

Please sign in to comment.