π―
This file contains 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
import in.juspay.godel.core.PaymentDetails; | |
// setup the initial parameters for the browser fragment | |
PaymentDetails paymentDetails = new PaymentDetails(); | |
paymentDetails.setOrderId(rechargeRequest.getPaymentId()); | |
paymentDetails.setMerchantId("juspay_recharge"); | |
// clientId uniquely identifies the weblab configuration rules to apply | |
paymentDetails.setClientId("juspay_recharge_android"); | |
// customerId uniquely identifies a customer | |
paymentDetails.setCustomerId(rechargeRequest.getMobileNumber()); |
This file contains 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
Follow These Steps: | |
Step1: | |
yarn add @react-native-firebase/app | |
yarn add @react-native-firebase/messaging | |
cd ios/ && pod install | |
Step2: | |
Configure firebase in IOS side. | |
Download the GoogleService-Info.plist file |
This file contains 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
Get-ChildItem -Path "*.zip" -Recurse -File | Move-Item -Destination ./destination |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 AuthToken(context: Context) : Interceptor { | |
var cont = context | |
override fun intercept(chain: Interceptor.Chain): Response { | |
val sp = cont.getSharedPreferences("app_data", 0) | |
if (sp!!.getLong("expires_in", 0) - sp.getLong("time_delta", 0) - System.currentTimeMillis() / 1000 <= 60 && !sp.getString("refresh_token", "")!!.isBlank()) updateAccessToken(cont) | |
val initialRequest = if (sp.getLong("expires_in", 0) - sp.getLong("time_delta", 0) - System.currentTimeMillis() / 1000 <= 60 && !sp.getString("refresh_token", "")!!.isBlank()) { | |
updateAccessToken(cont) | |
requestBuilder(chain) | |
} else { |
This file contains 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
image: bitbucketpipelines/android-ci-image | |
pipelines: | |
tags: | |
firebase-*: | |
- step: | |
name: Setup & Deploy | |
image: java:8 #remove this line if plugin "com.starter.easylauncher" isn't used | |
caches: | |
- android-sdk |
This file contains 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
<provider | |
android:name="androidx.core.content.FileProvider" | |
android:authorities="com.android.hltherasocialnetwork.provider" | |
android:exported="false" | |
android:grantUriPermissions="true" | |
tools:replace="android:authorities"> | |
<meta-data | |
android:name="android.support.FILE_PROVIDER_PATHS" | |
android:resource="@xml/file_provider_paths" | |
tools:replace="android:resource" /> |
This file contains 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
//Dialog for Choose photos from Camera | |
private fun chooseFromCamera() { | |
val intent = Intent(this, TakeImageUtil::class.java) | |
intent.putExtra("from", "camera") | |
this.startActivityForResult(intent, Constants.REQUEST_CAMERA_IMAGE_CODE) | |
} | |
if (requestCode == Constants.REQUEST_CAMERA_IMAGE_CODE || requestCode == Constants.REQUEST_GALLERY_eIMAGE_CODE) { |
This file contains 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
import android.annotation.SuppressLint | |
import android.content.ContentResolver | |
import android.content.ContentUris | |
import android.content.Context | |
import android.database.Cursor | |
import android.net.Uri | |
import android.os.Build | |
import android.os.Environment | |
import android.provider.DocumentsContract |
This file contains 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
import android.Manifest | |
import android.app.Activity | |
import android.os.Bundle | |
import android.content.Intent | |
import android.net.Uri | |
import android.os.Environment | |
import androidx.core.content.FileProvider | |
import java.io.File | |
import android.content.pm.PackageManager |
NewerOlder