Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to RxJava2 and Implemented Lambdas Where Possible #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 19 additions & 37 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
}
}

repositories {
mavenCentral()
maven { url "http://dl.bintray.com/pixplicity/android" }
}

apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'me.tatarka.retrolambda'

def buildTime() {
return new Date().format("yyyy-MM-dd-HH:mm", TimeZone.getTimeZone("Canada/Eastern"))
Expand All @@ -25,8 +7,8 @@ def buildTime() {
def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()

android {
compileSdkVersion 25
buildToolsVersion "24.0.3"
compileSdkVersion 26
buildToolsVersion "26.0.2"

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -35,8 +17,8 @@ android {

defaultConfig {
applicationId "com.stetcho.rxwifip2pmanager.app"
minSdkVersion 14
targetSdkVersion 25
minSdkVersion 24
targetSdkVersion 26
versionCode 1
versionName "1.0.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -46,7 +28,7 @@ android {

buildTypes {
debug {
versionNameSuffix "-" + gitSha + "-" + buildTime();
versionNameSuffix "-" + gitSha + "-" + buildTime()
applicationIdSuffix ".debug"
debuggable true
jniDebuggable true
Expand Down Expand Up @@ -74,30 +56,30 @@ android {
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
testImplementation 'junit:junit:4.12'

compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support:design:25.0.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'

// LeakCanary
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'

compile project(':library')
implementation project(':library')

// SVG lib
compile 'com.pixplicity.sharp:library:1.0.2@aar'
implementation 'com.pixplicity.sharp:library:1.1.0'

// Butterknife
compile 'com.jakewharton:butterknife:8.1.0'
apt 'com.jakewharton:butterknife-compiler:8.1.0'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

// RxJava
compile 'io.reactivex:rxjava:1.2.1'
compile 'io.reactivex:rxandroid:1.2.1'
implementation 'io.reactivex.rxjava2:rxjava:2.1.4'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
}
7 changes: 0 additions & 7 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.stetcho.rxwifip2pmanager.app">

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>

<uses-feature
android:name="android.hardware.wifi.direct"
android:required="true"/>

<application
android:name=".framework.AndroidApplication"
android:allowBackup="true"
Expand Down

This file was deleted.

This file was deleted.

Loading