Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Update depencences #194
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmigloz committed Sep 23, 2017
1 parent fc0cae6 commit 44ce2aa
Show file tree
Hide file tree
Showing 16 changed files with 213 additions and 159 deletions.
92 changes: 27 additions & 65 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Created by https://www.gitignore.io/api/android,intellij,opencv,gradle

### Android ###
Expand All @@ -21,6 +20,15 @@ out/
.gradle/
build/

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Ignore Gradle GUI config
gradle-app.setting

# Keystore files
app/keys

# Local configuration file (sdk path, etc)
local.properties

Expand All @@ -36,74 +44,43 @@ proguard/
# Android Studio captures folder
captures/

# Intellij
*.iml
.idea/workspace.xml
.idea/libraries
# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# Keystore files
*.jks
# Freeline
freeline.py
freeline/
freeline_project_description.json

### Android Patch ###
gen-external-apklibs


### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems

# User-specific stuff:
.idea/
#.idea/workspace.xml
#.idea/tasks.xml
#.idea/dictionaries
#.idea/vcs.xml
#.idea/jsLibraryMappings.xml

# Sensitive or high-churn files:
#.idea/dataSources.ids
#.idea/dataSources.xml
#.idea/dataSources.local.xml
#.idea/sqlDataSources.xml
#.idea/dynamic.xml
#.idea/uiDesigner.xml
.idea/**/workspace.xml
.idea/**/tasks.xml

# Gradle:
#.idea/gradle.xml
#.idea/libraries

# Mongo Explorer plugin:
#.idea/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
/out/
*.iml
.idea/**/gradle.xml
.idea/**/misc.xml
.idea/**/libraries

# mpeltonen/sbt-idea plugin
.idea_modules/
# CMake
cmake-build-debug/

# JIRA plugin
atlassian-ide-plugin.xml
# Sonarlint plugin
.idea/sonarlint

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

### Intellij Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721

# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr


### OpenCV ###
#OpenCV for Mac and Linux
#build and release folders
Expand All @@ -113,19 +90,4 @@ fabric.properties
*/cmake_install.cmake
.DS_Store


### Gradle ###
.gradle
/build/

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Cache of project
.gradletasknamecache

# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties
# End of https://www.gitignore.io/api/android,intellij,opencv,gradle
22 changes: 22 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/copyright/GPLv3.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/dictionaries/davidmigloz.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 75 additions & 29 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,38 +20,61 @@ apply plugin: 'com.android.application'
apply plugin: 'jacoco-android'
apply plugin: 'realm-android'


