Skip to content

Instantly share code, notes, and snippets.

@dimmduh
Last active June 15, 2018 06:50
Show Gist options
  • Save dimmduh/36b7c909d3753b40d5255f9fa46ebbf1 to your computer and use it in GitHub Desktop.
Save dimmduh/36b7c909d3753b40d5255f9fa46ebbf1 to your computer and use it in GitHub Desktop.
Unity gradle custom template with multidex
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
}
}
allprojects {
repositories {
flatDir {
dirs 'libs'
}
}
}
apply plugin: 'com.android.application'
dependencies {
compile 'com.android.support:multidex:1.0.1'
compile fileTree(dir: 'libs', include: ['*.jar'])
**DEPS**}
android {
compileSdkVersion **APIVERSION**
buildToolsVersion '**BUILDTOOLS**'
defaultConfig {
multiDexEnabled true
minSdkVersion **MINSDKVERSION**
targetSdkVersion **TARGETSDKVERSION**
applicationId '**APPLICATIONID**'
ndk {
abiFilters **ABIFILTERS**
}
versionCode **VERSIONCODE**
versionName '**VERSIONNAME**'
}
lintOptions {
abortOnError false
disable 'MissingTranslation'
}
aaptOptions {
noCompress '.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**
}
**SIGN**
buildTypes {
debug {
minifyEnabled false
jniDebuggable true
shrinkResources false
}
release {
minifyEnabled false
shrinkResources false
**SIGNCONFIG**
}
}
dexOptions {
javaMaxHeapSize "4g"
}
**PACKAGING_OPTIONS**
}
**SOURCE_BUILD_SETUP**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment