mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
Use oss-licenses to show licenses for all dependencies
This commit is contained in:
+6
-3
@@ -1,5 +1,8 @@
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
id 'kotlin-android'
|
||||
id 'com.google.android.gms.oss-licenses-plugin'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace "com.itsaky.androidide"
|
||||
@@ -98,7 +101,6 @@ dependencies {
|
||||
|
||||
implementation common.editor
|
||||
implementation common.utilcode
|
||||
implementation common.file_picker
|
||||
implementation common.glide
|
||||
implementation common.quickaction
|
||||
implementation common.bll
|
||||
@@ -121,6 +123,7 @@ dependencies {
|
||||
implementation androidx.vectors
|
||||
implementation androidx.animated_vectors
|
||||
implementation google.material
|
||||
implementation google.oss_licenses
|
||||
|
||||
// Kotlin
|
||||
implementation androidx.ktx
|
||||
|
||||
@@ -63,7 +63,6 @@
|
||||
android:name=".TerminalActivity"
|
||||
android:configChanges="orientation|screenSize|uiMode"
|
||||
android:windowSoftInputMode="adjustResize" />
|
||||
|
||||
<service
|
||||
android:name=".services.GradleBuildService"
|
||||
android:exported="false" />
|
||||
@@ -95,6 +94,11 @@
|
||||
<action android:name="com.itsaky.androidide.logs.APPEND_LOG" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
<activity
|
||||
android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"
|
||||
android:theme="@style/AppTheme" />
|
||||
<activity
|
||||
android:name="com.google.android.gms.oss.licenses.OssLicensesActivity"
|
||||
android:theme="@style/AppTheme" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
Binary file not shown.
@@ -17,18 +17,17 @@
|
||||
*/
|
||||
package com.itsaky.androidide;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.text.Html;
|
||||
import android.text.method.LinkMovementMethod;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.appcompat.widget.TooltipCompat;
|
||||
import androidx.core.util.Pair;
|
||||
|
||||
import com.google.android.gms.oss.licenses.OssLicensesMenuActivity;
|
||||
import com.itsaky.androidide.app.StudioActivity;
|
||||
import com.itsaky.androidide.databinding.ActivityAboutBinding;
|
||||
import com.itsaky.androidide.databinding.LayoutAboutItemsBinding;
|
||||
import com.itsaky.androidide.models.License;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -45,17 +44,21 @@ public class AboutActivity extends StudioActivity {
|
||||
binding.items.footerText.setText(getFooter());
|
||||
|
||||
setupTranslations();
|
||||
setupLicenses();
|
||||
|
||||
OssLicensesMenuActivity.setActivityTitle(getString(R.string.oss_license_title));
|
||||
|
||||
LayoutAboutItemsBinding items = binding.items;
|
||||
TooltipCompat.setTooltipText(items.discuss, getString(R.string.discussions_on_telegram));
|
||||
TooltipCompat.setTooltipText(items.github, getString(R.string.title_github));
|
||||
TooltipCompat.setTooltipText(items.email, getString(R.string.about_option_email));
|
||||
TooltipCompat.setTooltipText(items.website, getString(R.string.about_option_website));
|
||||
TooltipCompat.setTooltipText(items.licenses, getString(R.string.oss_license_title));
|
||||
items.github.setOnClickListener(v -> getApp().openGitHub());
|
||||
items.discuss.setOnClickListener(v -> getApp().openTelegramGroup());
|
||||
items.email.setOnClickListener(v -> getApp().emailUs());
|
||||
items.website.setOnClickListener(v -> getApp().openWebsite());
|
||||
items.licenses.setOnClickListener(
|
||||
v -> startActivity(new Intent(this, OssLicensesMenuActivity.class)));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -107,77 +110,6 @@ public class AboutActivity extends StudioActivity {
|
||||
return list;
|
||||
}
|
||||
|
||||
private void setupLicenses() {
|
||||
final var licenses = new ArrayList<License>();
|
||||
licenses.add(
|
||||
new License(
|
||||
"AndroidX Libraries", "Apache License 2.0", "https://github.com/androidx/androidx"));
|
||||
licenses.add(
|
||||
new License("Gradle Build Tool", "Apache License 2.0", "https://github.com/gradle/gradle"));
|
||||
licenses.add(new License("Gson", "Apache License 2.0", "https://github.com/google/gson"));
|
||||
licenses.add(
|
||||
new License(
|
||||
"Material Components for Android",
|
||||
"Apache License 2.0",
|
||||
"https://github.com/material-components/material-components-android"));
|
||||
licenses.add(
|
||||
new License("ANTLR4 Runtime", "BSD 3-clause License", "https://github.com/antlr/antlr4"));
|
||||
licenses.add(
|
||||
new License("Glide", "BSD, part MIT and Apache 2.0", "https://github.com/bumptech/glide"));
|
||||
licenses.add(
|
||||
new License(
|
||||
"Android UtilCode", "Apache License 2.0", "https://github.com/Blankj/AndroidUtilCode"));
|
||||
licenses.add(
|
||||
new License(
|
||||
"UnicornFilePicker",
|
||||
"Apache License 2.0",
|
||||
"https://github.com/abhishekti7/UnicornFilePicker"));
|
||||
licenses.add(
|
||||
new License("QuickAction", "Apache License 2.0", "https://github.com/piruin/quickaction"));
|
||||
licenses.add(
|
||||
new License("XmlToJson", "Apache License 2.0", "https://github.com/smart-fun/XmlToJson"));
|
||||
licenses.add(
|
||||
new License(
|
||||
"AndroidTreeView",
|
||||
"Apache License 2.0",
|
||||
"https://github.com/bmelnychuk/AndroidTreeView"));
|
||||
licenses.add(
|
||||
new License(
|
||||
"CodeEditor v0.5.2", "Apache License 2.0", "https://github.com/Rosemoe/CodeEditor"));
|
||||
licenses.add(
|
||||
new License("Guava-Android", "Apache License 2.0", "https://github.com/google/guava"));
|
||||
licenses.add(new License("Jsoup", "MIT License", "https://github.com/jhy/jsoup"));
|
||||
licenses.add(
|
||||
new License("Termux [Terminal Emulator]", "GPL 3", "https://github.com/termux/termux-app"));
|
||||
licenses.add(
|
||||
new License("JavaPoet", "Apache License 2.0", "https://github.com/square/JavaPoet"));
|
||||
licenses.add(
|
||||
new License("Zip4j", "Apache License 2.0", "https://github.com/srikanth-lingala/zip4j"));
|
||||
licenses.add(
|
||||
new License(
|
||||
"Android Studio", "Apache License 2.0", "https://cs.android.com/android-studio"));
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (License license : licenses) {
|
||||
sb.append("\u2022 ");
|
||||
sb.append(license.name);
|
||||
sb.append("<br>");
|
||||
sb.append(getString(R.string.msg_about_licensed_under));
|
||||
sb.append(license.license);
|
||||
sb.append("<br><a href=\"");
|
||||
sb.append(license.url);
|
||||
sb.append("\">");
|
||||
sb.append(license.url);
|
||||
sb.append("</a>");
|
||||
sb.append("<br><br>");
|
||||
}
|
||||
sb.append(getString(R.string.license_jdk));
|
||||
sb.append(String.format("<br><a href=\"%1$s\">%1$s</a>", JDK_SOURCE));
|
||||
sb.append("<br><br>");
|
||||
binding.items.licenses.setText(Html.fromHtml(sb.toString(), Html.FROM_HTML_MODE_LEGACY));
|
||||
binding.items.licenses.setMovementMethod(LinkMovementMethod.getInstance());
|
||||
}
|
||||
|
||||
private String getFooter() {
|
||||
final String arch = android.os.Build.SUPPORTED_ABIS[0];
|
||||
try {
|
||||
|
||||
@@ -24,14 +24,12 @@ import androidx.documentfile.provider.DocumentFile
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.itsaky.androidide.R.string
|
||||
import com.itsaky.androidide.app.StudioApp
|
||||
import com.itsaky.androidide.utils.ILogger
|
||||
import com.itsaky.toaster.Toaster.Type.ERROR
|
||||
import java.io.File
|
||||
|
||||
open class BaseFragment : Fragment() {
|
||||
|
||||
private var callback: OnDirectoryPickedCallback? = null
|
||||
private val log = ILogger.newInstance(javaClass.simpleName)
|
||||
private val allowedAuthorities =
|
||||
setOf(ANDROID_DOCS_AUTHORITY, ANDROIDDIDE_DOCS_AUTHORITY, TERMUX_DOCS_AUTHORITY)
|
||||
|
||||
@@ -96,6 +94,6 @@ open class BaseFragment : Fragment() {
|
||||
}
|
||||
|
||||
interface OnDirectoryPickedCallback {
|
||||
fun onDirectoryPicked(file: File?)
|
||||
fun onDirectoryPicked(file: File)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
/************************************************************************************
|
||||
* This file is part of AndroidIDE.
|
||||
*
|
||||
* AndroidIDE is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* AndroidIDE is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**************************************************************************************/
|
||||
package com.itsaky.androidide.models;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public class License {
|
||||
@SerializedName("name")
|
||||
public String name;
|
||||
|
||||
@SerializedName("license")
|
||||
public String license;
|
||||
|
||||
@SerializedName("url")
|
||||
public String url;
|
||||
|
||||
public License(String name, String license, String url) {
|
||||
this.name = name;
|
||||
this.license = license;
|
||||
this.url = url;
|
||||
}
|
||||
}
|
||||
@@ -17,8 +17,6 @@
|
||||
**************************************************************************************/
|
||||
package com.itsaky.androidide.models;
|
||||
|
||||
import com.itsaky.androidide.models.Range;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class SearchResult extends Range {
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
/************************************************************************************
|
||||
* This file is part of AndroidIDE.
|
||||
*
|
||||
*
|
||||
*
|
||||
* AndroidIDE is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* AndroidIDE is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
**************************************************************************************/
|
||||
|
||||
package com.itsaky.androidide.tasks.callables;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import com.itsaky.androidide.models.License;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
public class LicenseReader implements Callable<List<License>> {
|
||||
|
||||
private final Context ctx;
|
||||
|
||||
public LicenseReader(Context ctx) {
|
||||
this.ctx = ctx;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<License> call() throws Exception {
|
||||
BufferedReader reader =
|
||||
new BufferedReader(new InputStreamReader(ctx.getAssets().open("licenses.json")));
|
||||
String line;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
while ((line = reader.readLine()) != null) {
|
||||
sb.append(line);
|
||||
}
|
||||
TypeToken<List<License>> token = new TypeToken<List<License>>() {};
|
||||
return new Gson().fromJson(sb.toString(), token.getType());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<!--
|
||||
~ This file is part of AndroidIDE.
|
||||
~
|
||||
~ AndroidIDE is free software: you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation, either version 3 of the License, or
|
||||
~ (at your option) any later version.
|
||||
~
|
||||
~ AndroidIDE is distributed in the hope that it will be useful,
|
||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
~ GNU General Public License for more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License
|
||||
~ along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<!-- drawable/license.xml -->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@color/primaryIconColor"
|
||||
android:pathData="M9 10A3.04 3.04 0 0 1 12 7A3.04 3.04 0 0 1 15 10A3.04 3.04 0 0 1 12 13A3.04 3.04 0 0 1 9 10M12 19L16 20V16.92A7.54 7.54 0 0 1 12 18A7.54 7.54 0 0 1 8 16.92V20M12 4A5.78 5.78 0 0 0 7.76 5.74A5.78 5.78 0 0 0 6 10A5.78 5.78 0 0 0 7.76 14.23A5.78 5.78 0 0 0 12 16A5.78 5.78 0 0 0 16.24 14.23A5.78 5.78 0 0 0 18 10A5.78 5.78 0 0 0 16.24 5.74A5.78 5.78 0 0 0 12 4M20 10A8.04 8.04 0 0 1 19.43 12.8A7.84 7.84 0 0 1 18 15.28V23L12 21L6 23V15.28A7.9 7.9 0 0 1 4 10A7.68 7.68 0 0 1 6.33 4.36A7.73 7.73 0 0 1 12 2A7.73 7.73 0 0 1 17.67 4.36A7.68 7.68 0 0 1 20 10Z" />
|
||||
</vector>
|
||||
@@ -1,156 +1,133 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="16dp">
|
||||
|
||||
<HorizontalScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="16dp">
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:fillViewport="true"
|
||||
tools:ignore="ScrollViewSize">
|
||||
|
||||
<HorizontalScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:fillViewport="true"
|
||||
tools:ignore="ScrollViewSize">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/github"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:scaleType="fitCenter"
|
||||
app:srcCompat="@drawable/ic_github" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/discuss"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:scaleType="fitCenter"
|
||||
app:srcCompat="@drawable/ic_telegram" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/email"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:scaleType="fitCenter"
|
||||
app:srcCompat="@drawable/ic_email" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/website"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:scaleType="fitCenter"
|
||||
app:srcCompat="@drawable/ic_website" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</HorizontalScrollView>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
<ImageView
|
||||
android:id="@+id/github"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:text="@string/title_translations"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?android:attr/dividerVertical" />
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:scaleType="fitCenter"
|
||||
app:srcCompat="@drawable/ic_github" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/translations"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:textSize="15sp" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
<ImageView
|
||||
android:id="@+id/discuss"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:text="@string/title_open_source_licenses"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?android:attr/dividerVertical" />
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:scaleType="fitCenter"
|
||||
app:srcCompat="@drawable/ic_telegram" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
<ImageView
|
||||
android:id="@+id/email"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:text="@string/msg_open_source_licenses"
|
||||
android:textSize="15sp" />
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:scaleType="fitCenter"
|
||||
app:srcCompat="@drawable/ic_email" />
|
||||
|
||||
<TextView
|
||||
<ImageView
|
||||
android:id="@+id/website"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:scaleType="fitCenter"
|
||||
app:srcCompat="@drawable/ic_website" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/licenses"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:textSize="15sp" />
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:scaleType="fitCenter"
|
||||
app:srcCompat="@drawable/ic_licenses" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/footer_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/secondaryTextColor" />
|
||||
</LinearLayout>
|
||||
|
||||
</HorizontalScrollView>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:text="@string/title_translations"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="?android:attr/dividerVertical" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/translations"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:textSize="15sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/footer_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/secondaryTextColor" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<string name="app_name">AndroidIDE</string>
|
||||
<string name="license_jdk">AndroidIDE JDK-এর একটি পরিবর্তিত বিল্ড ব্যবহার করে যা GNU জেনারেল পাবলিক লাইসেন্স v2.0-এর অধীনে লাইসেন্সপ্রাপ্ত৷ সোর্স কোড এবং JDK এর লাইসেন্স এখানে পাওয়া যাবে : </string>
|
||||
<string name="title_open_source_licenses">ওপেন সোর্স লাইসেন্সগুলি </string>
|
||||
<string name="msg_open_source_licenses">AndroidIDE ওপেন সোর্স লাইব্রেরি ব্যবহার করে। আপনি নীচের লিঙ্কগুলিতে ক্লিক করে ব্যবহৃত লাইব্রেরিগুলির উৎস এবং লাইসেন্স খুঁজে পেতে পারেন৷</string>
|
||||
<string name="msg_about_licensed_under">দত্তাধিকার: </string>
|
||||
<string name="about_option_email">ইমেল</string>
|
||||
<string name="about_option_website">ওয়েবসাইট</string>
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<string name="app_name">AndroidIDE</string>
|
||||
<string name="license_jdk">AndroidIDE verwendet einen modifizierten Build des JDK, das unter der GNU General Public License v2.0 lizenziert ist. Der Quellcode und die Lizenz des JDK sind verfügbar unter:</string>
|
||||
<string name="title_open_source_licenses">Open-Source-Lizenzen</string>
|
||||
<string name="msg_open_source_licenses">AndroidIDE verwendet Open-Source-Bibliotheken. Sie können den Quellcode und die Lizenz der verwendeten Bibliotheken finden, indem Sie auf die folgenden Links klicken.</string>
|
||||
<string name="msg_about_licensed_under">Lizenziert unter:</string>
|
||||
<string name="about_option_email">Email</string>
|
||||
<string name="about_option_website">Webseite</string>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<string name="app_name">AndroidIDE</string>
|
||||
<string name="license_jdk">AndroidIDE utilise une version modifiée du JDK d\'ont la licence est sous GNU General Public licence v2.0. Le code source et la licence du JDK sont disponibles ici : </string>
|
||||
<string name="title_open_source_licenses">licence Open Source</string>
|
||||
<string name="msg_open_source_licenses">AndroidIDE utilise des librairies open sources. vous pouvez trouver la source et les licences des librairies utilisées en cliquant sur les liens suivant ci-dessous.</string>
|
||||
<string name="msg_about_licensed_under">licence sous: </string>
|
||||
<string name="about_option_email">Émail</string>
|
||||
<string name="about_option_website">Site Web</string>
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<string name="app_name">AndroidIDE</string>
|
||||
<string name="license_jdk">AndroidIDE JDK के एक संशोधित निर्माण का उपयोग करता है जिसे GNU General Public License v2.0 के तहत लाइसेंस प्राप्त है। स्रोत कोड और जेडीके का लाइसेंस यहां उपलब्ध है: </string>
|
||||
<string name="title_open_source_licenses">ओपन सोर्स लाइसेंस </string>
|
||||
<string name="msg_open_source_licenses">AndroidIDE ओपन सोर्स लाइब्रेरी का उपयोग करता है। आप नीचे दिए गए लिंक पर क्लिक करके उपयोग किए गए लाइब्रेरी के स्रोत और लाइसेंस प्राप्त कर सकते हैं ।</string>
|
||||
<string name="msg_about_licensed_under">लाइसेंस</string>
|
||||
<string name="about_option_email">ईमेल</string>
|
||||
<string name="about_option_website">वेबसाइट</string>
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<string name="app_name">AndroidIDE</string>
|
||||
<string name="license_jdk">AndroidIDE uses a modified build of the JDK which is licensed under the GNU General Public License v2.0. The source code and the license of the JDK is available at : </string>
|
||||
<string name="title_open_source_licenses">Lisensi sumber terbuka</string>
|
||||
<string name="msg_open_source_licenses">AndroidIDE menggunakan sumber pustaka terbuka. Anda dapat menemukan lisensi dan sumber dari pustaka yang digunakan dengan menekan link dibawah.</string>
|
||||
<string name="msg_about_licensed_under">Berlisensi di bawah: </string>
|
||||
<string name="about_option_email">Email</string>
|
||||
<string name="about_option_website">Website</string>
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<string name="app_name">AndroidIDE</string>
|
||||
<string name="license_jdk">O AndroidIDE usa uma versão modificada do JDK que é licenciada sob a GNU General Public License v2.0. O código fonte e a licença do JDK estão disponíveis em: </string>
|
||||
<string name="title_open_source_licenses">Licenças de código aberto</string>
|
||||
<string name="msg_open_source_licenses">O AndroidIDE usa bibliotecas de código aberto. Você pode encontrar a fonte e a licença das bibliotecas usadas clicando nos links abaixo.</string>
|
||||
<string name="msg_about_licensed_under">Licenciado em: </string>
|
||||
<string name="about_option_email">E-mail</string>
|
||||
<string name="about_option_website">Site</string>
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<string name="app_name">AndroidIDE</string>
|
||||
<string name="license_jdk">AndroidIDE использует модифицированную версию JDK, которая лицензирована согласно GNU General Public License v2.0. Исходный код JDK и лицензия доступны здесь: </string>
|
||||
<string name="title_open_source_licenses">Лицензирование открытого кода</string>
|
||||
<string name="msg_open_source_licenses">AndroidIDE использует открытые библиотеки. Вы можете найти исходный код и лицензии использованных библиотек, перейдя по ссылкам ниже.</string>
|
||||
<string name="msg_about_licensed_under">"Лицензия: "</string>
|
||||
<string name="about_option_email">Email</string>
|
||||
<string name="about_option_website">Вебсайт</string>
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<string name="app_name">AndroidIDE</string>
|
||||
<string name="license_jdk">AndroidIDE使用了以GPL v2.0开源的JDK的修改版构建版本。你可以在此处找到它的源代码和许可证: </string>
|
||||
<string name="title_open_source_licenses">开源许可证</string>
|
||||
<string name="msg_open_source_licenses">AndroidIDE使用开源库项目。你可以点击下面的链接找到他们的许可证和源代码。 </string>
|
||||
<string name="msg_about_licensed_under">许可证: </string>
|
||||
<string name="about_option_email">邮件</string>
|
||||
<string name="about_option_website">网站</string>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<string name="app_name">AndroidIDE</string>
|
||||
<string name="license_jdk">AndroidIDE uses a modified build of the JDK which is licensed under the GNU General Public License v2.0. The source code and the license of the JDK is available at : </string>
|
||||
<string name="title_open_source_licenses">Open source licenses</string>
|
||||
<string name="msg_open_source_licenses">AndroidIDE uses open source libraries. You can find the source and the license of the libraries used by clicking on below links.</string>
|
||||
<string name="msg_about_licensed_under">Licensed under: </string>
|
||||
<string name="about_option_email">Email</string>
|
||||
<string name="about_option_website">Website</string>
|
||||
|
||||
@@ -49,6 +49,7 @@ buildscript {
|
||||
classpath classpaths.agp
|
||||
classpath classpaths.kotlin_gradle_plugin
|
||||
classpath classpaths.google_java_format
|
||||
classpath classpaths.oss_licenses
|
||||
classpath google.guava_jre
|
||||
}
|
||||
}
|
||||
|
||||
+5
-3
@@ -2,11 +2,13 @@ ext {
|
||||
agp_version = '7.3.0-beta05'
|
||||
kotlin_version = '1.7.10'
|
||||
google_java_format_version = '1.15.0'
|
||||
oss_licenses_version = '0.10.5'
|
||||
|
||||
classpaths = [
|
||||
agp : "com.android.tools.build:gradle:$agp_version",
|
||||
kotlin_gradle_plugin: "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version",
|
||||
google_java_format : "com.google.googlejavaformat:google-java-format:$google_java_format_version"
|
||||
google_java_format : "com.google.googlejavaformat:google-java-format:$google_java_format_version",
|
||||
oss_licenses : "com.google.android.gms:oss-licenses-plugin:$oss_licenses_version"
|
||||
]
|
||||
|
||||
androidide = [
|
||||
@@ -16,7 +18,6 @@ ext {
|
||||
common = [
|
||||
editor : 'io.github.Rosemoe.sora-editor:editor:0.16.3',
|
||||
utilcode : 'com.blankj:utilcodex:1.31.0',
|
||||
file_picker: 'com.github.abhishekti7:UnicornFilePicker:1.0.2',
|
||||
glide : 'com.github.bumptech.glide:glide:4.13.2',
|
||||
glide_ap : 'com.github.bumptech.glide:compiler:4.13.2',
|
||||
quickaction: 'com.github.piruin:quickaction:2.4.3',
|
||||
@@ -56,7 +57,8 @@ ext {
|
||||
guava : 'com.google.guava:guava:31.1-android',
|
||||
guava_jre : 'com.google.guava:guava:31.1-jre',
|
||||
auto_val_annotations: 'com.google.auto.value:auto-value-annotations:1.9',
|
||||
auto_val_ap : 'com.google.auto.value:auto-value:1.9'
|
||||
auto_val_ap : 'com.google.auto.value:auto-value:1.9',
|
||||
oss_licenses : 'com.google.android.gms:play-services-oss-licenses:17.0.0'
|
||||
]
|
||||
|
||||
xml = [
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user