Add dex counter, fixed new bugs in bookmarks, fixed bug in bookmark sync, todo fix downloading bug
This commit is contained in:
parent
5d55e480c9
commit
159053841a
@ -1,5 +1,6 @@
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'com.neenbedankt.android-apt'
|
apply plugin: 'com.neenbedankt.android-apt'
|
||||||
|
apply plugin: 'com.getkeepsafe.dexcount'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 23
|
compileSdkVersion 23
|
||||||
@ -43,6 +44,14 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dexcount {
|
||||||
|
includeClasses = false
|
||||||
|
includeFieldCount = false
|
||||||
|
printAsTree = true
|
||||||
|
orderByMethodCount = true
|
||||||
|
verbose = false
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.android.support:palette-v7:23.0.1'
|
compile 'com.android.support:palette-v7:23.0.1'
|
||||||
compile 'com.android.support:appcompat-v7:23.0.1'
|
compile 'com.android.support:appcompat-v7:23.0.1'
|
||||||
@ -54,7 +63,6 @@ dependencies {
|
|||||||
apt 'com.google.dagger:dagger-compiler:2.0.1'
|
apt 'com.google.dagger:dagger-compiler:2.0.1'
|
||||||
compile 'com.jakewharton:butterknife:7.0.1'
|
compile 'com.jakewharton:butterknife:7.0.1'
|
||||||
|
|
||||||
// Only Lightning Plus needs the proxy libraries
|
|
||||||
compile 'net.i2p.android:client:0.7'
|
compile 'net.i2p.android:client:0.7'
|
||||||
|
|
||||||
// Use the following code to update the libnetcipher submodule
|
// Use the following code to update the libnetcipher submodule
|
||||||
@ -66,4 +74,5 @@ dependencies {
|
|||||||
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
|
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
|
||||||
|
|
||||||
provided 'javax.annotation:jsr250-api:1.0'
|
provided 'javax.annotation:jsr250-api:1.0'
|
||||||
|
|
||||||
}
|
}
|
File diff suppressed because it is too large
Load Diff
@ -72,7 +72,7 @@ public class BookmarkLocalSync {
|
|||||||
if (!isChromeSupported()) {
|
if (!isChromeSupported()) {
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
Cursor cursor = getStockCursor();
|
Cursor cursor = getChromeCursor();
|
||||||
try {
|
try {
|
||||||
if (cursor != null) {
|
if (cursor != null) {
|
||||||
for (int n = 0; n < cursor.getColumnCount(); n++) {
|
for (int n = 0; n < cursor.getColumnCount(); n++) {
|
||||||
|
@ -257,11 +257,8 @@ public class LightningDialogBuilder {
|
|||||||
eventBus.post(new BrowserEvents.OpenUrlInCurrentTab(url));
|
eventBus.post(new BrowserEvents.OpenUrlInCurrentTab(url));
|
||||||
break;
|
break;
|
||||||
case DialogInterface.BUTTON_NEUTRAL:
|
case DialogInterface.BUTTON_NEUTRAL:
|
||||||
if (Build.VERSION.SDK_INT > 8) {
|
|
||||||
// Should be better to send an event on the bus here
|
|
||||||
Utils.downloadFile(activity, url,
|
Utils.downloadFile(activity, url,
|
||||||
userAgent, "attachment");
|
userAgent, "attachment");
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ import android.webkit.URLUtil;
|
|||||||
|
|
||||||
import acr.browser.lightning.R;
|
import acr.browser.lightning.R;
|
||||||
import acr.browser.lightning.constant.Constants;
|
import acr.browser.lightning.constant.Constants;
|
||||||
|
import acr.browser.lightning.utils.PermissionsManager;
|
||||||
|
|
||||||
public class LightningDownloadListener implements DownloadListener {
|
public class LightningDownloadListener implements DownloadListener {
|
||||||
|
|
||||||
@ -21,6 +22,7 @@ public class LightningDownloadListener implements DownloadListener {
|
|||||||
mContext = context;
|
mContext = context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO implement permissions for downloading
|
||||||
@Override
|
@Override
|
||||||
public void onDownloadStart(final String url, final String userAgent,
|
public void onDownloadStart(final String url, final String userAgent,
|
||||||
final String contentDisposition, final String mimetype, long contentLength) {
|
final String contentDisposition, final String mimetype, long contentLength) {
|
||||||
|
@ -298,7 +298,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
|
|||||||
if (item.isFolder()) {
|
if (item.isFolder()) {
|
||||||
mBookmarksDialogBuilder.showBookmarkFolderLongPressedDialog(getContext(), item);
|
mBookmarksDialogBuilder.showBookmarkFolderLongPressedDialog(getContext(), item);
|
||||||
} else {
|
} else {
|
||||||
mBookmarksDialogBuilder.showLongPressLinkDialog(getContext(), item.getUrl());
|
mBookmarksDialogBuilder.showLongPressedDialogForBookmarkUrl(getContext(), item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -609,10 +609,10 @@ public class LightningView {
|
|||||||
}
|
}
|
||||||
} else if (currentUrl.endsWith(Constants.BOOKMARKS_FILENAME)) {
|
} else if (currentUrl.endsWith(Constants.BOOKMARKS_FILENAME)) {
|
||||||
if (url != null) {
|
if (url != null) {
|
||||||
bookmarksDialogBuilder.showLongPressLinkDialog(mActivity, url);
|
bookmarksDialogBuilder.showLongPressedDialogForBookmarkUrl(mActivity, url);
|
||||||
} else if (result != null && result.getExtra() != null) {
|
} else if (result != null && result.getExtra() != null) {
|
||||||
final String newUrl = result.getExtra();
|
final String newUrl = result.getExtra();
|
||||||
bookmarksDialogBuilder.showLongPressLinkDialog(mActivity, newUrl);
|
bookmarksDialogBuilder.showLongPressedDialogForBookmarkUrl(mActivity, newUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
@ -6,6 +5,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:1.3.1'
|
classpath 'com.android.tools.build:gradle:1.3.1'
|
||||||
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.7'
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.7'
|
||||||
|
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.2.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user