Files

34 lines
1.3 KiB
Groovy

plugins { id 'com.android.application' }
def game = new groovy.json.JsonSlurper().parse(rootProject.file('game-config.json'))
def keyPath = System.getenv('FORMA_KEYSTORE')
android {
namespace 'com.forma.shell'
compileSdk 36
buildToolsVersion '35.0.0'
defaultConfig {
applicationId game.appId
minSdk 26
targetSdk 36
versionCode game.versionCode
versionName game.version
resValue 'string', 'app_name', '"' + game.name + '"'
manifestPlaceholders = [gameOrientation: game.orientation == 'landscape' ? 'sensorLandscape' : game.orientation == 'portrait' ? 'sensorPortrait' : 'fullSensor']
}
signingConfigs {
release {
if (keyPath) {
storeFile file(keyPath)
storePassword System.getenv('FORMA_KEYSTORE_PASSWORD')
keyAlias System.getenv('FORMA_KEY_ALIAS')
keyPassword System.getenv('FORMA_KEY_PASSWORD')
}
}
}
buildTypes {
debug { debuggable true }
release { debuggable false; minifyEnabled false; signingConfig signingConfigs.release }
}
compileOptions { sourceCompatibility JavaVersion.VERSION_17; targetCompatibility JavaVersion.VERSION_17 }
}
dependencies { implementation 'androidx.webkit:webkit:1.14.0' }