-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created library module and directed dependencies to Maven repo
- Loading branch information
1 parent
5d318f5
commit 90c3677
Showing
224 changed files
with
130 additions
and
139 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,16 @@ | ||
import java.util.regex.Pattern | ||
|
||
// | ||
// build.gradle in TeamCode | ||
// | ||
// Most of the definitions for building your module reside in a common, shared | ||
// file 'build.common.gradle'. Being factored in this way makes it easier to | ||
// integrate updates to the FTC into your code. If you really need to customize | ||
// the build definitions, you can place those customizations in this file, but | ||
// please think carefully as to whether such customizations are really necessary | ||
// before doing so. | ||
|
||
// Custom definitions may go here | ||
|
||
// Include common definitions from above. | ||
//apply from: '../build.common.gradle' | ||
|
||
apply plugin: 'com.android.library' | ||
|
||
android { | ||
|
||
compileSdkVersion 23 | ||
buildToolsVersion '25.0.3' | ||
|
||
signingConfigs { | ||
debug { | ||
keyAlias 'androiddebugkey' | ||
keyPassword 'android' | ||
storeFile file('../libs/ftc.debug.keystore') | ||
storePassword 'android' | ||
} | ||
/** | ||
* Top-level build file for ftc_app project. | ||
* | ||
* It is extraordinarily rare that you will ever need to edit this file. | ||
*/ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
|
||
defaultConfig { | ||
minSdkVersion 19 | ||
targetSdkVersion 19 | ||
|
||
/** | ||
* We keep the versionCode and versionName of robot controller applications in sync with | ||
* the master information published in the AndroidManifest.xml file of the FtcRobotController | ||
* module. This helps avoid confusion that might arise from having multiple versions of | ||
* a robot controller app simultaneously installed on a robot controller device. | ||
* | ||
* We accomplish this with the help of a funky little Groovy script that maintains that | ||
* correspondence automatically. | ||
* | ||
* @see <a href="http://developer.android.com/tools/building/configuring-gradle.html">Configure Your Build</a> | ||
* @see <a href="http://developer.android.com/tools/publishing/versioning.html">Versioning Your App</a> | ||
*/ | ||
def manifestFile = file('../FtcRobotController/src/main/AndroidManifest.xml'); | ||
def manifestText = manifestFile.getText() | ||
// | ||
def vCodePattern = Pattern.compile("versionCode=\"(\\d+(\\.\\d+)*)\"") | ||
def matcher = vCodePattern.matcher(manifestText) | ||
matcher.find() | ||
def vCode = Integer.parseInt(matcher.group(1)) | ||
// | ||
def vNamePattern = Pattern.compile("versionName=\"(.*)\"") | ||
matcher = vNamePattern.matcher(manifestText); | ||
matcher.find() | ||
def vName = matcher.group(1) | ||
// | ||
versionCode vCode | ||
versionName vName | ||
} | ||
|
||
// Advanced user code might just want to use Vuforia directly, so we set up the libs as needed | ||
buildTypes { | ||
release { | ||
debuggable true | ||
ndk { | ||
abiFilters "armeabi-v7a" | ||
} | ||
} | ||
debug { | ||
debuggable true | ||
ndk { | ||
abiFilters "armeabi-v7a" | ||
} | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_7 | ||
targetCompatibility JavaVersion.VERSION_1_7 | ||
} | ||
|
||
sourceSets.main { | ||
jni.srcDirs = [] | ||
jniLibs.srcDir "../libs" | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:2.3.3' | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' | ||
} | ||
} | ||
|
||
repositories { | ||
flatDir { | ||
dirs '../libs' | ||
} | ||
jcenter() | ||
} | ||
|
||
apply from: 'build.release.gradle' |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// | ||
// build.gradle in TeamCode | ||
// | ||
// Most of the definitions for building your module reside in a common, shared | ||
// file 'build.common.gradle'. Being factored in this way makes it easier to | ||
// integrate updates to the FTC into your code. If you really need to customize | ||
// the build definitions, you can place those customizations in this file, but | ||
// please think carefully as to whether such customizations are really necessary | ||
// before doing so. | ||
|
||
// Custom definitions may go here | ||
|
||
// Include common definitions from above. | ||
//apply from: '../build.common.gradle' | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
|
||
group = 'com.github.Pattonville-Robotics' | ||
|
||
android { | ||
|
||
compileSdkVersion 26 | ||
buildToolsVersion '26.0.2' | ||
|
||
signingConfigs { | ||
debug { | ||
keyAlias 'androiddebugkey' | ||
keyPassword 'android' | ||
storeFile file('../libs/ftc.debug.keystore') | ||
storePassword 'android' | ||
} | ||
} | ||
|
||
defaultConfig { | ||
minSdkVersion 19 | ||
targetSdkVersion 26 | ||
} | ||
|
||
// Advanced user code might just want to use Vuforia directly, so we set up the libs as needed | ||
buildTypes { | ||
release { | ||
debuggable true | ||
ndk { | ||
abiFilters "armeabi-v7a" | ||
} | ||
} | ||
debug { | ||
debuggable true | ||
ndk { | ||
abiFilters "armeabi-v7a" | ||
} | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_7 | ||
targetCompatibility JavaVersion.VERSION_1_7 | ||
} | ||
|
||
sourceSets.main { | ||
jni.srcDirs = [] | ||
jniLibs.srcDir "../libs" | ||
} | ||
} | ||
|
||
repositories { | ||
flatDir { | ||
dirs '../libs' | ||
} | ||
jcenter() | ||
maven { | ||
url "https://raw.githubusercontent.com/Pattonville-Robotics/ftc-lib-repo/mvn-repo/" | ||
} | ||
} | ||
|
||
apply from: 'build.release.gradle' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
dependencies { | ||
compile 'org.first.ftc:inspection:3.4' | ||
compile 'org.first.ftc:blocks:3.4' | ||
compile 'org.first.ftc:robotcore:3.4' | ||
compile 'org.first.ftc:hardware:3.4' | ||
compile 'org.first.ftc:ftc-common:3.4' | ||
compile 'org.first.ftc:analytics:3.4' | ||
compile 'org.first.ftc:wireless-p2p:3.4' | ||
|
||
// https://mvnrepository.com/artifact/org.apache.commons/commons-math3 | ||
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1' | ||
|
||
// https://mvnrepository.com/artifact/com.annimon/stream | ||
compile group: 'com.annimon', name: 'stream', version: '1.1.8' | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
Oops, something went wrong.