Contenu connexe
Similaire à AndroidStudioはじめました ~Gradle編~ (20)
AndroidStudioはじめました ~Gradle編~
- 9. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<project basedir="." default="build" name="TomoTest">
<property environment="env"/>
<property name="ECLIPSE_HOME" value="../../../../../Applications/eclipse"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<path id="Android 4.4.2.libraryclasspath">
<pathelement location="../../android_sdk/platforms/android-19/android.jar"/>
</path>
<path id="Android Private Libraries.libraryclasspath">
<pathelement location="libs/android-support-v4.jar"/>
</path>
<path id="Android Dependencies.libraryclasspath"/>
<path id="TomoTest.classpath">
<pathelement location="bin"/>
<path refid="Android 4.4.2.libraryclasspath"/>
<path refid="Android Private Libraries.libraryclasspath"/>
<path refid="Android Dependencies.libraryclasspath"/>
</path>
<path id="run.MainController.classpath">
<path refid="Android 4.4.2.libraryclasspath"/>
<path refid="TomoTest.classpath"/>
</path>
<path id="run.MainController.bootclasspath"/>
<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="bin">
<fileset dir="gen">
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target depends="clean" name="cleanall"/>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
<src path="src"/>
<src path="gen"/>
以下省略
- 13. apply plugin: 'android'
!
android {
compileSdkVersion 19
buildToolsVersion "19.0.1"
!
defaultConfig {
minSdkVersion 15
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
!
dependencies {
!
compile "com.android.support:support-v4:19.0.+"
}