This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NotificationService : FirebaseMessagingService() { | |
override fun onNewToken(token: String) { | |
super.onNewToken(token) | |
IAdvizeSDK.notificationController.registerPushToken(token) | |
} | |
override fun onMessageReceived(remoteMessage: RemoteMessage) { | |
if (IAdvizeSDK.notificationController.isIAdvizePushNotification(remoteMessage.data) | |
&& !IAdvizeSDK.chatboxController.isChatboxPresented() | |
) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActivityLifecycleController constructor(listener: CurrentActivityUpdatedListener) : | |
Application.ActivityLifecycleCallbacks { | |
interface CurrentActivityUpdatedListener { | |
fun onCurrentActivityUpdated() | |
} | |
/** | |
* Current activity displayed in screen. | |
*/ |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
function sync { | |
if ! [ -e "/usr/local/bin/repo" ] ; then | |
echo "[repoid] ==> Downloading repo script" | |
curl -s https://storage.googleapis.com/git-repo-downloads/repo > /usr/local/bin/repo | |
chmod a+x /usr/local/bin/repo | |
fi | |
echo "[repoid] ==> Initializing repositories" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<remote name="origin" fetch="https://github.com/yourorg" /> | |
<default remote="origin" revision="develop" /> | |
<project remote="origin" name="mobile-android-authentication-ui" path="modules/authentication-ui" /> | |
<project remote="origin" name="mobile-android-conversation-ui" path="modules/conversation-ui" /> | |
<project remote="origin" name="mobile-android-livefeed-ui" path="modules/livefeed-ui" /> | |
<project remote="origin" name="mobile-android-stats-ui" path="modules/stats-ui" /> | |
<project remote="origin" name="mobile-android-user-profile-ui" path="modules/user-profile-ui" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
function printHelp { | |
echo "" | |
echo "USAGE: release <command>" | |
echo " help Shows this help message." | |
echo " major Releases a major version" | |
echo " minor Releases a minor version" | |
echo " patch Releases a patch version" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.judas.protos.recyclerview.adapters; | |
import android.support.v7.widget.RecyclerView; | |
import java.util.ArrayList; | |
import java.util.Comparator; | |
import java.util.List; | |
public abstract class AnimatedAdapter<VH extends RecyclerView.ViewHolder, T> extends RecyclerView.Adapter<VH> { |