Skip to content

Commit

Permalink
Dev 1.2.2 - Add framework for messenger notifications (AllanWang#47)
Browse files Browse the repository at this point in the history
* Update KAU to v2.0

* Only inject theme for facebook and inject js after

* Clean up menu loading logic

* Add path null check

* Remove .idea files

* Add url formatter testers

* Update tests and check url nullability - Fixes

* Create instant messaging parser

* Shorted notification log and remove unnecessary null checks

* Make migration buildable

* Test message parser

* finalize messenger notifs for now
  • Loading branch information
AllanWang committed Jul 13, 2017
1 parent de34d09 commit 91119de
Show file tree
Hide file tree
Showing 45 changed files with 234 additions and 487 deletions.
8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
/.idea
.DS_Store
/build
/captures
.externalNativeBuild
*.min.css
.sass-cache/
files/gplay-keys.json
files/play.keystore
files/play.properties
files/test.keystore
files/update-dev.sh
22 changes: 0 additions & 22 deletions .idea/compiler.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/copyright/profiles_settings.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/encodings.xml

This file was deleted.

18 changes: 0 additions & 18 deletions .idea/gradle.xml

This file was deleted.

71 changes: 0 additions & 71 deletions .idea/markdown-navigator.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/markdown-navigator/profiles_settings.xml

This file was deleted.

78 changes: 0 additions & 78 deletions .idea/misc.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ script:
- cd $TRAVIS_BUILD_DIR/
- printf "Starting script\n"
- ./gradlew --quiet androidGitVersion
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then ./gradlew publishRelease; else ./gradlew assembleReleaseTest; fi
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then ./gradlew publishRelease; else ./gradlew testReleaseUnitTest assembleReleaseTest; fi
notifications:
email: false
slack:
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Frost-for-Facebook


<a href='https://play.google.com/store/apps/details?id=com.pitchedapps.frost&utm_source=github'><img alt='Get it on Google Play' width="30%" src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png'/></a>

Frost is a third party Facebook wrapper geared towards design and functionality.
It contains many features, including:
* Support for multiple accounts and fast switching
* Full theming across all activities
* Overlaying browser to read posts and get right back to your previous task
* [WIP] Notifications and filtering
* [WIP] Full customization on tab and drawer layouts
* Extensive notification support, with bundling, filtering, battery friendly scheduling, icons, and multi user support
* Context menu from any link through long press
* Reactive based loading
* The transparency of open sourced development
13 changes: 5 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ android {
prefix 'v'
}

playAccountConfigs {
defaultAccountConfig {
jsonFile = file('../files/gplay-keys.json')
}
}

defaultConfig {
applicationId "${project.APP_GROUP}." + project.APP_ID.toLowerCase()
minSdkVersion Integer.parseInt(project.MIN_SDK)
Expand Down Expand Up @@ -124,8 +118,11 @@ dependencies {
testCompile 'junit:junit:4.12'
testCompile "org.robolectric:robolectric:${ROBOELECTRIC}"


compile "ca.allanwang.kau:core:${KAU}"
compile "ca.allanwang.kau:about:$KAU"
compile "ca.allanwang.kau:colorpicker:$KAU"
// compile "ca.allanwang.kau:imagepicker:$KAU"
compile "ca.allanwang.kau:kpref-activity:$KAU"
compile "ca.allanwang.kau:searchview:$KAU"

compile "org.jetbrains.kotlin:kotlin-stdlib:${KOTLIN}"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:${KOTLIN}"
Expand Down
8 changes: 0 additions & 8 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@
-keeppackagenames org.jsoup.nodes
# IAB
-keep class com.android.vending.billing.**
# About libs
#-keep class .R
#-keep class **.R$* {
# <fields>;
#}
-keepclasseswithmembers class **.R$* {
public static final int define_*;
}
# Glide
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public class * extends com.bumptech.glide.AppGlideModule
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/assets/js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ if (!window.hasOwnProperty('frost_menu')) {
setTimeout(function() {
y.disconnect();
console.log('Unhook styler');
Frost.handleHtml(document.documentElement.outerHTML);
}, 500);
}
});
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/assets/js/menu.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ var o=document.querySelector(".mSideMenu")
for(x.disconnect(),console.log("Found side menu");root.firstChild;)root.removeChild(root.firstChild)
;for(;o.childNodes.length;)root.appendChild(o.childNodes[0])
;Frost.emit(0),setTimeout(function(){
y.disconnect(),console.log("Unhook styler"),
Frost.handleHtml(document.documentElement.outerHTML)
y.disconnect(),console.log("Unhook styler")
},500)
}
})
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/kotlin/com/pitchedapps/frost/AboutActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import ca.allanwang.kau.about.AboutActivityBase
import ca.allanwang.kau.about.LibraryIItem
import ca.allanwang.kau.adapters.FastItemThemedAdapter
import ca.allanwang.kau.adapters.ThemableIItem
import ca.allanwang.kau.adapters.ThemableIItemDelegate
import ca.allanwang.kau.iitems.LibraryIItem
import ca.allanwang.kau.utils.*
import com.mikepenz.aboutlibraries.Libs
import com.mikepenz.aboutlibraries.entity.Library
Expand Down

0 comments on commit 91119de

Please sign in to comment.