Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Material design update #510

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7c30127
Adding Dockerfile for standardized build process
beavel Jul 1, 2018
282ecb0
Add back jars and config modifications to allow successful compile in…
beavel Jul 1, 2018
7f0eb98
Check for errors on release & don't fail;
beavel Jul 1, 2018
bdacbb4
Upgrading gradle to 4.4
beavel Jul 1, 2018
f0e7970
Updated Android Gradle plugin to 3.1.3
beavel Jul 1, 2018
46e5b57
Added exclusions for VS Code
beavel Jun 17, 2018
5c2c3de
Moved DropboxAPI.Entry to FileMetadata; only .rev property used from …
beavel Jun 17, 2018
a2bd965
Added .gitignore entry for dropbox.xml configuration
beavel Jun 17, 2018
47a1748
Updated auth activity for v2 SDK
beavel Jun 17, 2018
d22c9a8
Updated the auth flow for v2
beavel Jun 17, 2018
2ef362f
Added DropboxClientFactory from sample and wired up init
beavel Jun 18, 2018
42c6f50
Updated DropboxRemoteClient.getSubFolders() to use v2 FolderMetadata
beavel Jun 18, 2018
a9abb3f
Updated DropboxFileDownloader for v2
beavel Jun 18, 2018
bb47dbf
Updated uploader to v2
beavel Jun 18, 2018
1bbecc4
Fixed up build issues from missed variable renames
beavel Jun 18, 2018
f19faf5
Suppress error message
beavel Jun 18, 2018
de63407
Updated versions to make multiDex support easier;
beavel Jul 1, 2018
81110ee
Updated DropboxRemoteClient to fix app load & auth issue
beavel Jul 6, 2018
427813a
Added informational logging around login/client initialization
beavel Jul 6, 2018
02075ec
Fixed uploade method with sample for small files
beavel Jul 6, 2018
0bed830
Fixed root path BadRequest
beavel Jul 6, 2018
e92f4a6
Fixed error on initial load; client wasn't getting set
beavel Jul 6, 2018
b1fa3c9
Fixed string comparison to be on value instead of object
beavel Jul 6, 2018
434b703
Added new method that initialized and returned client in one step
beavel Jul 6, 2018
6695c6d
Added appKey handling so full key could be used in dropbox resource f…
beavel Jul 6, 2018
e19cd97
Update to Material Design
dae3 Sep 3, 2018
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
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git
.idea
.gradle
.settings

local.properties

**build/**

**/*.zip
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,11 @@ fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# VS Code
**/.project
**/.settings/
**/.classpath

# Exclude local configurations
**/dropbox.xml.idea
7 changes: 4 additions & 3 deletions .idea/misc.xml

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

1 change: 0 additions & 1 deletion .idea/modules.xml

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

1 change: 0 additions & 1 deletion ActionBar-PullToRefresh/.gitignore

This file was deleted.

34 changes: 0 additions & 34 deletions ActionBar-PullToRefresh/build.gradle

This file was deleted.

21 changes: 0 additions & 21 deletions ActionBar-PullToRefresh/proguard-rules.pro

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions ActionBar-PullToRefresh/src/main/AndroidManifest.xml

This file was deleted.

3 changes: 0 additions & 3 deletions ActionBar-PullToRefresh/src/main/res/values/strings.xml

This file was deleted.

This file was deleted.

31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# docker build -t android-build .

FROM openjdk:8

ENV SDK_URL="https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip" \
ANDROID_HOME="/usr/local/android-sdk" \
ANDROID_VERSION=26 \
ANDROID_BUILD_TOOLS_VERSION=26.0.2

WORKDIR /usr/src/app

RUN mkdir "$ANDROID_HOME" .android \
&& cd "$ANDROID_HOME" \
&& curl -o sdk.zip $SDK_URL \
&& unzip sdk.zip \
&& rm sdk.zip \
&& yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses

