Skip to content

Commit

Permalink
edit DarkMode.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
rahbadev committed Jun 18, 2023
1 parent 7073418 commit e21e0ca
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 48 deletions.
28 changes: 14 additions & 14 deletions BtechUtils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@ apply plugin: 'org.jetbrains.kotlin.android'

apply plugin: 'maven-publish'

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

android {
namespace 'com.rhdev.btechutils'
compileSdk 34
buildToolsVersion '34.0.0 rc4'

defaultConfig {
minSdk 22
Expand Down Expand Up @@ -48,17 +59,6 @@ dependencies {


}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.github.btech16'
artifactId = 'btech-utils'
version = '1.0'
}
}
}
}
tasks.withType(Javadoc).all {
enabled = false
}
33 changes: 4 additions & 29 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,31 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.8.21'
repositories {
mavenCentral()
google()
maven { url 'https://jitpack.io' }
}

dependencies {
classpath 'com.android.tools.build:gradle:8.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
mavenCentral()
google()
maven { url 'https://jitpack.io' }
}

tasks.withType(JavaCompile) {
options.deprecation = true
}
}


task clean(type: Delete) {
delete rootProject.buildDir
plugins {
id 'com.android.application' version '8.0.2' apply false
id 'com.android.library' version '8.0.2' apply false
id 'org.jetbrains.kotlin.android' version '1.8.20' apply false
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Jun 18 14:37:56 TRT 2023
#Sun Jun 18 18:06:57 TRT 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-rc-2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
- openjdk17
16 changes: 16 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { url 'https://jitpack.io' }

}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "UtilsLibrary"
include ':simple_app'
include ':BtechUtils'
6 changes: 3 additions & 3 deletions simple_app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '17'
}
}

Expand Down

0 comments on commit e21e0ca

Please sign in to comment.