This file contains hidden or 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 { call, put, select, take, fork, takeEvery } from "redux-saga/effects"; | |
| import axios from "axios"; | |
| import Config from "react-native-config"; | |
| import _ from "lodash"; | |
| import querystring from "query-string"; | |
| import { | |
| requestRepsCurrentlyCheckedIn, | |
| requestNegativeEvents, | |
| getRepsCurrentlyCheckedIn, |
This file contains hidden or 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 React from "react"; | |
| import PropTypes from "prop-types"; | |
| import { connect } from "react-redux"; | |
| import { StyleSheet, View, Alert, KeyboardAvoidingView } from "react-native"; | |
| import { | |
| Container, | |
| Content, | |
| Text, | |
| Button, |
This file contains hidden or 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 React, { Component } from "react"; | |
| import { StatusBar, StyleSheet, View } from "react-native"; | |
| import { | |
| Container, | |
| Header, | |
| Title, | |
| Button, | |
| Left, | |
| Right, | |
| Body, |
This file contains hidden or 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
| package com.ix.ebadgesdk.sample; | |
| import androidx.annotation.NonNull; | |
| import androidx.appcompat.app.AppCompatActivity; | |
| import androidx.core.app.ActivityCompat; | |
| import androidx.recyclerview.widget.DefaultItemAnimator; | |
| import androidx.recyclerview.widget.LinearLayoutManager; | |
| import androidx.recyclerview.widget.RecyclerView; | |
| import no.nordicsemi.android.ble.data.Data; |
This file contains hidden or 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
| private byte[] bitmapTo8BitImage(Bitmap bitmap) { | |
| int[] pixels = new int[bitmap.getWidth() * bitmap.getHeight()]; | |
| bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, | |
| bitmap.getWidth(), bitmap.getHeight()); | |
| ByteBuffer eightByteBuffer = ByteBuffer.allocate(pixels.length); | |
| for (int i = 0; i < pixels.length; i++) { | |
| int p = pixels[i]; |
This file contains hidden or 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
| /** | |
| * This file was auto-generated by the Titanium Module SDK helper for Android | |
| * Appcelerator Titanium Mobile | |
| * Copyright (c) 2009-2017 by Appcelerator, Inc. All Rights Reserved. | |
| * Licensed under the terms of the Apache Public License | |
| * Please see the LICENSE included with this distribution for details. | |
| * | |
| */ | |
| package com.example.ble; |
This file contains hidden or 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
| package com.intellicentrics.sec3ure_badge; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.os.AsyncTask; | |
| import android.util.Log; | |
| import androidx.localbroadcastmanager.content.LocalBroadcastManager; | |
| import com.ix.ebadgesdk.EBadgeBleManager; |
This file contains hidden or 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
| BatchProcess batchProcess = new BatchProcess(mBleManager,MainActivity.this); | |
| ArrayList<ebadgeJob> jobs = new ArrayList<>(); | |
| ebadgeJob job = new ebadgeJob(); | |
| ArrayList<Integer> idsTodelete=new ArrayList<>(); | |
| Log.d("TEST","IDS TO DELETE ARE " + idsTodelete.toString()); | |
| for(int i=0;i<list.size();i++){ | |
| idsTodelete.add(list.get(i).getImageid()); | |
| } | |
| Log.d("TEST","Deleteting the images from bdge "+ idsTodelete.toString()); |
This file contains hidden or 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
| if (OS_ANDROID) { | |
| // Setup GPS | |
| var providerGps = Ti.Geolocation.Android.createLocationProvider({ | |
| name: Ti.Geolocation.PROVIDER_GPS, | |
| minUpdateDistance: 0.0, | |
| minUpdateTime: 0 | |
| }); | |
| Ti.Geolocation.Android.addLocationProvider(providerGps); |
This file contains hidden or 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
| package com.intellicentrics.sec3ure_badge; | |
| import android.content.Context; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Color; | |
| import android.util.Log; | |
| import com.ix.ebadgesdk.bean.ImageConfig; | |
| import com.ix.ebadgesdk.bean.ImageData; |