Skip to content

Instantly share code, notes, and snippets.

View RanaRanvijaySingh's full-sized avatar

Rana Ranvijay Singh RanaRanvijaySingh

View GitHub Profile
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;
<?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"
android {
aaptOptions {
noCompress "tflite"
}
}
dependencies {
implementation 'org.tensorflow:tensorflow-lite-task-vision:0.1.0'
}
stage('BUILD') {
steps {
sh '''
#!/bin/sh
flutter build apk --debug
'''
}
}
stage('GIT PULL') {
steps {
git
branch: 'develop',
credentialsId: '69c1c56e-01f7-4e54-b762-4e5db8191bbb',
url: 'https://github.com/RanaRanvijaySingh/FlutterStarter.git'
}
}
stage('DISTRIBUTE') {
steps {
appCenter
apiToken: 'f51cd29ba6b2d34a84cd99bc37348db77624c614',
ownerName: 'ranaranvijaysingh9-gmail.com',
appName: 'Flutter-Starter',
pathToApp: 'build/app/outputs/apk/debug/app-debug.apk',
distributionGroups: 'AlphaTester'
}
}
stage('TEST') {
steps {
sh 'flutter test'
}
}
stage('GIT PULL') {
steps {
git branch: "develop", url: 'https://github.com/RanaRanvijaySingh/FlutterStarter.git'
}
}
@RanaRanvijaySingh
RanaRanvijaySingh / JenkinsFile.groovy
Last active February 7, 2020 08:11
BasicJenkinsPipelineBuild
pipeline {
agent any
stages {
stage('GIT PULL') {
steps {
git branch: "develop", url: 'https://github.com/RanaRanvijaySingh/FlutterStarter.git'
}
}
stage('TEST') {
{
"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"
],