Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert RobertApikyan

  • V-Mobile
  • Armenia, Yerevan
View GitHub Profile
View gist:56127823f1dade6c1c5486fc756be72b
import UIKit
import Flutter
import Firebase
import FirebaseMessaging
import MSAL
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
var deviceToken = ""
var fcmToken = ""
View KeyHashGenerator.java
package global.raiser.plugins.utils;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.Signature;
import android.net.Uri;
import android.util.Base64;
import java.security.MessageDigest;
@RobertApikyan
RobertApikyan / AndroidManifest.xml
Created Jun 22, 2021
WellBe launcher permissions
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.hfh.wellbe.smartwatch"
android:sharedUserId="android.uid.system">
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.ACCESS_SUPERUSER" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
View gist:fc9b91722fd156ad4d3fa59b98416136
eyJhbGciOiJSUzI1NiIsImtpZCI6IjE1MzRGMDZBNjE0MEY3RTRFQUE5QzE5RjFCMTRDQzBDMTE5OUFDQjEiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJGVFR3YW1GQTktVHFxY0dmR3hUTURCR1pyTEUifQ.eyJuYmYiOjE2MTQ3NzM2MDUsImV4cCI6MTYzMDU4NDgwNSwiaXNzIjoiaHR0cDovL2F1dGgucmFpc2VyLXByZS5sb2NhbCIsImF1ZCI6WyJodHRwOi8vYXV0aC5yYWlzZXItcHJlLmxvY2FsL3Jlc291cmNlcyIsImFwaTMiXSwiY2xpZW50X2lkIjoibW9iaWxlYXBpMSIsInN1YiI6IjhiMDVlYmI4LThkNGMtNGNlNS04YmNmLTRlNDU5ODkwMmY2YSIsImF1dGhfdGltZSI6MTYxNDc3MzYwNSwiaWRwIjoibG9jYWwiLCJpZCI6IjhiMDVlYmI4LThkNGMtNGNlNS04YmNmLTRlNDU5ODkwMmY2YSIsInNjb3BlIjpbIm9wZW5pZCIsImFwaTMiLCJvZmZsaW5lX2FjY2VzcyJdLCJhbXIiOlsicGFzc3dvcmQiXX0.rXd73kfO3gD7EgWxWn6wkL7dR-BdG56Ey6OkbpAbd5k65KXSp88Vv9wPrkajG6gpiA7TWQnZgEUAyZ3GDcy-7MXzZ_IDg0py9hIDd1EaJk6o2gmuI-gAXTul5M0Ds4agJO-fxTU-4jKc-_KQzotyVKK9dxGllnWWVvw4rpif73OHGXKMfk0KfNzgWgunKBFqfKVL7PIACKtka62f5gfZOaO27qr70tQ5e-8qZD5JGiP2Bkf0hBPmPsXx_1vUVTCipugGN6qhhSCvwBhpWO72EUpKYbHsRJOAi4xyceBM3F9bkVppWnutQrW5yojcbdVea0waYD0h5klFCXUNV78USQ
View gist:75a0cbcbcf2c5520986a583479a499ea
curl --location --request GET 'https://qa-api.handsfreecloud.net/api/v1/preferences/device' \
--header 'Authorization: bearer c27AZeLw75kYrY4sbW4BsAe2tAegw5DwuXagu0iPDrjNu_u4izDhR5nNWdysUOP3dOL_DT9vL2tMtKeW8wehHv4P2-Y2-LlmBZpfTwV8UHCU2CshygNNvIDHxbDWRgw0lBXyKGqFTxawYzpPphPRiP61CjpGeOvxKagQ9YjZHfjdP0EW82dPeZ5qKbVYQT5MbmPkwNqFOIWKymIr7g27jH6Fn4nc0RkL3uXdwU_CEZqz7HgszsLklSAEbEMNt_rsyfQ6XvWuKkDsQHwRUhVPPMtd8TX2NVjwSzCH2enVbC4O2v5OlIhrgMJCurQByA5Ufw0zvSPs1nTroQ5MENAdiQ' \
--header 'CallerIdentifier: 865299201656703' \
--header 'DeviceTypeId: 4' \
--header 'Content-Type: application/json' \
--header 'Cookie: ARRAffinity=b9e95e3c3c931ad78153943313b68f27e3fa032b10fbb2314397e6ab822fa7f5; ARRAffinitySameSite=b9e95e3c3c931ad78153943313b68f27e3fa032b10fbb2314397e6ab822fa7f5' \
--data-raw ''
View AuthView.kt
package com.systech.core_v2.auth
import android.content.Context
import android.graphics.*
import android.graphics.ImageFormat.NV21
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.hardware.Sensor
import android.hardware.SensorManager
import android.hardware.SensorManager.SENSOR_DELAY_UI
View CenterZoomLayoutManager.kt
package com.hfh.wellbe.smartwatch.utils
import android.content.Context
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import kotlin.math.abs
import kotlin.math.min
class CenterZoomLayoutManager : LinearLayoutManager {
@RobertApikyan
RobertApikyan / date_range_picker_dialog.dart
Created Dec 29, 2020
Date Range picker without mode icon
View date_range_picker_dialog.dart
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import 'dart:math' as math;
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
View ic_arrow_down.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View GateWayApiInterface.kt
package com.cargoo.android.api.apiClient.retrofit.services
import com.cargoo.android.models.*
import com.cargoo.android.models.chartWidget.ChartWidgetDetails
import com.cargoo.android.models.chartWidget.CompanyWidget
import com.cargoo.android.models.shipment.ShipmentDetailsResponse
import com.cargoo.android.models.PagingResponse
import com.cargoo.android.models.shipment.Shipment
import com.cargoo.android.requestBodies.ApprovedCompanyId
import com.cargoo.android.requestBodies.CompanySingleAccessBody