This file contains 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
/// Finds unused dependencies from pubspec.yaml | |
/// | |
/// Achieves this by parsing pubspec.yaml and recursively | |
/// searching the lib folder for an import statement that | |
/// contains the name of each package. Prints out the results. | |
const fs = require("fs"); | |
const YAML = require("yaml"); | |
const { execSync } = require("child_process"); | |
/// Read pubspec.yaml |
This file contains 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.graymind75 | |
import android.content.Context | |
import android.net.* | |
import android.os.Build | |
import androidx.annotation.RequiresApi | |
/** | |
* singleton class to check the network connection state | |
* It's use the old ConnectivityManager.activeNetworkInfo way for pre LOLLIPOP |