Skip to content

Commit

Permalink
Merge pull request #58 from payatu/vedant
Browse files Browse the repository at this point in the history
Vedant
  • Loading branch information
banditAmit authored Apr 26, 2024
2 parents 5ce3194 + 91940e0 commit 464b7b5
Show file tree
Hide file tree
Showing 60 changed files with 11,477 additions and 230 deletions.
10 changes: 10 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ plugins {
android {
namespace 'com.BugBazaar'
compileSdk 34

lintOptions {
checkReleaseBuilds false
}
sourceSets {
main {
jniLibs.srcDirs = ['src/main/jniLibs']
Expand Down Expand Up @@ -72,6 +74,7 @@ dependencies {
implementation 'com.google.firebase:firebase-inappmessaging-display:20.2.0'
implementation 'com.google.firebase:firebase-messaging:23.1.0'
implementation 'androidx.databinding:viewbinding:7.1.2'
implementation 'androidx.activity:activity:1.8.0'
releaseImplementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
Expand All @@ -90,5 +93,6 @@ dependencies {
implementation 'com.scottyab:rootbeer-lib:0.1.0'
implementation 'org.greenrobot:eventbus:3.2.0'
implementation 'androidx.work:work-runtime:2.9.0'
implementation 'com.squareup.picasso:picasso:2.71828'

}
Binary file not shown.
1 change: 1 addition & 0 deletions app/release/BugBazaar_v1.1.apk.cache/code-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
13:1.4.7:cc60397faac154890c9f2f4683bb70b6:29d6be3cab4d7bd22d0b0daa010a3ffd
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added app/release/BugBazaar_v1.1.apk.cache/names-map
Binary file not shown.
10,990 changes: 10,990 additions & 0 deletions app/release/BugBazaar_v1.1.apk.cache/sources/6e/0000116e.java

Large diffs are not rendered by default.

64 changes: 64 additions & 0 deletions app/release/BugBazaar_v1.1.apk.cache/sources/8d/0000118d.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
package com.BugBazaar.ui.ContactsPack;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import com.BugBazaar.R;
import com.BugBazaar.ui.BaseActivity;
import com.BugBazaar.ui.Fragments.QRCodeFragment;

/* loaded from: classes.dex */
public class ReferUs extends BaseActivity {
Button btnSendEmail;
EditText edtEmailId;
FragmentManager fragmentManager;
Button openContactButton;

/* JADX INFO: Access modifiers changed from: protected */
@Override // com.BugBazaar.ui.BaseActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.activity_refer_us);
((TextView) findViewById(R.id.toolbarTitle)).setText("Refer-Us");
this.btnSendEmail = (Button) findViewById(R.id.btnSendEmail);
this.edtEmailId = (EditText) findViewById(R.id.edtEmailId);
this.openContactButton = (Button) findViewById(R.id.openContactButton);
this.fragmentManager = getSupportFragmentManager();
String stringExtra = getIntent().getStringExtra("fragName");
Log.d("fragName", "Received fragName: " + stringExtra);
if (stringExtra != null) {
getSupportFragmentManager().beginTransaction().replace(R.id.qrfragment_placeholder, Fragment.instantiate(this, stringExtra, null)).commit();
} else {
loadFragment(new QRCodeFragment());
}
}

public void openEmailApp(View view) {
String obj = this.edtEmailId.getText().toString();
Intent intent = new Intent("android.intent.action.SEND");
intent.setType("message/rfc822");
intent.putExtra("android.intent.extra.EMAIL", new String[]{obj});
intent.putExtra("android.intent.extra.SUBJECT", "Invitation to join Bugbazaar!!");
intent.putExtra("android.intent.extra.TEXT", "Hey there, I'm using BugBazaar for all of my bug needs. \n \nCheck out our new application and you will never have to go back to any other shopping app. \n\nBugBazaar!! for all your vulnerabilty needs!!.");
startActivity(Intent.createChooser(intent, "Email via: "));
this.edtEmailId.setText("");
}

public void openSelectContacts(View view) {
startActivity(new Intent(this, SelectContacts.class));
}

private void loadFragment(Fragment fragment) {
getSupportFragmentManager().beginTransaction().replace(R.id.qrfragment_placeholder, fragment).commit();
}

public void onBackButtonClick(View view) {
onBackPressed();
}
}
16 changes: 16 additions & 0 deletions app/release/BugBazaar_v1.1.apk.cache/sources/96/00001196.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.BugBazaar.ui.Fragments;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.BugBazaar.R;

/* loaded from: classes.dex */
public class HiddenFragment extends Fragment {
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
return layoutInflater.inflate(R.layout.fragment_hidden, viewGroup, false);
}
}
16 changes: 16 additions & 0 deletions app/release/BugBazaar_v1.1.apk.cache/sources/97/00001197.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.BugBazaar.ui.Fragments;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.BugBazaar.R;

/* loaded from: classes.dex */
public class QRCodeFragment extends Fragment {
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
return layoutInflater.inflate(R.layout.fragment_qrcode, viewGroup, false);
}
}
Binary file added app/release/baselineProfiles/0/app-release.dm
Binary file not shown.
Binary file added app/release/baselineProfiles/1/app-release.dm
Binary file not shown.
19 changes: 18 additions & 1 deletion app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,22 @@
"outputFile": "app-release.apk"
}
],
"elementType": "File"
"elementType": "File",
"baselineProfiles": [
{
"minApi": 28,
"maxApi": 30,
"baselineProfiles": [
"baselineProfiles/1/app-release.dm"
]
},
{
"minApi": 31,
"maxApi": 2147483647,
"baselineProfiles": [
"baselineProfiles/0/app-release.dm"
]
}
],
"minSdkVersionForDexing": 24
}
14 changes: 13 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
android:exported="false" />
<activity
android:name=".ui.ContactsPack.ReferUs"
android:exported="false" />
android:exported="true" />
<activity
android:name=".ui.cart.CartActivity"
android:exported="false" />
Expand All @@ -114,6 +114,10 @@
android:authorities="com.bugbazaar.mycontacts"
android:exported="true"
android:permission="com.BugBazaar.permission.contact" />
<provider
android:name=".ui.addresses.AddressContentProvider"
android:authorities="com.bugbazaar.provider.addresses"
android:exported="true" />

