Skip to content

Instantly share code, notes, and snippets.

Avatar

Rana Ranvijay Singh RanaRanvijaySingh

View GitHub Profile
View gist:cd06619883d719683a18149bb565dc4b
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import org.tensorflow.lite.support.image.TensorImage;
import org.tensorflow.lite.support.label.Category;
View gist:a5cab771f94c37ad7f1824a2c281ec9b
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black">
<ImageView
android:id="@+id/viewFinder"
android:layout_width="match_parent"
View gist:0f245f5279d13aaccc8539f83171db0b
android {
aaptOptions {
noCompress "tflite"
}
}
dependencies {
implementation 'org.tensorflow:tensorflow-lite-task-vision:0.1.0'
}
View pipelineBuild.groovy
stage('BUILD') {
steps {
sh '''
#!/bin/sh
flutter build apk --debug
'''
}
}
View pipelineGitPullWithCredentials.groovy
stage('GIT PULL') {
steps {
git
branch: 'develop',
credentialsId: '69c1c56e-01f7-4e54-b762-4e5db8191bbb',
url: 'https://github.com/RanaRanvijaySingh/FlutterStarter.git'
}
}
View pipeline.groovy
stage('DISTRIBUTE') {
steps {
appCenter
apiToken: 'f51cd29ba6b2d34a84cd99bc37348db77624c614',
ownerName: 'ranaranvijaysingh9-gmail.com',
appName: 'Flutter-Starter',
pathToApp: 'build/app/outputs/apk/debug/app-debug.apk',
distributionGroups: 'AlphaTester'
}
}
View pipelineGitPull.groovy
stage('GIT PULL') {
steps {
git branch: "develop", url: 'https://github.com/RanaRanvijaySingh/FlutterStarter.git'
}
}
@RanaRanvijaySingh
RanaRanvijaySingh / JenkinsFile.groovy
Last active Feb 7, 2020
BasicJenkinsPipelineBuild
View JenkinsFile.groovy
pipeline {
agent any
stages {
stage('GIT PULL') {
steps {
git branch: "develop", url: 'https://github.com/RanaRanvijaySingh/FlutterStarter.git'
}
}
stage('TEST') {
View webonise
{
"id": 1,
"name": "Webonise lab",
"start_date": 1370979604,
"end_date": 1478893204,
"logo": "https://media.glassdoor.com/sqll/532781/webonise-lab-squarelogo-1397159392536.png",
"designations": [
"Software Engineer",
"Sr. Software Engineer"
],