Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- google()
- maven {
- url "https://maven.google.com"
- }
- jcenter { url "http://jcenter.bintray.com/" }
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.1.0'
- }
- }
- task buildPythonDebug << {
- exec {
- commandLine "voc -v -p app -o build/intermediates/classes/debug app".split()
- }
- exec {
- commandLine "voc -v -p app_packages -o build/intermediates/classes/debug app_packages".split()
- }
- }
- task buildPythonRelease << {
- exec {
- commandLine "voc -v -p app -o build/intermediates/classes/release app".split()
- }
- exec {
- commandLine "voc -v -p app_packages -o build/intermediates/classes/release app_packages".split()
- }
- }
- task run << {
- exec {
- commandLine "adb shell am start -n n/a.helloworld_appname/android.Helloworld".split()
- }
- }
- apply plugin: 'com.android.application'
- android {
- compileSdkVersion 25
- buildToolsVersion "27.0.3"
- defaultConfig {
- minSdkVersion 15
- targetSdkVersion 25
- versionCode 1
- versionName "1.0"
- }
- sourceSets {
- main {
- manifest.srcFile 'AndroidManifest.xml'
- java.srcDirs = ['src']
- res.srcDirs = ['res']
- }
- }
- }
- project.afterEvaluate {
- packageDebug.dependsOn buildPythonDebug
- packageRelease.dependsOn buildPythonRelease
- run.dependsOn installDebug
- }
- dependencies {
- compile fileTree(dir: 'libs', include: ['*.jar'])
- compile 'com.android.support:appcompat-v7:25.1.1'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement