Skip to content

Instantly share code, notes, and snippets.

View vinitraj10's full-sized avatar
🎯
Focusing

VINIT RAJ vinitraj10

🎯
Focusing
View GitHub Profile
@vinitraj10
vinitraj10 / config.yml
Last active January 13, 2026 12:58
CircleCI config to run maestro for iOS and Android
version: 2.1
orbs:
android: circleci/android@3.1.0
commands:
install_node_modules:
steps:
- run:
name: Install Node Modules
command: yarn
install_maestro_cli:
{
"short_name": "Groww Academy",
"name": "A One Stop Solution To Learn About Investment",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
// method to check whether chrome is installed in user's android device or
// not,also to check the version of the chrom app to better handle TWA.
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
public static boolean isValidChrome(Context context) {
PackageInfo pInfo;
ApplicationInfo applicationInfo;
import android.content.Intent;
import android.os.Handler;
import androidx.appcompat.app.AppCompatActivity;
import com.google.androidbrowserhelper.trusted.LauncherActivity;
public class CustomActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
<service
android:name="com.google.androidbrowserhelper.trusted.DelegationService"
android:enabled="@bool/enableNotification"
android:exported="@bool/enableNotification">
<intent-filter>
<action android:name="android.support.customtabs.trusted.TRUSTED_WEB_ACTIVITY_SERVICE"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</service>
@vinitraj10
vinitraj10 / dj_heroku.md
Last active August 26, 2017 14:52
Deploying Django on heroku

Overview

This is a simple setup to deploy django projects on heroku,This setup does not covers the static files part.

Heroku-Setup

First of fall you need to install Heroku CLI follow this link to install Heroku-cli in your local machine.

Project-Setup

Create a file name Procfile & Procfile.windows (Windows) without any extensions in your root directory
Procfile