Manipulate you Dependencies as a Game
PART OF GTC OPEN SOURCE INTIATIVE
Features
List Android Libraries with versions. Search for Libraries by name and version. Read Manifest file by code. Add Android Library. Remove Android Library. Update Android Library.
List Android Plugins with versions. Search for Plugins by name and version. Add Android Plugin. Apply Android Plugin.
Build the Project ( gradlew build).
List Flutter Dependencies with versions. Search for Dependencies by name and version. Add Flutter Dependencies .
Install Dependencies ( pub get ).
Getting started
TODO: List prerequisites and provide or point to information on how to start using the package.
Usage
Example of how you can use the library:
var androidPath = 'ANDROID_PATH';
var androidDirectory = Directory(androidPath);
var androidManager = AndroidManager(androidDirectory);
List<AndroidLibrary> androidLibraries = await androidManager.listLibraries();
List<AndroidPlugin> androidPlugins = await androidManager.listPlugins();
AndroidManifest manifest = await androidManager.getManifest();
await androidManager.prepareEnv();
await androidManager.applyPlugin(AndroidPlugin("com.google.gms.google-services", "4.3.5"));
await androidManager.addLibrary(AndroidLibrary("com.gsm.services", version: "2.3"));
await androidManager.addLibrary(BomAndroidLibrary("com.gsm.services", "1234"));
bool success = await androidManager.build();
var pubspecFile = File('./pubspec.yaml');
var flutterManager = FlutterManager(pubspecFile);
await flutterManager.addDependency(FlutterDependency("lints", "^2.0.0"));
var flutterDependencies = await flutterManager.listDependencies(name: "args");
for (var depedency in flutterDependencies) {
print("dependency: ${depedency.name} version: ${depedency.version} ");
}
Additional information
draft version
Libraries
- platforms/android/android
- platforms/android/android_manager
- platforms/android/builds/android_build_interface
- platforms/android/builds/android_build_manager
- platforms/android/files/android_file_interface
- platforms/android/files/android_file_manager
- platforms/android/library/android_library
- platforms/android/library/android_library_interface
- platforms/android/library/android_library_manager
- platforms/android/manifest/android_manifest
- platforms/android/manifest/manifest_interface
- platforms/android/manifest/manifest_manager
- platforms/android/manifest/manifest_node
- platforms/android/manifest/manifest_prop
- platforms/android/plugin/android_plugin
- platforms/android/plugin/android_plugin_interface
- platforms/android/plugin/android_plugin_manager
- platforms/flutter/flutter
- platforms/flutter/flutter_manager
- platforms/flutter/pubspec/config/flutter_configs_interfaces
- platforms/flutter/pubspec/config/flutter_configs_manager
- platforms/flutter/pubspec/dependency/flutter_dependency
- platforms/flutter/pubspec/dependency/flutter_dependency_interface
- platforms/flutter/pubspec/dependency/flutter_dependency_manager
- platforms/ios/build_settings/build_settings_interface
- platforms/ios/build_settings/build_settings_manager
- platforms/ios/ios_manager
- scripts/ruby/get_bundle_id.rb
- scripts/ruby/set_bundle_id.rb
- util/console
- util/file
- util/run_scripts