diff options
Diffstat (limited to 'platforms/android')
-rw-r--r-- | platforms/android/.gitignore | 14 | ||||
-rw-r--r-- | platforms/android/.project | 71 | ||||
-rw-r--r-- | platforms/android/AndroidManifest.xml | 15 | ||||
-rw-r--r-- | platforms/android/build.gradle | 94 | ||||
-rw-r--r-- | platforms/android/custom_rules.xml | 22 | ||||
-rw-r--r-- | platforms/android/project.properties | 14 | ||||
-rw-r--r-- | platforms/android/settings.gradle | 18 |
7 files changed, 0 insertions, 248 deletions
diff --git a/platforms/android/.gitignore b/platforms/android/.gitignore deleted file mode 100644 index a1c8ff7..0000000 --- a/platforms/android/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -# Non-project-specific build files: -build.xml -local.properties -/gradlew -/gradlew.bat -/gradle -# Ant builds -ant-built -ant-gen -# Eclipse builds -gen -out -# Gradle builds -/build diff --git a/platforms/android/.project b/platforms/android/.project deleted file mode 100644 index 5e2a6bc..0000000 --- a/platforms/android/.project +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>SafetyApp</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>com.android.ide.eclipse.adt.ApkBuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>com.android.ide.eclipse.adt.AndroidNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> - <linkedResources> - <link> - <name>config.xml</name> - <type>1</type> - <locationURI>$%7BPARENT-2-PROJECT_LOC%7D/config.xml</locationURI> - </link> - <link> - <name>www</name> - <type>2</type> - <locationURI>$%7BPARENT-2-PROJECT_LOC%7D/www</locationURI> - </link> - <link> - <name>merges</name> - <type>2</type> - <locationURI>$%7BPARENT-2-PROJECT_LOC%7D/merges</locationURI> - </link> - </linkedResources> - <filteredResources> - <filter> - <id>1390880034107</id> - <name></name> - <type>30</type> - <matcher> - <id>org.eclipse.ui.ide.multiFilter</id> - <arguments>1.0-projectRelativePath-matches-false-true-^(build.xml|ant-gen|ant-build|custom_rules.xml|CordovaLib|platform_www|cordova)</arguments> - </matcher> - </filter> - <filter> - <id>1390880034108</id> - <name></name> - <type>30</type> - <matcher> - <id>org.eclipse.ui.ide.multiFilter</id> - <arguments>1.0-projectRelativePath-matches-false-true-^(assets/www|res/xml/config.xml)</arguments> - </matcher> - </filter> - </filteredResources> -</projectDescription> - diff --git a/platforms/android/AndroidManifest.xml b/platforms/android/AndroidManifest.xml deleted file mode 100644 index b7f945e..0000000 --- a/platforms/android/AndroidManifest.xml +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="org.usfirst.frc.team4272.safetyapp" xmlns:android="http://schemas.android.com/apk/res/android"> - <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> - <uses-permission android:name="android.permission.INTERNET" /> - <application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name"> - <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="CordovaApp" android:theme="@android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize"> - <intent-filter android:label="@string/launcher_name"> - <action android:name="android.intent.action.MAIN" /> - <category android:name="android.intent.category.LAUNCHER" /> - </intent-filter> - </activity> - </application> - <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" /> - <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> -</manifest> diff --git a/platforms/android/build.gradle b/platforms/android/build.gradle deleted file mode 100644 index 9d1d45a..0000000 --- a/platforms/android/build.gradle +++ /dev/null @@ -1,94 +0,0 @@ -import java.util.regex.Pattern - -apply plugin: 'android' - -buildscript { - repositories { - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:0.10.+' - } -} - -ext.multiarch=false - -dependencies { - compile fileTree(dir: 'libs', include: '*.jar') - for (subproject in getProjectList()) { - compile project(subproject) - } -} - -android { - sourceSets { - main { - manifest.srcFile 'AndroidManifest.xml' - java.srcDirs = ['src'] - resources.srcDirs = ['src'] - aidl.srcDirs = ['src'] - renderscript.srcDirs = ['src'] - res.srcDirs = ['res'] - assets.srcDirs = ['assets'] - } - } - - defaultConfig { - versionCode Integer.parseInt("" + getVersionCodeFromManifest() + "0") - } - - compileSdkVersion 19 - buildToolsVersion "19.0.0" - - if (multiarch || System.env.BUILD_MULTIPLE_APKS) { - productFlavors { - armv7 { - versionCode defaultConfig.versionCode + 2 - ndk { - abiFilters "armeabi-v7a", "" - } - } - x86 { - versionCode defaultConfig.versionCode + 4 - ndk { - abiFilters "x86", "" - } - } - all { - ndk { - abiFilters "all", "" - } - } - } - } - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_7 - targetCompatibility JavaVersion.VERSION_1_7 - } - -} - -task wrapper(type: Wrapper) { - gradleVersion = '1.12' -} - -def getVersionCodeFromManifest() { - def manifestFile = file(android.sourceSets.main.manifest.srcFile) - def pattern = Pattern.compile("versionCode=\"(\\d+)\"") - def matcher = pattern.matcher(manifestFile.getText()) - matcher.find() - return Integer.parseInt(matcher.group(1)) -} - -def getProjectList() { - def manifestFile = file("project.properties") - def pattern = Pattern.compile("android.library.reference.(\\d+)\\s*=\\s*(.*)") - def matcher = pattern.matcher(manifestFile.getText()) - def projects = [] - while (matcher.find()) { - projects.add(":" + matcher.group(2).replace("/",":")) - } - return projects -} diff --git a/platforms/android/custom_rules.xml b/platforms/android/custom_rules.xml deleted file mode 100644 index 66483d3..0000000 --- a/platforms/android/custom_rules.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project> - <target name="-pre-compile"> - <!-- Fix library references due to bug in build.xml: See: https://groups.google.com/forum/#!topic/android-developers/0ivH-YqCjzg --> - <pathconvert property="fixedJarsPath" refid="project.all.jars.path"> - <filtermapper> - <replacestring from="/bin/" to="/ant-build/"/> - <replacestring from="\bin\" to="\ant-build\"/> - </filtermapper> - </pathconvert> - <path id="project.all.jars.path"> - <pathelement path="${fixedJarsPath}"/> - </path> - <echo message="Set jars path to: ${toString:project.all.jars.path}"/> - </target> - <!-- Rename AndroidManifest.xml so that Eclipse's import wizard doesn't detect ant-build as a project --> - <target name="-post-build"> - <move file="ant-build/AndroidManifest.xml" tofile="ant-build/AndroidManifest.cordova.xml" failonerror="false" overwrite="true" /> - <move file="CordovaLib/ant-build/AndroidManifest.xml" tofile="CordovaLib/ant-build/AndroidManifest.cordova.xml" failonerror="false" overwrite="true" /> - </target> -</project> - diff --git a/platforms/android/project.properties b/platforms/android/project.properties deleted file mode 100644 index ef68eb7..0000000 --- a/platforms/android/project.properties +++ /dev/null @@ -1,14 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt -# Project target. -target=android-19 -android.library.reference.1=CordovaLib diff --git a/platforms/android/settings.gradle b/platforms/android/settings.gradle deleted file mode 100644 index baa1714..0000000 --- a/platforms/android/settings.gradle +++ /dev/null @@ -1,18 +0,0 @@ -import java.util.regex.Pattern - -def getProjectList() { - def manifestFile = file("project.properties") - def pattern = Pattern.compile("android.library.reference.(\\d+)\\s*=\\s*(.*)") - def matcher = pattern.matcher(manifestFile.getText()) - def projects = [] - while (matcher.find()) { - projects.add(":" + matcher.group(2).replace("/",":")) - } - return projects -} - -for (subproject in getProjectList()) { - include subproject -} - -include ':' |