Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply Rebel Branding to Android platform #16

Merged
merged 41 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
84a517e
Rename Android project to Rebel
madmiraal Jun 9, 2023
52e866b
Rename Android app package to com.rebeltoolbox.rebelapp
madmiraal Jun 8, 2023
ba38c0c
Rename godot_project_name_string to project_name_string and
madmiraal Jun 7, 2023
4a46268
Fix Android lib patch files
madmiraal Jun 9, 2023
e8c8940
Rename Android lib package to com.rebeltoolbox.rebelengine
madmiraal Jun 9, 2023
581fd55
Update Android Vending Expansion patch
madmiraal Jun 9, 2023
d01a65f
Update Android Vending Licensing patch
madmiraal Jun 9, 2023
11865be
Update Java Native Interface method names
madmiraal Jun 10, 2023
eca15c4
Rename GodotApp to RebelApp
madmiraal Jun 23, 2023
e6fde3f
Rename Godot to RebelFragment
madmiraal Jun 23, 2023
537d951
Rename java interface GodotHost to RebelHost
madmiraal Jun 10, 2023
5d30bc8
Rename java abstract class FullScreenGodotApp to RebelActivity
madmiraal Jun 10, 2023
4358a80
Rename java class GodotLib to RebelEngine
madmiraal Jun 10, 2023
b12d62b
Rename java class GodotIO to RebelIO
madmiraal Jun 10, 2023
a661aea
Rename java class GodotRenderer to RebelRenderer
madmiraal Jun 10, 2023
8649621
Rename java class GodotView to RebelView
madmiraal Jun 11, 2023
d62a770
Rename java class GodotEditText to RebelEditText
madmiraal Jun 11, 2023
4a83ab7
Rename java class GodotGestureHandler to RebelGestureListener
madmiraal Jun 11, 2023
5fac265
Rename java class GodotInputHandler RebelInputHandler
madmiraal Jun 11, 2023
8dd1c06
Rename java class GodotTextInputWrapper to RebelTextInputWrapper
madmiraal Jun 11, 2023
c24b128
Rename java abstract class GodotPlugin to RebelPlugin
madmiraal Jun 11, 2023
35d6ae6
Rename java interface GodotPluginInfoProvider to RebelPluginInfoProvider
madmiraal Jun 11, 2023
fabcc81
Rename java class GodotPluginRegistry to RebelPluginRegistry
madmiraal Jun 11, 2023
7f8a1dc
Rename java annotation UsedByGodot to UsedByRebel
madmiraal Jun 11, 2023
e6da618
Rename java class GodotNetUtils to WifiMulticastLock
madmiraal Jun 11, 2023
6752244
Rename java class GodotInstrumentation to RebelInstrumentation
madmiraal Jun 11, 2023
e00881c
Rename java class GodotDownloaderService to RebelDownloaderService
madmiraal Jun 11, 2023
6558079
Rename java class GodotDownloaderAlarmReceiver to RebelDownloaderRece…
madmiraal Jun 11, 2023
e96fda4
Rename Android layout godot_app_layout to rebel_fragment
madmiraal Jun 11, 2023
b66e1f6
Rename GodotAppMainTheme to MainTheme and
madmiraal Jun 20, 2023
01114d1
Rename Android project property godot_editor_version to editor_version
madmiraal Jun 20, 2023
ad182cb
Rename Android Gradle build getGodot* funtions to get*
madmiraal Jun 20, 2023
240041a
Rename Android meta-data org.godotengine.editor.version to
madmiraal Jun 20, 2023
b34c4a5
Rename Android meta-data org.godotengine.library.version to
madmiraal Jun 20, 2023
8db6368
Rename Android Gradle task generateGodotTemplates to createAndroidTem…
madmiraal Jun 21, 2023
b71f8d6
Update references to Godot in comments in Gradle files
madmiraal Jun 22, 2023
80a1b4b
Rename Gradle tasks for building Native Libraries
madmiraal Jun 22, 2023
b388f68
Rename Android onGodot* methods to on*
madmiraal Jun 22, 2023
6972eb2
Rename Android onRegisterPluginWithGodotNative to onRegisterPlugin
madmiraal Jun 23, 2023
51d8e39
Rename Android method initializeGodot to initialize
madmiraal Jun 23, 2023
1f379f0
Update publish-module script to Rebel Engine
madmiraal Jun 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,5 @@ ObjCBlockIndentWidth: 4
### Java specific config ###
Language: Java
# BreakAfterJavaFieldAnnotations: false
JavaImportGroups: ['org.godotengine', 'android', 'androidx', 'com.android', 'com.google', 'java', 'javax']
JavaImportGroups: ['com.rebeltoolbox', 'android', 'androidx', 'com.android', 'com.google', 'java', 'javax']
...
4 changes: 2 additions & 2 deletions .github/workflows/android_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
target: release
tools: false

