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

Wallet extension with new UI #169

Closed
Closed
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
2da017b
added add extension button
DevT75 Oct 25, 2024
28e5f83
Merge pull request #150 from DevT75/extensions_support
pandey019 Oct 25, 2024
33bcb5c
Tab switcher crash fix #147
1311-hack1 Oct 26, 2024
3ecdcf1
Tab switcher crash fix #147
1311-hack1 Oct 26, 2024
d43155b
Animation fix - Tab switcher
1311-hack1 Oct 26, 2024
9415ae7
Animation fix - Tab switcher
1311-hack1 Oct 26, 2024
39016fa
Animation fix - Tab switcher
1311-hack1 Oct 26, 2024
97200a9
default app theme to Light mode
1311-hack1 Oct 27, 2024
774bf44
removed back button from extension webview
1311-hack1 Oct 27, 2024
c15c4da
Static Theme color for toolbar
1311-hack1 Oct 27, 2024
06a6a9d
Wallet Extension with working Updated UI
devjangid15 Oct 28, 2024
6cc7553
extension update, api fixes and some ui changes
DevT75 Oct 28, 2024
ff4e838
incognito tabswitcher animation and tab title fix
1311-hack1 Oct 28, 2024
def5d9c
App menu text case fix
1311-hack1 Oct 28, 2024
5a3717d
App menu text case fix
1311-hack1 Oct 29, 2024
5e0289f
merged pr-152 in test-pr-152
DevT75 Oct 29, 2024
ddeda6d
downloading extensions from wootzapp ext-store not showing install pr…
DevT75 Oct 30, 2024
94e788a
hubcoordinator change
1311-hack1 Oct 30, 2024
4563669
merged test-pr-152 into inter-ext and some cleanup
DevT75 Oct 30, 2024
5e2b4a8
Fix wallet autoconnect, add UI changes and add Extension Store
devjangid15 Oct 30, 2024
f583959
aead.cc file overcopying fix
devjangid15 Oct 30, 2024
3fff464
Fixing navigation issue
devjangid15 Nov 1, 2024
b198ac0
Fixing Wallet Connection
devjangid15 Nov 2, 2024
4c112b1
bundle apk crash fix
DevT75 Nov 6, 2024
6b86b30
Solana Integration
devjangid15 Nov 8, 2024
181390d
Extension Download Fix
devjangid15 Nov 8, 2024
be9a1e0
Wootzapp Wallet extension integrated with Solana
devjangid15 Nov 8, 2024
d45633c
tabs api page loading fix, wootzapp:// urls crash fix
ivs Nov 11, 2024
dc27561
window.ethereum on chrome-extensions
devjangid15 Nov 11, 2024
42e9e73
code cleanup
DevT75 Nov 11, 2024
ca59249
wootzapp Wallet on wootzapp:// pages
devjangid15 Nov 12, 2024
0fdafcc
Updating .gitignore
devjangid15 Nov 12, 2024
47d81b1
Added SignMessage for Solana
devjangid15 Nov 12, 2024
184f8f5
fixed the extension webview issue
DevT75 Nov 15, 2024
9b08430
content script missing file update
DevT75 Nov 16, 2024
4519021
content script missing code fix
DevT75 Nov 16, 2024
227e2dc
background service + extension id fix
DevT75 Nov 16, 2024
2af6590
Merge pull request #156 from DevT75/inter-ext
pandey019 Nov 18, 2024
eb7fb88
Merge branch 'wootzapp:chromium' into bgservice
DevT75 Nov 18, 2024
ec44724
appmenu code cleanup
DevT75 Nov 18, 2024
d1bac3b
Merge pull request #166 from DevT75/bgservice
pandey019 Nov 19, 2024
60bf858
Merge Fiix
devjangid15 Nov 19, 2024
0010e73
removing issues link
devjangid15 Nov 19, 2024
ff7991a
Wallet Fix
devjangid15 Nov 22, 2024
c6d48b4
BUILD FIX
devjangid15 Nov 23, 2024
c85cd00
BUILD FIX
devjangid15 Nov 23, 2024
de3f8c4
BUILD FIX
devjangid15 Nov 23, 2024
0c5eb5a
Wallet Default and lib
devjangid15 Nov 23, 2024
4512329
Wallet Build Fix
devjangid15 Nov 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.gclient_previous_sync_commits
.gcs_entries
.cipd/

