Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NO NEED TO REVIEW NOW] Feature/entry widget and secure conversations v2 #1133

Draft
wants to merge 49 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
94e16aa
Refactor configurations
DavDo Sep 16, 2024
3f207b4
Separate Intent-related functionality
DavDo Sep 18, 2024
a9b3495
Implement Entry Widget (embedded view)
AndriiHorishniiMOC Sep 12, 2024
4d7a000
Implement Entry Widget (bottom sheet)
AndriiHorishniiMOC Sep 12, 2024
ba68968
Create new internal layer responsible for opening screens
DavDo Sep 18, 2024
80ee278
Unified UI customization for Entry Widget and SCv2
AndriiHorishniiMOC Sep 19, 2024
289d9a0
Devs want to create public interfaces for EngagementLauncher
DavDo Sep 23, 2024
7672607
Rename all the Unified UI related classes to new SecureMessaging... way
DavDo Sep 25, 2024
d59112e
Add support of glia custom attributes to Entry Widgets
gugalo Oct 2, 2024
ac25263
Change colors in layout xml's to use custom attr
gugalo Oct 2, 2024
2439c8e
Implement EngagementLauncher business logic
DavDo Sep 26, 2024
fb8349e
Devs want to implement the logic for showing available engagement types
andrews-moc Sep 27, 2024
14f5ba2
Update Entry Widget texts
gugalo Oct 3, 2024
a5bb7b7
Remove deprecated functions which are older than 1 year
gugalo Sep 23, 2024
16b1e96
Add gliaBrandPrimaryColor tint to entry widget icon tint.
DavDo Oct 3, 2024
161b0bf
Send error event if Glia is not initialized before getting an Entry W…
andrews-moc Oct 4, 2024
24cdb29
Enable scrolling for the Entry Widget bottom sheet.
AndriiHorishniiMOC Oct 8, 2024
4abee8f
Cache site queues after first request
DavDo Oct 7, 2024
08f7fb7
Change 'Try again' button style for Entry Widget error state accordin…
andrews-moc Oct 4, 2024
8ce7d32
Devs want to use cached Queues to check Secure Messaging availability
DavDo Oct 8, 2024
83eb872
Added snapshot tests for the Entry Widget
AndriiHorishniiMOC Oct 9, 2024
1723ebb
Pass null instead of an empty list if "Default Queues" toggle is enab…
andrews-moc Oct 8, 2024
fc29ca9
Hide 'Secure Messaging' engagement type from Entry Widget if visitor …
andrews-moc Oct 9, 2024
9619979
Make queueIds list non-nullable, so only empty list means that defaul…
andrews-moc Oct 11, 2024
cd2bdfd
Devs want to make UiTheme internal
DavDo Oct 11, 2024
0716dd4
Added loading tint color customization
AndriiHorishniiMOC Oct 14, 2024
0d0efb1
Update Kotlin version
gugalo Oct 14, 2024
577cfd6
Devs want to always fallback to default queues
DavDo Oct 14, 2024
871a6f2
Devs want to use integrator/default queues from QueueRepository
DavDo Oct 14, 2024
66b1011
Update existing secure conversation string
gugalo Oct 16, 2024
3345c00
Update snapshots for the Entry Widget Bottom Sheet
AndriiHorishniiMOC Oct 14, 2024
12ec4e7
Refactor queue management to avoid race conditions
DavDo Oct 16, 2024
21dfaed
Implement Entry Widget item click navigation
andrews-moc Oct 18, 2024
55d3dfc
Implement the 'Try again' button click, add unit tests for EntryWidge…
andrews-moc Oct 22, 2024
ee920d3
Add global colors support for SCv2
gugalo Oct 23, 2024
0ad5014
Implement the hide() interface
andrews-moc Oct 17, 2024
308c6d1
Add accessibility labels to the Entry Widget
AndriiHorishniiMOC Oct 23, 2024
f49e861
Upgrade all dependencies.
DavDo Oct 18, 2024
77f5049
Entry Widget should show an empty state if only 'messaging' engagemen…
andrews-moc Oct 25, 2024
e4cf2aa
Update existing secure conversation welcome screen
gugalo Oct 22, 2024
02b12d3
Implement bottom banner for secure conversation
gugalo Oct 23, 2024
41e0560
Update snapshot tests to support SCv2 bottom banner
gugalo Oct 24, 2024
8638da1
Add ability to show embedded Entry Widget view in the example app
AndriiHorishniiMOC Oct 29, 2024
3406dc9
Apply default attributes from XML theme
AndriiHorishniiMOC Oct 25, 2024
c866c9d
Fix rebase conflicts
DavDo Nov 1, 2024
b72d3b8
Add SC business logic into Entry Widget public functions
DavDo Oct 31, 2024
bf879e3
Make SC APIs work seamlessly when sdk is not initialized
DavDo Nov 4, 2024
cb7ee92
Add secure messaging unavailable label
gugalo Oct 30, 2024
64680b7
Add ability to pass visitor context id through Engagement Launcher
andrews-moc Nov 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 0 additions & 39 deletions app/src/main/java/com/glia/exampleapp/Application.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
package com.glia.exampleapp;