- name: Generate templates
- name: Create Android templates
run: |
cd platform/android/java
./gradlew generateGodotTemplates
./gradlew createAndroidTemplates
cd ../../..
ls -l bin/

Expand Down
4 changes: 2 additions & 2 deletions copyright
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ Files: ./platform/android/java/lib/aidl/com/android/vending/licensing/
./platform/android/java/lib/res/layout/status_bar_ongoing_event_progress_bar.xml
./platform/android/java/lib/src/com/google/android/vending/expansion/downloader/
./platform/android/java/lib/src/com/google/android/vending/licensing/
./platform/android/java/lib/src/org/godotengine/godot/input/InputManagerCompat.java
./platform/android/java/lib/src/org/godotengine/godot/input/InputManagerV16.java
./platform/android/java/lib/src/com/rebeltoolbox/rebelengine/input/InputManagerCompat.java
./platform/android/java/lib/src/com/rebeltoolbox/rebelengine/input/InputManagerV16.java
Comment: The Android Open Source Project
Copyright: 2008-2013, The Android Open Source Project
License: Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion misc/scripts/clang_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ while IFS= read -rd '' f; do
continue 2
elif [[ "$f" == *"theme_data.h" ]]; then
continue 2
elif [[ "$f" == "platform/android/java/lib/src/org/godotengine/godot/input/InputManager"* ]]; then
elif [[ "$f" == "platform/android/java/lib/src/com/rebeltoolbox/rebelengine/input/InputManager"* ]]; then
continue 2
fi
python misc/scripts/copyright_headers.py "$f"
Expand Down
2 changes: 1 addition & 1 deletion platform/android/api/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void register_android_api() {
#if !defined(ANDROID_ENABLED)
// On Android platforms, the `java_class_wrapper` instantiation and the
// `JNISingleton` registration occurs in
// `platform/android/java_godot_lib_jni.cpp#Java_org_godotengine_godot_GodotLib_setup`
// `platform/android/java_godot_lib_jni.cpp#Java_com_rebeltoolbox_rebelengine_RebelEngine_setup`
java_class_wrapper = memnew(JavaClassWrapper); // Dummy
ClassDB::register_class<JNISingleton>();
#endif
Expand Down
20 changes: 10 additions & 10 deletions platform/android/export/export_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1405,8 +1405,8 @@ void EditorExportPlatformAndroid::_fix_resources(const Ref<EditorExportPreset> &

String str = _parse_string(&r_manifest[offset], string_flags & UTF8_FLAG);

if (str.begins_with("godot-project-name")) {
if (str == "godot-project-name") {
if (str.begins_with("project-name")) {
if (str == "project-name") {
//project name
str = get_project_name(package_name);

Expand Down Expand Up @@ -1985,7 +1985,7 @@ Error EditorExportPlatformAndroid::run(const Ref<EditorExportPreset> &p_preset,
args.push_back("-a");
args.push_back("android.intent.action.MAIN");
args.push_back("-n");
args.push_back(get_package_name(package_name) + "/com.godot.game.GodotApp");
args.push_back(get_package_name(package_name) + "/com.rebeltoolbox.rebelapp.RebelApp");

output.clear();
err = OS::get_singleton()->execute(adb, args, true, nullptr, &output, &rv, true);
Expand Down Expand Up @@ -2957,9 +2957,9 @@ Error EditorExportPlatformAndroid::export_project_helper(const Ref<EditorExportP
String zipalign_flag = "true";

Vector<PluginConfigAndroid> enabled_plugins = get_enabled_plugins(p_preset);
String local_plugins_binaries = PluginConfigAndroid::get_plugins_binaries(PluginConfigAndroid::BINARY_TYPE_LOCAL, enabled_plugins);
String remote_plugins_binaries = PluginConfigAndroid::get_plugins_binaries(PluginConfigAndroid::BINARY_TYPE_REMOTE, enabled_plugins);
String custom_maven_repos = PluginConfigAndroid::get_plugins_custom_maven_repos(enabled_plugins);
String plugins_local_dependencies = PluginConfigAndroid::get_plugins_dependencies(PluginConfigAndroid::BINARY_TYPE_LOCAL, enabled_plugins);
String plugins_remote_dependencies = PluginConfigAndroid::get_plugins_dependencies(PluginConfigAndroid::BINARY_TYPE_REMOTE, enabled_plugins);
String plugins_maven_repos = PluginConfigAndroid::get_plugins_maven_repos(enabled_plugins);
bool clean_build_required = is_clean_build_required(enabled_plugins);

List<String> cmdline;
Expand All @@ -2984,12 +2984,12 @@ Error EditorExportPlatformAndroid::export_project_helper(const Ref<EditorExportP
cmdline.push_back("-Pexport_version_min_sdk=" + min_sdk_version); // argument to specify the min sdk.
cmdline.push_back("-Pexport_version_target_sdk=" + target_sdk_version); // argument to specify the target sdk.
cmdline.push_back("-Pexport_enabled_abis=" + enabled_abi_string); // argument to specify enabled ABIs.
cmdline.push_back("-Pplugins_local_binaries=" + local_plugins_binaries); // argument to specify the list of plugins local dependencies.
cmdline.push_back("-Pplugins_remote_binaries=" + remote_plugins_binaries); // argument to specify the list of plugins remote dependencies.
cmdline.push_back("-Pplugins_maven_repos=" + custom_maven_repos); // argument to specify the list of custom maven repos for the plugins dependencies.
cmdline.push_back("-Pplugins_local_dependencies=" + plugins_local_dependencies); // argument to specify the list of plugins local dependencies.
cmdline.push_back("-Pplugins_remote_dependencies=" + plugins_remote_dependencies); // argument to specify the list of plugins remote dependencies.
cmdline.push_back("-Pplugins_maven_repos=" + plugins_maven_repos); // argument to specify the list of custom maven repos for the plugins dependencies.
cmdline.push_back("-Pperform_zipalign=" + zipalign_flag); // argument to specify whether the build should be zipaligned.
cmdline.push_back("-Pperform_signing=" + sign_flag); // argument to specify whether the build should be signed.
cmdline.push_back("-Pgodot_editor_version=" + String(VERSION_FULL_CONFIG));
cmdline.push_back("-Peditor_version=" + String(VERSION_FULL_CONFIG));

// NOTE: The release keystore is not included in the verbose logging
// to avoid accidentally leaking sensitive information when sharing verbose logs for troubleshooting.
Expand Down
22 changes: 11 additions & 11 deletions platform/android/export/godot_plugin_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ PluginConfigAndroid PluginConfigAndroid::load_plugin_config(Ref<ConfigFile> conf
}

plugin_config.remote_dependencies = config_file->get_value(PluginConfigAndroid::DEPENDENCIES_SECTION, PluginConfigAndroid::DEPENDENCIES_REMOTE_KEY, Vector<String>());
plugin_config.custom_maven_repos = config_file->get_value(PluginConfigAndroid::DEPENDENCIES_SECTION, PluginConfigAndroid::DEPENDENCIES_CUSTOM_MAVEN_REPOS_KEY, Vector<String>());
plugin_config.maven_repos = config_file->get_value(PluginConfigAndroid::DEPENDENCIES_SECTION, PluginConfigAndroid::DEPENDENCIES_CUSTOM_MAVEN_REPOS_KEY, Vector<String>());
}

plugin_config.valid_config = is_plugin_config_valid(plugin_config);
Expand All @@ -163,36 +163,36 @@ PluginConfigAndroid PluginConfigAndroid::load_plugin_config(Ref<ConfigFile> conf
return plugin_config;
}

String PluginConfigAndroid::get_plugins_binaries(String type, Vector<PluginConfigAndroid> plugins_configs) {
String plugins_binaries;
String PluginConfigAndroid::get_plugins_dependencies(String type, Vector<PluginConfigAndroid> plugins_configs) {
String plugins_dependencies;
if (!plugins_configs.empty()) {
Vector<String> binaries;
Vector<String> dependencies;
for (int i = 0; i < plugins_configs.size(); i++) {
PluginConfigAndroid config = plugins_configs[i];
if (!config.valid_config) {
continue;
}

if (config.binary_type == type) {
binaries.push_back(config.binary);
dependencies.push_back(config.binary);
}

if (type == PluginConfigAndroid::BINARY_TYPE_LOCAL) {
binaries.append_array(config.local_dependencies);
dependencies.append_array(config.local_dependencies);
}

if (type == PluginConfigAndroid::BINARY_TYPE_REMOTE) {
binaries.append_array(config.remote_dependencies);
dependencies.append_array(config.remote_dependencies);
}
}

plugins_binaries = String(PluginConfigAndroid::PLUGIN_VALUE_SEPARATOR).join(binaries);
plugins_dependencies = String(PluginConfigAndroid::PLUGIN_VALUE_SEPARATOR).join(dependencies);
}

return plugins_binaries;
return plugins_dependencies;
}

String PluginConfigAndroid::get_plugins_custom_maven_repos(Vector<PluginConfigAndroid> plugins_configs) {
String PluginConfigAndroid::get_plugins_maven_repos(Vector<PluginConfigAndroid> plugins_configs) {
String maven_repos;
if (!plugins_configs.empty()) {
Vector<String> repos_urls;
Expand All @@ -202,7 +202,7 @@ String PluginConfigAndroid::get_plugins_custom_maven_repos(Vector<PluginConfigAn
continue;
}

repos_urls.append_array(config.custom_maven_repos);
repos_urls.append_array(config.maven_repos);
}

maven_repos = String(PluginConfigAndroid::PLUGIN_VALUE_SEPARATOR).join(repos_urls);
Expand Down
8 changes: 4 additions & 4 deletions platform/android/export/godot_plugin_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
The `dependencies` section and fields are optional and defined as follow:
- **local**: contains a list of local `.aar` binary files the plugin depends on. The local binary dependencies must also be located in the `res://android/plugins` directory.
- **remote**: contains a list of remote binary gradle dependencies for the plugin.
- **custom_maven_repos**: contains a list of urls specifying custom maven repos required for the plugin's dependencies.
- **maven_repos**: contains a list of urls specifying custom maven repos required for the plugin's dependencies.

See https://github.com/godotengine/godot/issues/38157#issuecomment-618773871
*/
Expand Down Expand Up @@ -82,7 +82,7 @@ struct PluginConfigAndroid {
// Optional dependencies section
Vector<String> local_dependencies;
Vector<String> remote_dependencies;
Vector<String> custom_maven_repos;
Vector<String> maven_repos;

static String resolve_local_dependency_path(String plugin_config_dir, String dependency_path);

Expand All @@ -96,9 +96,9 @@ struct PluginConfigAndroid {

static PluginConfigAndroid load_plugin_config(Ref<ConfigFile> config_file, const String &path);

static String get_plugins_binaries(String type, Vector<PluginConfigAndroid> plugins_configs);
static String get_plugins_dependencies(String type, Vector<PluginConfigAndroid> plugins_configs);

static String get_plugins_custom_maven_repos(Vector<PluginConfigAndroid> plugins_configs);
static String get_plugins_maven_repos(Vector<PluginConfigAndroid> plugins_configs);

static String get_plugins_names(Vector<PluginConfigAndroid> plugins_configs);
};
Expand Down
14 changes: 7 additions & 7 deletions platform/android/export/gradle_export_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ String _android_xml_escape(const String &p_string) {
Error _create_project_name_strings_files(const Ref<EditorExportPreset> &p_preset, const String &project_name) {
print_verbose("Creating strings resources for supported locales for project " + project_name);
// Stores the string into the default values directory.
String processed_default_xml_string = vformat(godot_project_name_xml_string, _android_xml_escape(project_name));
store_string_at_path("res://android/build/res/values/godot_project_name_string.xml", processed_default_xml_string);
String processed_default_xml_string = vformat(project_name_xml_string, _android_xml_escape(project_name));
store_string_at_path("res://android/build/res/values/project_name_string.xml", processed_default_xml_string);

// Searches the Gradle project res/ directory to find all supported locales
DirAccessRef da = DirAccess::open("res://android/build/res");
Expand All @@ -170,10 +170,10 @@ Error _create_project_name_strings_files(const Ref<EditorExportPreset> &p_preset
}
String locale = file.replace("values-", "").replace("-r", "_");
String property_name = "application/config/name_" + locale;
String locale_directory = "res://android/build/res/" + file + "/godot_project_name_string.xml";
String locale_directory = "res://android/build/res/" + file + "/project_name_string.xml";
if (ProjectSettings::get_singleton()->has_setting(property_name)) {
String locale_project_name = ProjectSettings::get_singleton()->get(property_name);
String processed_xml_string = vformat(godot_project_name_xml_string, _android_xml_escape(locale_project_name));
String processed_xml_string = vformat(project_name_xml_string, _android_xml_escape(locale_project_name));
print_verbose("Storing project name for locale " + locale + " under " + locale_directory);
store_string_at_path(locale_directory, processed_xml_string);
} else {
Expand Down Expand Up @@ -240,7 +240,7 @@ String _get_instrumentation_tag(const Ref<EditorExportPreset> &p_preset) {
" tools:node=\"replace\"\n"
" android:name=\".GodotInstrumentation\"\n"
" android:icon=\"@mipmap/icon\"\n"
" android:label=\"@string/godot_project_name_string\"\n"
" android:label=\"@string/project_name_string\"\n"
" android:targetPackage=\"%s\" />\n",
package_name);
return manifest_instrumentation_text;
Expand All @@ -252,7 +252,7 @@ String _get_activity_tag(const Ref<EditorExportPreset> &p_preset) {
String orientation = _get_android_orientation_label(
OS::get_singleton()->get_screen_orientation_from_string(GLOBAL_GET("display/window/handheld/orientation")));
String manifest_activity_text = vformat(
" <activity android:name=\"com.godot.game.GodotApp\" "
" <activity android:name=\"com.rebeltoolbox.rebelapp.RebelApp\" "
"tools:replace=\"android:screenOrientation,android:excludeFromRecents\" "
"android:excludeFromRecents=\"%s\" "
"android:screenOrientation=\"%s\">\n",
Expand All @@ -271,7 +271,7 @@ String _get_application_tag(const Ref<EditorExportPreset> &p_preset, bool p_has_
int xr_mode_index = (int)(p_preset->get("xr_features/xr_mode"));
bool uses_xr = xr_mode_index == XR_MODE_OVR || xr_mode_index == XR_MODE_OPENXR;
String manifest_application_text = vformat(
" <application android:label=\"@string/godot_project_name_string\"\n"
" <application android:label=\"@string/project_name_string\"\n"
" android:allowBackup=\"%s\"\n"
" android:isGame=\"%s\"\n"
" android:hasFragileUserData=\"%s\"\n"
Expand Down
6 changes: 3 additions & 3 deletions platform/android/export/gradle_export_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
#include "core/os/os.h"
#include "editor/editor_export.h"

const String godot_project_name_xml_string = R"(<?xml version="1.0" encoding="utf-8"?>
const String project_name_xml_string = R"(<?xml version="1.0" encoding="utf-8"?>
<!--WARNING: THIS FILE WILL BE OVERWRITTEN AT BUILD TIME-->
<resources>
<string name="godot_project_name_string">%s</string>
<string name="project_name_string">%s</string>
</resources>
)";

// Supported XR modes.
// This should match the entries in 'platform/android/java/lib/src/org/godotengine/godot/xr/XRMode.java'
// This should match the entries in 'platform/android/java/lib/src/com/rebeltoolbox/rebelengine/xr/XRMode.java'
static const int XR_MODE_REGULAR = 0;
static const int XR_MODE_OVR = 1;
static const int XR_MODE_OPENXR = 2;
Expand Down
18 changes: 9 additions & 9 deletions platform/android/java/app/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.godot.game"
package="com.rebeltoolbox.rebelapp"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="auto" >
Expand All @@ -28,14 +28,14 @@
<!-- If you want to add tags manually, do before it. -->
<!-- WARNING: This should stay on a single line until the parsing code is improved. See GH-32414. -->
<!-- TODO: Remove the 'requestLegacyExternalStorage' attribute when https://github.com/godotengine/godot/issues/38913 is resolved -->
<application android:label="@string/godot_project_name_string" android:allowBackup="false" android:isGame="true" android:hasFragileUserData="false" android:requestLegacyExternalStorage="false" tools:ignore="GoogleAppIndexingWarning" android:icon="@mipmap/icon" >
<application android:label="@string/project_name_string" android:allowBackup="false" android:isGame="true" android:hasFragileUserData="false" android:requestLegacyExternalStorage="false" tools:ignore="GoogleAppIndexingWarning" android:icon="@mipmap/icon" >

<!-- Records the version of the Godot editor used for building -->
<!-- Records the version of the editor used for building -->
<meta-data
android:name="org.godotengine.editor.version"
android:value="${godotEditorVersion}" />
android:name="com.rebeltoolbox.rebeleditor.version"
android:value="${editorVersion}" />

<!-- The following metadata values are replaced when Godot exports, modifying them here has no effect. -->
<!-- The following metadata values are replaced when the game is exported, modifying them here has no effect. -->
<!-- Do these changes in the export preset. Adding new ones is fine. -->

<!-- XR mode metadata. This is modified by the exporter based on the selected xr mode. DO NOT CHANGE the values here. -->
Expand Down Expand Up @@ -64,9 +64,9 @@
android:value="all" />

<activity
android:name=".GodotApp"
android:label="@string/godot_project_name_string"
android:theme="@style/GodotAppSplashTheme"
android:name=".RebelApp"
android:label="@string/project_name_string"
android:theme="@style/SplashTheme"
android:launchMode="singleTask"
android:excludeFromRecents="false"
android:exported="true"
Expand Down
29 changes: 15 additions & 14 deletions platform/android/java/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Gradle build config for Godot Engine's Android port.
// Gradle build config for Rebel Engine's Android port.
//
// Do not remove/modify comments ending with BEGIN/END, they are used to inject
// addon-specific configuration.
Expand Down Expand Up @@ -30,8 +30,8 @@ allprojects {
//CHUNK_ALLPROJECTS_REPOSITORIES_BEGIN
//CHUNK_ALLPROJECTS_REPOSITORIES_END

// Godot user plugins custom maven repos
String[] mavenRepos = getGodotPluginsMavenRepos()
// User plugins' Maven repos
String[] mavenRepos = getPluginsMavenRepos()
if (mavenRepos != null && mavenRepos.size() > 0) {
for (String repoUrl : mavenRepos) {
maven {
Expand All @@ -57,18 +57,18 @@ dependencies {
releaseImplementation fileTree(dir: 'libs/release', include: ['*.jar', '*.aar'])
}

// Godot user plugins remote dependencies
String[] remoteDeps = getGodotPluginsRemoteBinaries()
if (remoteDeps != null && remoteDeps.size() > 0) {
for (String dep : remoteDeps) {
implementation dep
// User plugins' remote dependencies
String[] remoteDependencies = getPluginsRemoteDependencies()
if (remoteDependencies != null && remoteDependencies.size() > 0) {
for (String dependency : remoteDependencies) {
implementation dependency
}
}

// Godot user plugins local dependencies
String[] pluginsBinaries = getGodotPluginsLocalBinaries()
if (pluginsBinaries != null && pluginsBinaries.size() > 0) {
implementation files(pluginsBinaries)
// User plugins' local dependencies
String[] localDependencies = getPluginsLocalDependencies()
if (localDependencies != null && localDependencies.size() > 0) {
implementation files(localDependencies)
}

//CHUNK_DEPENDENCIES_BEGIN
Expand All @@ -87,7 +87,8 @@ android {
assetPacks = [":assetPacks:installTime"]

defaultConfig {
// The default ignore pattern for the 'assets' directory includes hidden files and directories which are used by Godot projects.
// The default ignore pattern for the 'assets' directory includes hidden files and
// directories that are used by Rebel projects.
aaptOptions {
ignoreAssetsPattern "!.svn:!.git:!.gitignore:!.ds_store:!*.scc:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
}
Expand All @@ -97,7 +98,7 @@ android {
abiFilters export_abi_list
}

manifestPlaceholders = [godotEditorVersion: getGodotEditorVersion()]
manifestPlaceholders = [editorVersion: getEditorVersion()]

// Feel free to modify the application id to your own.
applicationId getExportPackageName()
Expand Down
Loading
Loading