From a006c532d134e7b87b50e82cd698d1ef7b1ee9fa Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Mon, 1 May 2023 20:44:10 +0530 Subject: [PATCH] chore: add base files for templates API --- templates-api/.gitignore | 1 + templates-api/build.gradle.kts | 30 ++++++++++++++++++++++ templates-api/consumer-rules.pro | 0 templates-api/proguard-rules.pro | 21 +++++++++++++++ templates-api/src/main/AndroidManifest.xml | 19 ++++++++++++++ 5 files changed, 71 insertions(+) create mode 100644 templates-api/.gitignore create mode 100644 templates-api/build.gradle.kts create mode 100644 templates-api/consumer-rules.pro create mode 100644 templates-api/proguard-rules.pro create mode 100644 templates-api/src/main/AndroidManifest.xml diff --git a/templates-api/.gitignore b/templates-api/.gitignore new file mode 100644 index 000000000..42afabfd2 --- /dev/null +++ b/templates-api/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/templates-api/build.gradle.kts b/templates-api/build.gradle.kts new file mode 100644 index 000000000..b28e4cacd --- /dev/null +++ b/templates-api/build.gradle.kts @@ -0,0 +1,30 @@ +/* + * 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 . + */ + +plugins { + id("com.android.library") + id("org.jetbrains.kotlin.android") +} + +android { + namespace = "${BuildConfig.packageName}.templates" +} + +dependencies { + implementation(projects.logger) + implementation(libs.androidx.annotation) +} \ No newline at end of file diff --git a/templates-api/consumer-rules.pro b/templates-api/consumer-rules.pro new file mode 100644 index 000000000..e69de29bb diff --git a/templates-api/proguard-rules.pro b/templates-api/proguard-rules.pro new file mode 100644 index 000000000..481bb4348 --- /dev/null +++ b/templates-api/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/templates-api/src/main/AndroidManifest.xml b/templates-api/src/main/AndroidManifest.xml new file mode 100644 index 000000000..1a6faaa40 --- /dev/null +++ b/templates-api/src/main/AndroidManifest.xml @@ -0,0 +1,19 @@ + + + + \ No newline at end of file