Skip to content

Instantly share code, notes, and snippets.

@darryl-davidson
darryl-davidson / App.js
Created December 4, 2019 00:51
Example Expo 35 App that registers Background Fetch and Location Updates
import React, { useEffect } from "react";
import { StyleSheet, Text, View } from "react-native";
import * as BackgroundFetch from "expo-background-fetch";
import * as TaskManager from "expo-task-manager";
import * as Permissions from "expo-permissions";
import * as Location from "expo-location";
import { Notifications } from "expo";
import { Button } from "react-native";
const LOCATION_FETCH_TASK = "upload-job-task-with-location";
Chocolatey v0.10.0
Chocolatey is running on Windows v 6.3.9600.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" install lessmsi -y --force -vd
Received arguments: install lessmsi -y --force -vd
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
PS C:\Users\ddavidson> Write-Output "$([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::Windows))"
C:\Windows
PS C:\Users\ddavidson> dir $env:SystemRoot\Microsoft.Net\Framework\v4.0.30319 -filter *.exe
Directory: C:\Windows\Microsoft.Net\Framework\v4.0.30319
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 8/9/2013 5:51 PM 42080 AddInProcess.exe
-a--- 8/9/2013 5:51 PM 42088 AddInProcess32.exe
C:\Users\ddavidson>"C:\ProgramData\chocolatey\tools\shimgen.exe" --path="..\\lib\lessmsi\tools\lessmsi-gui.exe" --output="c:\ProgramData\chocolatey\bin\lessmsi-gui.exe" --iconpath="C:\ProgramData\chocolatey\lib\lessmsi\tools\lessmsi-gui.exe"
[WARN ] Could not extract icon from associated program. Using default. Error: Selected Icon is invalid
[ERROR] Cannot generate shim as csc was not found for .NET 4.0 in Framework64 or Framework
PS C:\Users\ddavidson> dir $env:SystemRoot\Microsoft.Net\Framework
Directory: C:\Windows\Microsoft.Net\Framework
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 8/22/2013 8:39 AM v1.0.3705
d---- 8/22/2013 8:39 AM v1.1.4322
Chocolatey is running on Windows v 6.3.9600.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" install lessmsi --force -d -v --yes
Received arguments: install lessmsi --force -d -v --yes
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
[Pending] Removing incomplete install for 'lessmsi'
The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type