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

apply plugin: 'com.android.library'

android {
	compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
	buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
	
	namespace 'com.stencyl.extension.google'

	sourceSets {
		main {
			manifest.srcFile 'AndroidManifest.xml'
			java.srcDirs = ['src']
			res.srcDirs = ['res']
		}
	}

	defaultConfig {
		minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
		targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
	}
}

dependencies {
	api project(':deps:extension-api')
	implementation 'com.google.android.gms:play-services-games-v2:20.1.2'
	implementation 'androidx.appcompat:appcompat:1.2.0'
	constraints {
		implementation("androidx.fragment:fragment:1.8.9") {
			because("Blocks older versions that have been marked as outdated")
		}
	}
}