ENV PATH ${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools

RUN sdkmanager --update
RUN sdkmanager "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" \
"platforms;android-${ANDROID_VERSION}" \
"platform-tools"

COPY gradlew build.gradle ./
COPY gradle/ ./gradle/

RUN ./gradlew

COPY . .
58 changes: 36 additions & 22 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,38 @@ apply plugin: 'com.android.application'

android {

compileSdkVersion 26
buildToolsVersion "27.0.3"
compileSdkVersion 28
buildToolsVersion '28.0.3'

defaultConfig {

applicationId 'com.todotxt.todotxttouch'
minSdkVersion 14
targetSdkVersion 17
minSdkVersion 21
targetSdkVersion 28
versionCode 35
versionName "release35"

multiDexEnabled true

}

lintOptions {
checkReleaseBuilds true
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}

buildTypes {

debug {
resValue "string", "dropbox_consumer_key", "123"
resValue "string", "dropbox_consumer_secret", "456"
// resValue "string", "dropbox_consumer_key", "db-"
// resValue "string", "dropbox_consumer_secret", ""
}

release {
minifyEnabled true // Enables code shrinking for the release build type.
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// minifyEnabled true // Enables code shrinking for the release build type.
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
flavorDimensions "free"
Expand Down Expand Up @@ -63,17 +72,22 @@ android {


dependencies {
compile 'com.android.support:support-compat:26.1.0'
compile 'org.apache.james:apache-mime4j-james-utils:0.8.1'
compile 'org.apache.httpcomponents:httpmime:4.5.5'
compile 'com.github.cliftonlabs:json-simple:3.0.2'
compile 'com.googlecode.libphonenumber:libphonenumber:8.9.0'
compile 'oauth.signpost:signpost-commonshttp4:1.2.1.2'
compile 'oauth.signpost:signpost-core:1.2.1.2'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:26.1.0'
compile 'com.dropbox.core:dropbox-core-sdk:3.0.6'
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.15.0'
}
implementation 'com.android.support:support-compat:28.0.0'
implementation 'com.android.support:preference-v7:28.0.0'
implementation 'com.android.support:preference-v14:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'org.apache.james:apache-mime4j-james-utils:0.8.1'
implementation 'org.apache.httpcomponents:httpmime:4.5.5'
implementation 'com.github.cliftonlabs:json-simple:3.0.2'
implementation 'com.googlecode.libphonenumber:libphonenumber:8.9.0'
implementation 'oauth.signpost:signpost-commonshttp4:1.2.1.2'
implementation 'oauth.signpost:signpost-core:1.2.1.2'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.dropbox.core:dropbox-core-sdk:3.0.6'
// implementation 'net.sf.proguard:proguard-gradle:6.0.3'
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.15.0'
}
32 changes: 8 additions & 24 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ You should have received a copy of the GNU General Public License along with Tod
android:versionCode="56"
android:versionName="2.2">

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />

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

<supports-screens
Expand All @@ -47,11 +43,11 @@ You should have received a copy of the GNU General Public License along with Tod
<application
android:name=".TodoApplication"
android:allowBackup="true"
android:icon="@drawable/todotxt_touch_icon"
android:icon="@drawable/adaptive_icon"
android:label="@string/app_label"
android:theme="@style/Theme.TodoTxt">
android:theme="@style/TodoTxtTouchLight">
<activity
android:name="com.dropbox.client2.android.AuthActivity"
android:name="com.dropbox.core.android.AuthActivity"
android:configChanges="orientation|keyboard"
android:launchMode="singleTask">
<intent-filter>
Expand All @@ -75,7 +71,8 @@ You should have received a copy of the GNU General Public License along with Tod
</activity>
<activity
android:name=".Preferences"
android:label="@string/set_preferences" />
android:label="@string/set_preferences"
android:parentActivityName=".TodoTxtTouch"/>
<activity
android:name=".AddTask"
android:label="@string/addtask"
Expand Down Expand Up @@ -112,7 +109,9 @@ You should have received a copy of the GNU General Public License along with Tod
<activity
android:name=".HelpActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity android:name=".TodoTxtTouch">
<activity
android:name=".TodoTxtTouch"
android:theme="@style/TodoTxtTouchLight.MainActivity">
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
Expand All @@ -123,21 +122,6 @@ You should have received a copy of the GNU General Public License along with Tod
</activity>

<!-- Task list widget -->
<receiver
android:name=".TodoWidgetProvider"
android:enabled="@bool/below_api_14"
android:label="@string/app_label">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<intent-filter>
<action android:name="com.todotxt.todotxttouch.APPWIDGET_UPDATE" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/todo_widget_provider" />
</receiver>
<receiver android:name=".PeriodicSyncStarter">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
Expand Down
Loading