<activity
android:name=".ui.DetailedProductActivity"
Expand Down Expand Up @@ -153,6 +157,14 @@
android:host="bugbazaar"
android:path="/cart/add"
android:scheme="bb" />
<data
android:host="bugbazaar"
android:path="/offers"
android:scheme="bb" />
<data
android:host="bugbazaar"
android:path="/web"
android:scheme="bb" />
</intent-filter>
</activity>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class CredentialsLoader {
private static final String OBFUSCATED_PASSWORD_HEX = "\u0017 2\u00174/44'\u0006066::9"; // Obfuscated "BugBazaarSeccool"

// XOR key for obfuscation/deobfuscation
private static final byte XOR_KEY = 0x55;
private static final byte XOR_KEY = 0x55; //85

// Function to perform XOR obfuscation
private static String obfuscate(String str) {
Expand Down
39 changes: 24 additions & 15 deletions app/src/main/java/com/BugBazaar/ui/ContactsPack/ReferUs.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.BugBazaar.ui.ContactsPack;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;

import android.content.ClipData;
import android.content.ClipboardManager;
Expand All @@ -16,15 +17,14 @@

import com.BugBazaar.R;
import com.BugBazaar.ui.BaseActivity;
import com.BugBazaar.ui.ContactsPack.SelectContacts;
import com.BugBazaar.ui.Fragments.QRCodeFragment;

public class ReferUs extends BaseActivity {

Button btnCopyLink;
Button btnSendEmail;
Button openContactButton;
EditText edtEmailId;
ClipboardManager clipboardManager;
FragmentManager fragmentManager;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand All @@ -34,19 +34,24 @@ protected void onCreate(Bundle savedInstanceState) {
TextView toolbarTitle = findViewById(R.id.toolbarTitle);
toolbarTitle.setText("Refer-Us");

btnCopyLink=findViewById(R.id.btnCopyLink);
clipboardManager = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
btnSendEmail=findViewById(R.id.btnSendEmail);
edtEmailId=findViewById(R.id.edtEmailId);
openContactButton=findViewById(R.id.openContactButton);
fragmentManager = getSupportFragmentManager(); // Initialize fragmentManager

// Load ReferUSFragment inside qrfragment layout
String fragName = getIntent().getStringExtra("fragName");
Log.d("fragName", "Received fragName: " + fragName);

}
public void onCopyLinkClick(View view){

String copyDeepLink = "bb://bugbazaar/dashboard";
ClipData clipData = ClipData.newPlainText("Copied Text", copyDeepLink);
clipboardManager.setPrimaryClip(clipData);
Toast.makeText(this, "Link has been copied.", Toast.LENGTH_SHORT).show();
if (fragName != null) {
getSupportFragmentManager().beginTransaction()
.replace(R.id.qrfragment_placeholder, Fragment.instantiate(this, fragName, null))
.commit();
} else {
// Load default fragment if fragName is null
loadFragment(new QRCodeFragment());
}
}

public void openEmailApp(View view){
Expand All @@ -65,16 +70,20 @@ public void openEmailApp(View view){
startActivity(Intent.createChooser(iEMail, "Email via: "));
edtEmailId.setText("");
}
public void openSelectContacts(View view){

public void openSelectContacts(View view){
Intent intent=new Intent(this, SelectContacts.class);
startActivity(intent);
}

private void loadFragment(Fragment fragment) {
getSupportFragmentManager().beginTransaction()
.replace(R.id.qrfragment_placeholder, fragment)
.commit();
}

//Code to handle backbutton
public void onBackButtonClick(View view) {
onBackPressed(); // Navigate back to the previous activity
}

}
}
Loading

0 comments on commit 464b7b5

Please sign in to comment.