buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.8.+' } } apply plugin: 'android' repositories { mavenCentral() } dependencies { compile 'com.intellij:annotations:12.0' } android { compileSdkVersion 19 buildToolsVersion "19.0.1" defaultConfig { minSdkVersion 14 targetSdkVersion 19 versionCode = 88 versionName = "0.6.7" } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } xposedmodule { manifest.srcFile 'xposed/AndroidManifest.xml' java.srcDirs = ['xposed/src'] resources.srcDirs = ['xposed/src'] aidl.srcDirs = ['xposed/src'] renderscript.srcDirs = ['xposed/src'] res.srcDirs = ['xposed/res'] assets.srcDirs = ['xposed/assets'] } } /* compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 }*/ signingConfigs { release } lintOptions { enable 'BackButton', 'EasterEgg', 'StopShip', 'IconExpectedSize' disable 'MissingTranslation' } buildTypes { release { signingConfig signingConfigs.release } } } // ~/.gradle/gradle.properties if (project.hasProperty('keystoreFile') && project.hasProperty('keystorePassword') && project.hasProperty('keystoreAliasPassword')) { android.signingConfigs.release.storeFile = file(keystoreFile) android.signingConfigs.release.storePassword = keystorePassword android.signingConfigs.release.keyPassword = keystoreAliasPassword android.signingConfigs.release.keyAlias = keystoreAlias } else { android.buildTypes.release.signingConfig = null } tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask -> pkgTask.jniFolders = new HashSet() pkgTask.jniFolders.add(new File(buildDir, 'native-libs')) }