// Get signing config
def keystorePropertiesFile = rootProject.file("app/keys/keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))

android {

compileSdkVersion 25
buildToolsVersion '25.0.0'
buildToolsVersion '25.0.3'

defaultConfig {
applicationId "com.davidmiguel.gobees"

minSdkVersion 19
targetSdkVersion 25

versionCode 11
versionName "v1.1"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

signingConfigs {
relase {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}

buildTypes {
debug {
testCoverageEnabled true
minifyEnabled true
// Uses new built-in shrinker http://tools.android.com/tech-docs/new-build-system/built-in-shrinker
useProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
testProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguardTest-rules.pro'
}
release {
minifyEnabled true
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
shrinkResources true // Remove unused resources
minifyEnabled true // Enable proguard (shrinks, optimizes and obfuscates code)
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-guava.pro',
'proguard-mpandroidchart.pro',
'proguard-rounded-image-view.pro',
'proguard-realm.pro',
'proguard-rules.pro'
testProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguardTest-rules.pro'
signingConfig signingConfigs.relase
}
}

buildTypes.each {
// OpenWeatherMap key (stored in [USER_HOME]/.gradle/gradle.properties)
it.buildConfigField 'String', 'OPEN_WEATHER_MAP_API_KEY', OpenWeatherMapApiKey
}

// Mock: stubs out the service layer completely and returns a fake dataset
// Prod: production version
productFlavors {
Expand All @@ -62,23 +85,32 @@ android {

}
}

// Remove mockRelease as it's not needed.
android.variantFilter { variant ->
if (variant.buildType.name.equals('release')
&& variant.getFlavors().get(0).name.equals('mock')) {
variant.setIgnore(true);
}
}

// android.jar methods return either null or zero, not throw exceptions
testOptions {
unitTests.returnDefaultValues = true
}

// Always show the result of every unit test, even if it passes
testOptions.unitTests.all {
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
}
}

// Explicitly tells Gradle which version shall be compiled (due to Espresso conflicts)
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.2'
}

// Lint checks
lintOptions {
disable 'SetJavaScriptEnabled', 'MissingTranslation'
Expand All @@ -93,24 +125,42 @@ sourceSets {

dependencies {

// App's dependencies, including test
compile 'com.android.support:recyclerview-v7:25.1.1'
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.android.support:design:25.1.1'
compile 'com.android.support:cardview-v7:25.1.1'
compile 'com.android.support:support-v4:25.1.1'
//----------------------------------------------------------------------------------------------
// App Dependencies
//----------------------------------------------------------------------------------------------

// Support libraries : https://developer.android.com/topic/libraries/support-library/packages.html
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
// Google Location and Activity Recognition : https://developers.google.com/android/guides/setup
compile 'com.google.android.gms:play-services-location:11.0.4'
// OpenCV (computer vision) : https://github.com/davidmigloz/opencv-android-gradle-repo/
compile 'com.github.davidmigloz:opencv-android-gradle-repo:3.2.0'
compile 'com.google.android.gms:play-services-location:10.0.1'
compile 'com.google.guava:guava:20.0'
// Guava (Google Core Libraries) : https://github.com/google/guava
compile 'com.google.guava:guava:23.0-android'
// RoundedImageView (ImageView that supports rounded corners) : https://github.com/vinc3m1/RoundedImageView
compile 'com.makeramen:roundedimageview:2.3.0'
compile 'com.github.PhilJay:MPAndroidChart:v3.0.1'
// MPAndroidChart (chart view / graph view) : https://github.com/PhilJay/MPAndroidChart
compile 'com.github.PhilJay:MPAndroidChart:v3.0.2'
// VNTNumberPickerPreference (NumberPicker Preference) : https://github.com/vanniktech/VNTNumberPickerPreference
compile 'com.vanniktech:vntnumberpickerpreference:1.0.0'
// Permission Utils (check runtime permissions) : https://github.com/rebus007/PermissionUtils
compile 'rebus:permission-utils:1.0.6'
// Dependencies for local unit tests

//----------------------------------------------------------------------------------------------
// Testing Dependencies
//----------------------------------------------------------------------------------------------

// JUnit (unit testing framework) : http://junit.org/junit4/
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-all:2.0.2-beta'
testCompile 'org.powermock:powermock-module-junit4:1.6.6'
testCompile 'org.powermock:powermock-api-mockito:1.6.6'
// Mockito (mocking framework) : http://site.mockito.org/
testCompile 'org.mockito:mockito-core:2.10.0'
// PowerMock (mocking framework) : https://github.com/powermock/powermock
testCompile "org.powermock:powermock-module-junit4:1.7.1"
testCompile "org.powermock:powermock-api-mockito2:1.7.1"
testCompile 'org.slf4j:slf4j-api:1.7.22'
testCompile 'org.slf4j:slf4j-log4j12:1.7.22'
testCompile 'log4j:log4j:1.2.17'
Expand All @@ -126,11 +176,8 @@ dependencies {
androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.2.2'
androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.2'
// Resolve conflicts between main and test APK:
androidTestCompile 'com.android.support:support-annotations:25.1.1'
androidTestCompile 'com.android.support:support-v4:25.1.1'
androidTestCompile 'com.android.support:recyclerview-v7:25.1.1'
androidTestCompile 'com.android.support:appcompat-v7:25.1.1'
androidTestCompile 'com.android.support:design:25.1.1'
androidTestCompile 'com.android.support:support-annotations:25.3.1'

}

/*
Expand Down Expand Up @@ -163,7 +210,6 @@ afterEvaluate {

/*
SonarQube configuration.
*/
sonarqube {
properties {
Expand All @@ -178,4 +224,4 @@ sonarqube {
property "sonar.java.coveragePlugin", "jacoco"
property "sonar.jacoco.reportMissing.force.zero", true
}
}
}
Loading

0 comments on commit 44ce2aa

Please sign in to comment.