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

Commit

Permalink
Add image viewing and downloading (#63)
Browse files Browse the repository at this point in the history
* Commence aggressive image caching

* Add glide toggle and css url parsing

* Add image hook and refractor activities

* Update version analytics

* Implemented imageactivity but glide will not load

* Create working image loader

* Finalize image view

* Finalize image view logic

* Remove custom cache experiment
  • Loading branch information
AllanWang authored Jul 17, 2017
1 parent c3f1fc6 commit d90cb9b
Show file tree
Hide file tree
Showing 59 changed files with 3,148 additions and 158 deletions.
6 changes: 6 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ dependencies {

compile "org.jsoup:jsoup:${JSOUP}"

compile "com.squareup.okhttp3:okhttp:${OKHTTP}"

compile "com.github.bumptech.glide:glide:${GLIDE}"
kapt "com.github.bumptech.glide:compiler:${GLIDE}"

Expand All @@ -158,4 +160,8 @@ dependencies {
compile("com.crashlytics.sdk.android:crashlytics:${CRASHLYTICS}@aar") {
transitive = true;
}

compile "com.davemorrissey.labs:subsampling-scale-image-view:${SCALE_IMAGE_VIEW}"

compile "com.sothree.slidinguppanel:library:${SLIDING_PANEL}"
}
9 changes: 9 additions & 0 deletions app/src/debug/res/xml/file_paths.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<paths>
<external-path
name="Frost_images"
path="Android/data/com.pitchedapps.frost.debug/files/Pictures" />
<external-path
name="Frost_public_images"
path="Pictures/Frost" />
</paths>
30 changes: 21 additions & 9 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,26 @@
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:name=".activities.MainActivity"
android:configChanges="orientation|screenSize|locale"
android:hardwareAccelerated="true"
android:label="@string/app_name"
android:theme="@style/FrostTheme" />
<activity
android:name=".WebOverlayActivity"
android:name=".activities.WebOverlayActivity"
android:hardwareAccelerated="true"
android:label="@string/app_name"
android:launchMode="singleTop"
android:theme="@style/FrostTheme.Overlay" />
android:theme="@style/FrostTheme.Overlay.Slide" />
<activity
android:name=".FrostWebActivity"
android:name=".activities.FrostWebActivity"
android:autoRemoveFromRecents="true"
android:exported="true"
android:hardwareAccelerated="true"
android:label="@string/frost_web"
android:launchMode="singleInstance"
android:taskAffinity="com.pitchedapps.frost.single.web"
android:theme="@style/FrostTheme.Overlay">
android:theme="@style/FrostTheme.Overlay.Slide">
<intent-filter
android:autoVerify="true"
tools:ignore="UnusedAttribute">
Expand Down Expand Up @@ -107,17 +107,20 @@
</activity>

<activity
android:name=".LoginActivity"
android:name=".activities.LoginActivity"
android:theme="@style/FrostTheme" />
<activity
android:name=".SelectorActivity"
android:name=".activities.SelectorActivity"
android:theme="@style/FrostTheme" />
<activity
android:name=".SettingsActivity"
android:name=".activities.SettingsActivity"
android:theme="@style/FrostTheme.Settings" />
<activity
android:name=".AboutActivity"
android:name=".activities.AboutActivity"
android:theme="@style/Kau.Translucent.About" />
<activity
android:name=".activities.ImageActivity"
android:theme="@style/FrostTheme.Overlay.Fade" />

<service
android:name=".services.NotificationService"
Expand All @@ -131,6 +134,15 @@
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
<provider
android:authorities="${applicationId}.provider"
android:name="android.support.v4.content.FileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
<meta-data
android:name="io.fabric.ApiKey"
android:value="18b3c223b96b7e7fc1fac372e36b8f4d49a193c7" />
Expand Down
Loading

0 comments on commit d90cb9b

Please sign in to comment.