Last active
June 15, 2018 06:50
-
-
Save dimmduh/36b7c909d3753b40d5255f9fa46ebbf1 to your computer and use it in GitHub Desktop.
Unity gradle custom template with multidex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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