diff --git a/.idea/misc.xml b/.idea/misc.xml index 7bcea2ac..2612c26e 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,6 +3,7 @@ diff --git a/app/build.gradle b/app/build.gradle index cf9d721e..b63da675 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -78,31 +78,30 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.legacy:legacy-support-v4:1.0.0' - implementation 'androidx.preference:preference-ktx:1.1.1' + implementation 'androidx.preference:preference-ktx:1.2.0' implementation 'androidx.legacy:legacy-preference-v14:1.0.0' implementation 'androidx.recyclerview:recyclerview:1.2.1' implementation 'androidx.cardview:cardview:1.0.0' - implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0' + implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0' implementation 'com.android.support:support-core-utils:28.0.0' /* Default Libraries */ - implementation 'androidx.constraintlayout:constraintlayout:2.1.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.3' implementation 'com.android.support.constraint:constraint-layout:2.0.4' - implementation 'com.google.android.material:material:1.4.0' - implementation 'androidx.preference:preference-ktx:1.1.1' - implementation 'com.google.android.material:material:1.4.0' - implementation 'androidx.appcompat:appcompat:1.3.1' + implementation 'com.google.android.material:material:1.5.0' + implementation 'androidx.preference:preference-ktx:1.2.0' + implementation 'com.google.android.material:material:1.5.0' + implementation 'androidx.appcompat:appcompat:1.4.1' /* Firefox ABI Splits */ implementation "org.mozilla.components:browser-engine-gecko:75.0.0" implementation "org.mozilla.components:browser-icons:91.0.6" - implementation "org.mozilla.geckoview:geckoview: 90.0.20210705185941" + implementation "org.mozilla.geckoview:geckoview: 97.0.20220202182137" implementation "org.mozilla.components:concept-fetch:91.0.6" implementation "org.mozilla.components:concept-base:91.0.6" implementation "org.mozilla.components:support-utils:91.0.6" - /*Crashlytics*/ implementation 'com.flurry.android:analytics:12.13.0@aar' @@ -118,7 +117,7 @@ dependencies { /* Crawler Service */ - implementation 'org.jsoup:jsoup:1.11.1' + implementation 'org.jsoup:jsoup:1.13.1' /* Orbot Service */ @@ -133,13 +132,13 @@ dependencies { implementation 'com.android.volley:volley:1.2.1' implementation 'com.github.instacart.truetime-android:library-extension-rx:3.3' implementation "net.zetetic:android-database-sqlcipher:4.4.3" - implementation "androidx.sqlite:sqlite-ktx:2.1.0" + implementation "androidx.sqlite:sqlite-ktx:2.2.0" implementation 'androidx.palette:palette-ktx:1.0.0' implementation 'androidx.recyclerview:recyclerview:1.2.1' - implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0' - implementation 'com.google.android.material:material:1.4.0' + implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0' + implementation 'com.google.android.material:material:1.5.0' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation 'com.google.android.gms:play-services-ads:20.3.0' + implementation 'com.google.android.gms:play-services-ads:20.5.0' } /* Automated APK Generation */ diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b51ca294..78d3fcbc 100755 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -12,6 +12,7 @@ + 0) { outputStream.write(buf, 0, len); } - } finally { - outputStream.close(); } - } finally { - inputStream.close(); } } catch (IOException e) { e.printStackTrace(); @@ -230,7 +208,6 @@ public class geckoClients private final WebExtension.MessageDelegate mMessagingDelegate = new WebExtension.MessageDelegate() { - @Nullable @Override public void onConnect(@NonNull WebExtension.Port port) { Log.e("MessageDelegate", "onConnect"); diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeController.java index b0536289..9dbf50a0 100644 --- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeController.java +++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeController.java @@ -743,7 +743,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba Cursor c= Objects.requireNonNull(dMgr).query(new DownloadManager.Query().setFilterById(id)); if(c.moveToFirst()){ - String url = c.getString(c.getColumnIndex(DownloadManager.COLUMN_URI)); + @SuppressLint("Range") String url = c.getString(c.getColumnIndex(DownloadManager.COLUMN_URI)); onNotificationInvoked(URLUtil.guessFileName(url, null, null), enums.etype.download_folder); } } @@ -1765,6 +1765,14 @@ public class homeController extends AppCompatActivity implements ComponentCallba mHomeViewController.onUpdateSearchBar(strings.GENERIC_EMPTY_STR, false, true, true); } + public void onCopySearch(View view){ + if(mSearchBarPreviousText.length()==0){ + helperMethod.copyURL(mSearchbar.getText().toString(),this); + }else { + helperMethod.copyURL(mSearchBarPreviousText,this); + } + } + public void onFindNext(View view){ mGeckoClient.getSession().findInPage(mFindText.getText().toString(), GeckoSession.FINDER_FIND_MATCH_CASE & GeckoSession.FINDER_DISPLAY_HIGHLIGHT_ALL); } diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeViewController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeViewController.java index 3ccbd520..a96ba897 100644 --- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeViewController.java +++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeViewController.java @@ -115,8 +115,6 @@ class homeViewController private boolean isLandscape = false; private boolean isFullScreen = false; private MovementMethod mSearchBarMovementMethod = null; - private Handler mTabDialogHandler = null; - private Runnable mTabDialogRunnable = null; private boolean mIsTopBarExpanded = true; void initialization(eventObserver.eventListener event, AppCompatActivity context, Button mNewTab, ConstraintLayout webviewContainer, TextView loadingText, ProgressBar progressBar, editTextManager searchbar, ConstraintLayout splashScreen, ImageView loading, MoPubView banner_ads, ImageButton gateway_splash, LinearLayout top_bar, GeckoView gecko_view, ImageView backsplash, Button connect_button, View pFindBar, EditText pFindText, TextView pFindCount, androidx.constraintlayout.widget.ConstraintLayout pTopLayout, ImageButton pVoiceInput, ImageButton pMenu, androidx.core.widget.NestedScrollView pNestedScroll, ImageView pBlocker, ImageView pBlockerFullSceen, View mSearchEngineBar, TextView pCopyright, RecyclerView pHistListView, com.google.android.material.appbar.AppBarLayout pAppBar, ImageButton pOrbotLogManager, ConstraintLayout pInfoLandscape, ConstraintLayout pInfoPortrait, ProgressBar pProgressBarIndeterminate, FragmentContainerView pTabFragment, LinearLayout pTopBarContainer, ImageView pSearchLock, ImageView pTopBarHider, ImageView pNewTabBlocker, CoordinatorLayout mCoordinatorLayout, ImageView pImageDivider, ImageButton pPanicButton, ImageView pGenesisLogo, ImageButton pPanicButtonLandscape){ @@ -435,7 +433,7 @@ class homeViewController void initTab(int count, boolean pForced, enums.etype pEvent, List pData){ if(!pForced){ ObjectAnimator scaleDown = ObjectAnimator.ofPropertyValuesHolder(mNewTab, - PropertyValuesHolder.ofFloat("scaleX", 1, 0.70f, 1), + PropertyValuesHolder.ofFloat("scale" + "X", 1, 0.70f, 1), PropertyValuesHolder.ofFloat("scaleY", 1, 0.70f, 1)); scaleDown.setDuration(250); scaleDown.start(); @@ -1544,7 +1542,12 @@ class homeViewController params.setMargins(0, 0, 0,-helperMethod.pxFromDp(120)); }else { if(mBannerAds.getHeight()>0){ - params.setMargins(0, 0, 0,-helperMethod.pxFromDp(70) - helperMethod.pxFromDp(mBannerAds.getHeight())); + Object mAdvertLoaded = mEvent.invokeObserver(null, enums.etype.M_ADVERT_LOADED); + if(mAdvertLoaded!=null && (boolean)mAdvertLoaded){ + params.setMargins(0, 0, 0,-helperMethod.pxFromDp(35) - helperMethod.pxFromDp(mBannerAds.getHeight())); + }else { + params.setMargins(0, 0, 0,-helperMethod.pxFromDp(70) - helperMethod.pxFromDp(mBannerAds.getHeight())); + } }else { params.setMargins(0, 0, 0,-helperMethod.pxFromDp(120)); } @@ -1634,7 +1637,8 @@ class homeViewController if (orientation == Configuration.ORIENTATION_LANDSCAPE) { mWebviewContainer.setPadding(0,0,0,helperMethod.pxFromDp(60)); } else { - mWebviewContainer.setPadding(0,0,0,helperMethod.pxFromDp(60)); + helperMethod.showToastMessage("sadadsasd",mContext); + mWebviewContainer.setPadding(0,0,0,helperMethod.pxFromDp(0)); } } } diff --git a/app/src/main/java/com/darkweb/genesissearchengine/constants/constants.java b/app/src/main/java/com/darkweb/genesissearchengine/constants/constants.java index 12acbd64..22b69db7 100755 --- a/app/src/main/java/com/darkweb/genesissearchengine/constants/constants.java +++ b/app/src/main/java/com/darkweb/genesissearchengine/constants/constants.java @@ -26,16 +26,16 @@ public class constants /*URL CONSTANTS*/ - public static final String CONST_GENESIS_URL_CACHED = "resource://android/assets/homepage/homepage.html"; - public static final String CONST_GENESIS_URL_CACHED_DARK = "resource://android/assets/homepage/homepage-dark.html"; - public static final String CONST_GENESIS_ERROR_CACHED = "error/error.html"; - public static final String CONST_GENESIS_ERROR_CACHED_DARK = "error/error-dark.html"; + public static final String CONST_GENESIS_URL_CACHED = "resource://android/assets/Homepage/homepage.html"; + public static final String CONST_GENESIS_URL_CACHED_DARK = "resource://android/assets/Homepage/homepage-dark.html"; + public static final String CONST_GENESIS_ERROR_CACHED = "Error/error.html"; + public static final String CONST_GENESIS_ERROR_CACHED_DARK = "Error/error-dark.html"; public static final String CONST_GENESIS_DOMAIN_URL_SLASHED = "https://genesishiddentechnologies.com/"; public static final String CONST_GENESIS_DOMAIN_URL = "https://genesishiddentechnologies.com"; public static final String CONST_GENESIS_LOCAL_TIME_GET_KEY = "pLocalTimeVerificationToken"; public static final String CONST_GENESIS_GMT_TIME_GET_KEY = "pGlobalTimeVerificationToken"; - public static final String CONST_GENESIS_HELP_URL_CACHE = "resource://android/assets/help/help.html"; - public static final String CONST_GENESIS_HELP_URL_CACHE_DARK = "resource://android/assets/help/help-dark.html"; + public static final String CONST_GENESIS_HELP_URL_CACHE = "resource://android/assets/Help/help.html"; + public static final String CONST_GENESIS_HELP_URL_CACHE_DARK = "resource://android/assets/Help/help-dark.html"; public static final String CONST_GENESIS_HELP_URL = "https://genesis.onion/help"; public static final String CONST_GENESIS_HELP_URL_SUB = "genesishiddentechnologies.com/help"; public static final String CONST_BACKEND_GENESIS_URL = "https://genesishiddentechnologies.com/search?q=$s&p_num=1&s_type=all"; diff --git a/app/src/main/res/custom-xml/images/xml/ic_baseline_clipboard.xml b/app/src/main/res/custom-xml/images/xml/ic_baseline_clipboard.xml new file mode 100644 index 00000000..d7b4492e --- /dev/null +++ b/app/src/main/res/custom-xml/images/xml/ic_baseline_clipboard.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/layouts/home/layout/home_view.xml b/app/src/main/res/layouts/home/layout/home_view.xml index 1d3c4f64..10519b82 100644 --- a/app/src/main/res/layouts/home/layout/home_view.xml +++ b/app/src/main/res/layouts/home/layout/home_view.xml @@ -132,7 +132,7 @@ android:hint="@string/GENERAL_SEARCH_HINT" android:imeOptions="flagNoExtractUi" android:importantForAutofill="no" - android:inputType="textNoSuggestions" + android:inputType="textWebEmailAddress" android:maxLines="1" android:paddingStart="52dp" android:paddingEnd="15dp" diff --git a/app/src/main/res/layouts/home/layout/popup_search_view.xml b/app/src/main/res/layouts/home/layout/popup_search_view.xml index 10c502e8..3aed4893 100644 --- a/app/src/main/res/layouts/home/layout/popup_search_view.xml +++ b/app/src/main/res/layouts/home/layout/popup_search_view.xml @@ -90,10 +90,33 @@ android:onClick="onClearSearchBar" android:background="@xml/gx_ripple_default_round" android:src="@xml/ic_close" - android:tint="@color/c_navigation_tint" - android:contentDescription="@string/GENERAL_TODO" /> + android:contentDescription="@string/GENERAL_TODO" + app:tint="@color/c_navigation_tint" /> - + + + + +