import android.app.Activity;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.glia.androidsdk.Glia;
import com.glia.widgets.GliaWidgets;
import com.google.firebase.FirebaseApp;
import com.google.firebase.FirebaseOptions;
Expand All @@ -22,8 +16,6 @@ public void onCreate() {

GliaWidgets.onAppCreate(this);
GliaWidgets.setCustomCardAdapter(new ExampleCustomCardAdapter());

initGliaWidgets();
}

private void initFirebase() {
Expand All @@ -43,35 +35,4 @@ private void initFirebase() {
.build();
FirebaseApp.initializeApp(this, options);
}

private void initGliaWidgets() {
registerActivityLifecycleCallbacks(new ActivityLifecycleCallbacks() {
@Override
public void onActivityCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {
if (activity.getClass() != com.glia.exampleapp.Activity.class) {
if (Glia.isInitialized()) return;

GliaWidgets.init(ExampleAppConfigManager.createDefaultConfig(getApplicationContext()));
}
}

@Override
public void onActivityStarted(@NonNull Activity activity) {}

@Override
public void onActivityResumed(@NonNull Activity activity) {}

@Override
public void onActivityPaused(@NonNull Activity activity) {}

@Override
public void onActivityStopped(@NonNull Activity activity) {}

@Override
public void onActivitySaveInstanceState(@NonNull Activity activity, @NonNull Bundle outState) {}

@Override
public void onActivityDestroyed(@NonNull Activity activity) {}
});
}
}
65 changes: 0 additions & 65 deletions app/src/main/java/com/glia/exampleapp/ChatFragment.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import androidx.preference.PreferenceManager
import com.glia.androidsdk.SiteApiKey
import com.glia.androidsdk.screensharing.ScreenSharing
import com.glia.widgets.GliaWidgetsConfig
import com.glia.widgets.UiTheme

/**
* Helper class to obtain Glia Config params from deep-link or preferences.
Expand Down Expand Up @@ -103,7 +102,6 @@ object ExampleAppConfigManager {
fun createDefaultConfig(
context: Context,
uiJsonRemoteConfig: String? = null,
runtimeConfig: UiTheme? = null,
region: String? = null,
baseDomain: String = DEFAULT_BASE_DOMAIN,
preferences: SharedPreferences = PreferenceManager.getDefaultSharedPreferences(context)
Expand Down Expand Up @@ -157,7 +155,6 @@ object ExampleAppConfigManager {
.setScreenSharingMode(screenSharingMode)
.setContext(context)
.setUiJsonRemoteConfig(uiJsonRemoteConfig ?: Utils.getRemoteThemeByPrefs(preferences, context.resources))
.setUiTheme(runtimeConfig ?: Utils.getRunTimeThemeByPrefs(preferences, context.resources))
.setManualLocaleOverride(manualLocaleOverride)
.build()
}
Expand Down
Loading