Skip to content

Commit aab4ef5

Browse files
author
Federico Iosue
committed
Reverted all changed introduced by PR #295 and #298
They'll be re-add by merging a specific feature branch
1 parent 10825f2 commit aab4ef5

60 files changed

Lines changed: 1534 additions & 563 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ android:
1818
- tools
1919

2020
# The BuildTools version used by your project
21-
- build-tools-23.0.2
21+
- build-tools-24.0.2
2222

2323
# The SDK version used to compile your project
24-
- android-23
24+
- android-24
2525

2626
# Additional components
2727
#- extra-google-google_play_services

build.gradle

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,18 @@ buildscript {
2121
jcenter()
2222
}
2323
dependencies {
24-
classpath 'com.android.tools.build:gradle:2.2.2'
24+
classpath 'com.android.tools.build:gradle:2.2.1'
2525
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
2626
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
2727
}
2828
// Exclude the version that the android plugin depends on.
2929
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
3030
}
3131

32+
plugins {
33+
id "org.sonarqube" version "2.0.1"
34+
}
35+
3236
allprojects {
3337
repositories {
3438
mavenLocal()
@@ -38,9 +42,9 @@ allprojects {
3842
}
3943
}
4044

41-
apply plugin: "sonar-runner"
42-
sonarRunner {
43-
sonarProperties {
45+
apply plugin: 'org.sonarqube'
46+
sonarqube {
47+
properties {
4448
property "sonar.host.url", "http://localhost:9000"
4549
property "sonar.analysis.mode", "incremental"
4650
property 'sonar.sourceEncoding', 'UTF-8'
@@ -49,8 +53,8 @@ sonarRunner {
4953
}
5054
}
5155
subprojects {
52-
sonarRunner {
53-
sonarProperties {
56+
sonarqube {
57+
properties {
5458
properties["sonar.sources"] += "omniNotes/src/main/java"
5559
}
5660
}

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
#
1717

1818
MIN_SDK=14
19-
TARGET_SDK=23
20-
VERSION_NAME=5.3.0
21-
VERSION_CODE=221
19+
TARGET_SDK=24
20+
VERSION_NAME=6.0
21+
VERSION_CODE=229
2222
PACKAGE=it.feio.android.omninotes
2323

2424
# The following properties are empty defaults to allow build and can EVENTUALLY be overridden to allow:

gradle/wrapper/gradle-wrapper.properties

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
#Thu Dec 01 18:50:36 CET 2016
1+
#
2+
# Copyright (C) 2015 Federico Iosue (federico.iosue@gmail.com)
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
#
17+
18+
#Tue Sep 06 19:09:13 CEST 2016
219
distributionBase=GRADLE_USER_HOME
320
distributionPath=wrapper/dists
421
zipStoreBase=GRADLE_USER_HOME

omniNotes/build.gradle

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ apply plugin: 'me.tatarka.retrolambda'
2020

2121
android {
2222

23-
compileSdkVersion 25
24-
buildToolsVersion "25.0.1"
23+
compileSdkVersion 24
24+
buildToolsVersion "24.0.2"
2525
defaultConfig {
2626
applicationId project.PACKAGE
2727
minSdkVersion project.MIN_SDK
@@ -74,8 +74,6 @@ dependencies {
7474
}
7575
compile 'com.github.gabrielemariotti.changeloglib:changelog:2.0.0'
7676
compile 'be.billington.calendar.recurrencepicker:library:1.1.1'
77-
compile 'com.android.support:appcompat-v7:25.0.1'
78-
compile 'com.android.support:design:25.0.1'
7977
compile 'de.greenrobot:eventbus:2.4.0'
8078
compile 'com.pushbullet:android-extensions:1.0.4@aar'
8179
compile 'com.getbase:floatingactionbutton:1.10.1'
@@ -108,6 +106,11 @@ dependencies {
108106
compile 'com.github.federicoiosue:Omni-Notes-Commons:develop-SNAPSHOT'
109107
compile 'com.github.federicoiosue:checklistview:3.1.3'
110108
compile 'com.github.federicoiosue:pixlui:2.6'
109+
110+
compile 'com.android.support:appcompat-v7:24.2.1'
111+
compile 'com.android.support:cardview-v7:24.2.1'
112+
compile 'com.android.support:recyclerview-v7:24.2.1'
113+
compile 'com.android.support:design:24.2.1'
111114
}
112115

113116
android.buildTypes.each { type ->

omniNotes/src/main/java/it/feio/android/omninotes/BaseActivity.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@
2828
import android.os.Build;
2929
import android.os.Bundle;
3030
import android.os.Handler;
31+
import android.support.design.widget.CollapsingToolbarLayout;
3132
import android.support.annotation.NonNull;
3233
import android.support.v4.app.FragmentTransaction;
3334
import android.support.v4.content.LocalBroadcastManager;
3435
import android.support.v7.app.ActionBarActivity;
36+
import android.support.v7.app.AppCompatActivity;
3537
import android.util.Log;
3638
import android.view.*;
3739
import android.widget.EditText;
@@ -49,12 +51,12 @@
4951
import java.util.List;
5052

5153
@SuppressLint("Registered")
52-
public class BaseActivity extends ActionBarActivity {
54+
public class BaseActivity extends AppCompatActivity {
5355

5456
protected final int TRANSITION_VERTICAL = 0;
5557
protected final int TRANSITION_HORIZONTAL = 1;
5658

57-
protected SharedPreferences prefs;
59+
public SharedPreferences prefs;
5860

5961
protected String navigation;
6062
protected String navigationTmp; // used for widget navigation
@@ -186,13 +188,19 @@ protected void setActionBarTitle(String title) {
186188
int actionBarTitle = Resources.getSystem().getIdentifier("action_bar_title", "id", "android");
187189
android.widget.TextView actionBarTitleView = (android.widget.TextView) getWindow().findViewById(actionBarTitle);
188190
Typeface font = Typeface.createFromAsset(getAssets(), "fonts/Roboto-Regular.ttf");
189-
if (actionBarTitleView != null) {
190-
actionBarTitleView.setTypeface(font);
191-
}
191+
//if (actionBarTitleView != null) {
192+
// actionBarTitleView.setTypeface(font);
193+
//}
192194

193-
if (getSupportActionBar() != null) {
194-
getSupportActionBar().setTitle(title);
195-
}
195+
// CollapsingToolbarLayout collapsingToolbar =
196+
// (CollapsingToolbarLayout) findViewById(R.id.collapsing_toolbar);
197+
// collapsingToolbar.setCollapsedTitleTypeface(font);
198+
// collapsingToolbar.setTitle("Title");
199+
200+
201+
//if (getSupportActionBar() != null) {
202+
// getSupportActionBar().setTitle(title);
203+
//}
196204
}
197205

198206

0 commit comments

Comments
 (0)