Skip to content

Commit

Permalink
Merge pull request #5 from Yazan98/v2.x
Browse files Browse the repository at this point in the history
Support Base Code for Jetpack Compose Applications and Secured Shared Prefs
  • Loading branch information
Yazan98 authored Feb 18, 2023
2 parents 94e0bdb + 93d622e commit b5ec9af
Show file tree
Hide file tree
Showing 214 changed files with 1,713 additions and 3,425 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
/vanite-ui/build
/vanite-utils/build
/vanite-logic/build
/vanite-compose/build
/vanite-secured-prefs/build

# Remove Secrete Keys
/vanite/SecretRingKey.kbx
Expand All @@ -31,4 +33,6 @@
/vanite-prefs/SecretRingKey.kbx
/vanite-ui/SecretRingKey.kbx
/vanite-ui-binding/SecretRingKey.kbx
/vanite-utils/SecretRingKey.kbx
/vanite-utils/SecretRingKey.kbx
/vanite-compose/SecretRingKey.kbx
/vanite-secured-prefs/SecretRingKey.kbx
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/dictionaries/yazantarifi.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 15 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
buildscript {

ext.PluginsVersions = [
"GradlePluginV" : "7.0.3",
"KotlinPluginV" : "1.5.20",
"EasyLauncherPluginV": "1.3.1",
"FirebasePluginV" : "4.3.1",
"NavigationPluginV" : "2.2.0-rc04",
"VanitePluginV" : "1.0.0",
"NavigationPluginV" : "2.5.0",
"HiltPluginVersion" : "2.28-alpha",
"NexusPublishPluginVersoin": "1.1.0"
]
Expand All @@ -22,37 +18,29 @@ buildscript {
}

dependencies {
classpath "com.android.tools.build:gradle:${rootProject.ext.PluginsVersions.GradlePluginV}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
classpath "com.akaita.android:easylauncher:${rootProject.ext.PluginsVersions.EasyLauncherPluginV}"
classpath "com.google.gms:google-services:${rootProject.ext.PluginsVersions.FirebasePluginV}"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:${rootProject.ext.PluginsVersions.NavigationPluginV}"
classpath "com.google.dagger:hilt-android-gradle-plugin:${rootProject.ext.PluginsVersions.HiltPluginVersion}"
classpath "io.github.gradle-nexus:publish-plugin:${rootProject.ext.PluginsVersions.NexusPublishPluginVersoin}"
}
}

plugins {
id 'com.android.application' version '8.1.0-alpha03' apply false
id 'com.android.library' version '8.1.0-alpha03' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
id 'org.jetbrains.kotlin.jvm' version '1.7.20'
id 'com.google.dagger.hilt.android' version '2.44' apply false
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
}

allprojects {
repositories {
google()
mavenCentral()
maven { url "https://details.gradle.org/m2/" }
maven { url 'https://jitpack.io' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
}

apply from: "details.gradle"
apply plugin: "io.github.gradle-nexus.publish-plugin"
apply from: "${rootDir}/scripts/publish-root.gradle"

ext {
PUBLISH_GROUP_ID = 'com.yazantarifi'
PUBLISH_VERSION = '1.0.4'
PUBLISH_VERSION = '2.0.0'
PUBLISH_DESCRIPTION = 'Application Structure, Base Code, Configuration, Utility Classes to Build Android Applications'
PUBLISH_URL = 'https://github.com/Yazan98/Vanite'
PUBLISH_LICENSE_NAME = 'MIT'
Expand Down Expand Up @@ -88,6 +76,12 @@ public void addRxJavaLibraries(configuration) {
configuration.implementation("io.reactivex.rxjava2:rxandroid:${rootProject.ext.RxAndroidV}")
}

task clean(type: Delete) {
delete rootProject.buildDir
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "500"
}
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile.class).configureEach {
it.kotlinOptions.jvmTarget = "10"
}
4 changes: 2 additions & 2 deletions details.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ ext {
RetrofitRxJavaV = "2.6.1"
RetrofitGsonV = "2.9.0"

ApplicationCompileV = 31
ApplicationCompileV = 33
MinSdkV = 21
LibraryVersion = "2.0.1"
LibraryVersionCode = 3
LibraryVersionCode = 4
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Wed Oct 09 18:30:07 GMT+03:00 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-rc-2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
Loading

0 comments on commit b5ec9af

Please sign in to comment.