Skip to content

Commit

Permalink
Merge branch 'Jawnnypoo-updates'
Browse files Browse the repository at this point in the history
* Jawnnypoo-updates:
  chore: upgrade constraint layout
  api instead of compileOnly for base library within Rx version
  Make sure we get the ACTION_BOOT_COMPLETE action in the broadcast receiver
  Update libraries and dependencies
  • Loading branch information
KG (IC-C02Q908RFVH9) committed Sep 5, 2018
2 parents 8388eb5 + 5d078e7 commit a59e525
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 106 deletions.
22 changes: 11 additions & 11 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
applicationId "com.instacart.library.truetime"
minSdkVersion rootProject.ext.minSdkVersion
minSdkVersion 14
targetSdkVersion rootProject.ext.targetSdkVersion

versionCode rootProject.ext.versionCode
Expand All @@ -28,16 +27,17 @@ repositories {
}
}

ext {
butterknifeVersion = '8.8.1'
}
dependencies {
compile project(path: ':library')
compile project(path: ':library-extension-rx')
implementation project(path: ':library')
implementation project(path: ':library-extension-rx')
// compile 'com.github.instacart.truetime-android:library-extension-rx:master-SNAPSHOT'

compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.jakewharton:butterknife:7.0.1'
compile "io.reactivex.rxjava2:rxandroid:2.0.1"

testCompile 'junit:junit:4.12'

implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation "com.jakewharton:butterknife:$butterknifeVersion"
annotationProcessor "com.jakewharton:butterknife-compiler:$butterknifeVersion"
implementation "io.reactivex.rxjava2:rxandroid:2.0.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
import java.util.Locale;
import java.util.TimeZone;

import butterknife.Bind;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class Sample2Activity
extends AppCompatActivity {

@Bind(R.id.tt_btn_refresh) Button refreshBtn;
@Bind(R.id.tt_time_gmt) TextView timeGMT;
@Bind(R.id.tt_time_pst) TextView timePST;
@Bind(R.id.tt_time_device) TextView timeDeviceTime;
@BindView(R.id.tt_btn_refresh) Button refreshBtn;
@BindView(R.id.tt_time_gmt) TextView timeGMT;
@BindView(R.id.tt_time_pst) TextView timePST;
@BindView(R.id.tt_time_device) TextView timeDeviceTime;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
import java.util.Locale;
import java.util.TimeZone;

import butterknife.Bind;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SampleActivity
extends AppCompatActivity {

@Bind(R.id.tt_btn_refresh) Button refreshBtn;
@Bind(R.id.tt_time_gmt) TextView timeGMT;
@Bind(R.id.tt_time_pst) TextView timePST;
@Bind(R.id.tt_time_device) TextView timeDeviceTime;
@BindView(R.id.tt_btn_refresh) Button refreshBtn;
@BindView(R.id.tt_time_gmt) TextView timeGMT;
@BindView(R.id.tt_time_pst) TextView timePST;
@BindView(R.id.tt_time_device) TextView timeDeviceTime;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down

This file was deleted.

15 changes: 6 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}

ext {
minSdkVersion = 9
targetSdkVersion = 26
compileSdkVersion = 26
buildToolsVersion = '26.0.0'
targetSdkVersion = 27
compileSdkVersion = 27

versionCode = 10
versionName = '3.3'
}

allprojects {
repositories {
google()
jcenter()
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Apr 06 13:38:40 PDT 2017
#Fri Jul 20 01:49:32 CDT 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
10 changes: 2 additions & 8 deletions library-extension-rx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apply plugin: 'com.github.dcendents.android-maven'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand All @@ -28,13 +27,8 @@ android {
}

dependencies {
compile project(path: ':library')
compile 'io.reactivex.rxjava2:rxjava:2.1.14'

androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'
api 'io.reactivex.rxjava2:rxjava:2.1.14'
api project(path: ':library')
}

group='com.github.instacart'

This file was deleted.

This file was deleted.

6 changes: 1 addition & 5 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apply plugin: 'com.github.dcendents.android-maven'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand All @@ -28,10 +27,7 @@ android {
}

dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'junit:junit:4.12'

}

group='com.github.instacart'
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class BootCompletedBroadcastReceiver
@Override
public void onReceive(Context context, Intent intent) {
TrueLog.i(TAG, "---- clearing TrueTime disk cache as we've detected a boot");
TrueTime.clearCachedInfo();
if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
TrueTime.clearCachedInfo();
}
}
}

0 comments on commit a59e525

Please sign in to comment.