node_modules
__pycache__/
*.py[cod]
*.py[cod]
15 changes: 14 additions & 1 deletion src/args.gn
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
target_os = "android"
target_cpu = "arm64"
is_debug = false
enable_cardboard = false
enable_proguard_obfuscation = false
enable_hls_demuxer = false
enable_nacl = false
proprietary_codecs = true
ffmpeg_branding = "Chrome"
treat_warnings_as_errors=false
enable_extensions=true
is_java_debug = true
is_component_build = true
android_static_analysis = "off"
cc_wrapper="env CCACHE_SLOPPINESS=time_macros ccache"
# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
7 changes: 4 additions & 3 deletions src/build/config/android/config.gni
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ if (is_android || is_chromeos) {
# ASAN requires O MR1.
# https://github.com/google/sanitizers/wiki/AddressSanitizerOnAndroid/01f8df1ac1a447a8475cdfcb03e8b13140042dbd#running-with-wrapsh-recommended
if (is_asan) {
min_supported_sdk_version = 27
min_supported_sdk_version = 27 # The path to the keystore to use for signing builds.

}

assert(
Expand Down Expand Up @@ -223,10 +224,10 @@ if (is_android || is_chromeos) {
android_default_version_name = "Developer Build"

# Forced Android versionCode
android_override_version_code = ""
android_override_version_code = "12"

# Forced Android versionName
android_override_version_name = ""
android_override_version_name = "0.12"

# The path to the keystore to use for signing builds.
android_keystore_path = default_android_keystore_path
Expand Down
1 change: 1 addition & 0 deletions src/cc/base/features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ BASE_FEATURE(kSynchronizedScrolling,
#else
base::FEATURE_ENABLED_BY_DEFAULT);
#endif

BASE_FEATURE(kRemoveMobileViewportDoubleTap,
"RemoveMobileViewportDoubleTap",
base::FEATURE_ENABLED_BY_DEFAULT);
Expand Down
1 change: 1 addition & 0 deletions src/cc/base/features.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace features {
CC_BASE_EXPORT BASE_DECLARE_FEATURE(kAnimatedImageResume);
CC_BASE_EXPORT extern bool IsImpulseScrollAnimationEnabled();
CC_BASE_EXPORT BASE_DECLARE_FEATURE(kSynchronizedScrolling);

// When enabled, the double tap to zoom will be disabled when the viewport
// meta tag is properly set for mobile using content=width=device-width
// or content=initial-scale=1.0
Expand Down
1 change: 1 addition & 0 deletions src/chrome/android/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -3720,6 +3720,7 @@ generate_jni("chrome_jni_headers") {
"java/src/org/chromium/chrome/browser/download/service/DownloadBackgroundTask.java",
"java/src/org/chromium/chrome/browser/download/service/DownloadTaskScheduler.java",
"java/src/org/chromium/chrome/browser/extensions/Extensions.java",
"java/src/org/chromium/chrome/browser/extensions/OpenExtensionsById.java",
"java/src/org/chromium/chrome/browser/extensions/ExtensionsConfirmationDialog.java",
# "java/src/org/chromium/chrome/browser/extensions/WootzBridge.java",
"java/src/org/chromium/chrome/browser/feedback/ConnectivityChecker.java",
Expand Down
2 changes: 2 additions & 0 deletions src/chrome/android/chrome_java_resources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ chrome_java_resources = [
"java/res/layout/autofill_expiration_date_fix_flow.xml",
"java/res/layout/autofill_local_profile_icon.xml",
"java/res/layout/autofill_migrate_address_profile_prompt.xml",
"java/res/layout/autofill_local_profile_icon.xml",
"java/res/layout/autofill_migrate_address_profile_prompt.xml",
"java/res/layout/autofill_name_fixflow.xml",
"java/res/layout/autofill_save_address_profile_prompt.xml",
"java/res/layout/autofill_save_card_base_layout.xml",
Expand Down
2 changes: 2 additions & 0 deletions src/chrome/android/chrome_java_sources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -629,11 +629,13 @@ chrome_java_sources = [
"java/src/org/chromium/chrome/browser/dragdrop/toolbar/ToolbarDragDropCoordinator.java",
"java/src/org/chromium/chrome/browser/extensions/ExtensionInfo.java",
"java/src/org/chromium/chrome/browser/extensions/Extensions.java",
"java/src/org/chromium/chrome/browser/extensions/OpenExtensionsById.java",
"java/src/org/chromium/chrome/browser/extensions/ExtensionsConfirmationDialog.java",
"java/src/org/chromium/chrome/browser/extensions/WootzBridge.java",
"java/src/org/chromium/chrome/browser/extensions/BrowsingDataProvider.java",
"java/src/org/chromium/chrome/browser/extensions/BrowsingDataService.java",
"java/src/org/chromium/chrome/browser/extensions/BrowsingDataConsentDialog.java",
"java/src/org/chromium/chrome/browser/extensions/BrowsingHistoryService.java",
"java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java",
"java/src/org/chromium/chrome/browser/externalnav/IntentWithRequestMetadataHandler.java",
"java/src/org/chromium/chrome/browser/feedback/ChromeFeedbackCollector.java",
Expand Down
4 changes: 2 additions & 2 deletions src/chrome/android/chrome_public_apk_tmpl.gni
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ declare_args() {
# WebView providers which declare one of a handful of package names. See
# https://chromium.googlesource.com/chromium/src/+/HEAD/android_webview/docs/build-instructions.md#Changing-package-name
# for details.
chrome_public_manifest_package = "org.chromium.chrome"
chrome_public_manifest_package = "com.wootzapp.web"
if (use_stable_package_name_for_trichrome) {
chrome_public_manifest_package += ".stable"
} else if (android_channel != "default") {
chrome_public_manifest_package += "." + android_channel
}
}

chrome_public_test_manifest_package = "org.chromium.chrome.tests"
chrome_public_test_manifest_package = "com.wootzapp.web.tests"

default_chrome_public_jinja_variables = [
"channel=$android_channel",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ found in the LICENSE file.
<dimen name="selection_tab_list_toggle_button_lateral_inset">18dp</dimen>
<dimen name="selection_tab_list_toggle_button_vertical_inset">22dp</dimen>
<dimen name="tasks_view_items_vertical_spacing">8dp</dimen>

<!-- Dimens for bottom tab strip toolbar - by Sagar -->
<dimen name="bottom_tab_strip_toolbar_margin">8dp</dimen>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ private static void setFavicon(
private static void updateColor(
ViewLookupCachingFrameLayout rootView, boolean isIncognito, boolean isSelected) {
View cardView = rootView.fastFindViewById(R.id.card_view);
// TextView titleView = (TextView) rootView.fastFindViewById(R.id.tab_title);
TextView titleView = (TextView) rootView.fastFindViewById(R.id.tab_title);
TabThumbnailView thumbnail =
(TabThumbnailView) rootView.fastFindViewById(R.id.tab_thumbnail);
ChromeImageView backgroundView =
Expand All @@ -423,8 +423,8 @@ private static void updateColor(
cardView.getContext(), isIncognito, isSelected);
ViewCompat.setBackgroundTintList(cardView, ColorStateList.valueOf(backgroundColor));

// titleView.setTextColor(
// TabUiThemeUtils.getTitleTextColor(titleView.getContext(), isIncognito, isSelected));
titleView.setTextColor(
TabUiThemeUtils.getTitleTextColor(titleView.getContext(), isIncognito, false));

thumbnail.updateThumbnailPlaceholder(isIncognito, isSelected);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@ public void onLayoutCompleted(RecyclerView.State state) {
checkAwaitingLayout();
}
};

layout.setStackFromEnd(true);
mRecyclerView.setLayoutManager(layout);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,25 +277,28 @@ private SyncOneshotSupplier<ShrinkExpandAnimationData> requestAnimationData(
recyclerViewRect.bottom = rootViewRect.bottom;
}

// Setting the rootViewRect as the initialRect (case: isShrik -> true) and
// finalRect (case: isShrink -> false) instead of recyclerViewRect as we are
// migrating from TabSwitcherView to HubLayout.
Rect rootViewRect = new Rect();
mRootView.getRootView().getGlobalVisibleRect(rootViewRect);

int leftOffset = 0;
if (isShrink) {
initialRect = recyclerViewRect;
initialRect = rootViewRect;
finalRect = coordinator.getTabThumbnailRect(tabId);
leftOffset = initialRect.left;
finalRect.offset(leftOffset, -hubRect.top);
} else {
initialRect = coordinator.getTabThumbnailRect(tabId);
finalRect = recyclerViewRect;
leftOffset = finalRect.left;
finalRect = rootViewRect;
initialRect.offset(leftOffset, -hubRect.top);
}

boolean useFallbackAnimation = false;
if (initialRect.isEmpty() || finalRect.isEmpty()) {
Log.d(TAG, "Geometry not ready using fallback animation.");
useFallbackAnimation = true;
}
// Ignore left offset and just ensure the width is correct. See crbug/1502437.
initialRect.offset(-leftOffset, -hubRect.top);
finalRect.offset(-leftOffset, -hubRect.top);
animationDataSupplier.set(
new ShrinkExpandAnimationData(
initialRect,
Expand Down
8 changes: 7 additions & 1 deletion src/chrome/android/java/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ by a child template that "extends" this file.
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<!--
Enable runtime permissions as uses-permission in tip of tree builds
only for ease of development on Android L and earlier. For consumer
Expand Down Expand Up @@ -909,6 +908,13 @@ by a child template that "extends" this file.
android:foregroundServiceType="dataSync" android:exported="false">
</service>

<!-- Extension foreground service -->
<service
android:name="org.chromium.chrome.browser.extensions.BrowsingHistoryService"
android:foregroundServiceType="dataSync"
android:exported="false" >
</service>

<!-- Download broadcast manager service -->
<service android:name="org.chromium.chrome.browser.download.DownloadBroadcastManager"
android:exported="false">
Expand Down
12 changes: 0 additions & 12 deletions src/chrome/android/java/res/menu/main_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ found in the LICENSE file.
android:title="@string/accessibility_menu_bookmark"
android:titleCondensed="@string/menu_bookmark"
android:icon="@drawable/star_outline_24dp"/>





<item android:id="@+id/offline_page_id"
android:title="@string/download_page"
android:titleCondensed="@string/menu_download"
Expand All @@ -42,8 +37,6 @@ found in the LICENSE file.
android:icon="@drawable/btn_reload_stop"/>
</menu>
</item>


<item android:id="@+id/update_menu_id"
android:title="@string/menu_update"
android:icon="@drawable/menu_update" />
Expand All @@ -64,11 +57,6 @@ found in the LICENSE file.
android:icon="@drawable/ic_select_window" />
<item android:id="@+id/divider_line_id"
android:title="@null" />

<item android:id="@+id/wootz_wallet_id"
android:title="@string/wootz_wallet_title"
android:icon="@drawable/ic_open_in_browser" />

<item android:id="@+id/open_history_menu_id"
android:title="@string/menu_history"
android:icon="@drawable/ic_history_googblue_24dp" />
Expand Down
1 change: 1 addition & 0 deletions src/chrome/android/java/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ found in the LICENSE file.
<color name="navigation_bubble_arrow">@android:color/white</color>

<color name="wootz_link">#A0A5EB</color>

<!-- Scrollbar colors -->
<color name="default_scroll_thumb">@color/white_alpha_20</color>

Expand Down
3 changes: 1 addition & 2 deletions src/chrome/android/java/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ found in the LICENSE file.
<!-- Other colors -->
<color name="dark_action_bar_color">@color/google_blue_grey_900</color>
<color name="dark_status_bar_color">#161E21</color>
<!-- <color name="baseline_primary_20">@color/modern_blue_600</color> -->

<!-- App menu colors -->
<color name="update_menu_item_text_color">@color/default_red</color>
Expand Down Expand Up @@ -79,7 +78,7 @@ found in the LICENSE file.
<color name="wallet_gradient_center_color">#BF14A2</color>
<color name="wallet_gradient_end_color">#F73A1C</color>
<color name="wallet_gradient_start_color">#4C54D2</color>

<color name="translucent_activity_background_color">#AA3B3B3B</color>

<color name="text_primary">#F3F5F7</color>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@
import org.chromium.ui.dragdrop.DragAndDropDelegateImpl;
import org.chromium.ui.widget.Toast;
import org.chromium.url.GURL;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.List;
Expand Down Expand Up @@ -581,7 +580,7 @@ protected void onPreCreate() {
minimizeAppAndCloseTabOnBackPress(getActivityTab());
});
Log.d("Wootzapp", "start service");
startForegroundService(new Intent(this, WootzAppBackgroundService.class));
// startForegroundService(new Intent(this, WootzAppBackgroundService.class));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3341,9 +3341,9 @@ public boolean onMenuOrKeyboardAction(int id, boolean fromMenu) {
return true;
}

if (id == R.id.wootz_wallet_id) {
openWootzWallet(false, false, false);
}
// if (id == R.id.wootz_wallet_id) {
// openWootzWallet(false, false, false);
// }

if (id == R.id.open_history_menu_id) {
// 'currentTab' could only be null when opening history from start surface, which is
Expand Down
Loading
Loading