From 3324ab0e1f7c87bbcebe4dcb1db9bc89a602adca Mon Sep 17 00:00:00 2001 From: Vibin Reddy Date: Fri, 27 May 2022 14:02:39 +0530 Subject: [PATCH] Fix compilation issues This also deletes the unused time-android module. --- build.gradle | 8 +--- gradle/wrapper/gradle-wrapper.properties | 2 +- settings.gradle | 2 +- time-android/.gitignore | 1 - time-android/build.gradle | 38 ------------------- time-android/proguard-rules.pro | 21 ---------- time-android/src/main/AndroidManifest.xml | 2 - .../timeandroid/AndroidExtensions.kt | 15 -------- time-android/src/main/res/values/strings.xml | 3 -- time/build.gradle | 6 +-- 10 files changed, 6 insertions(+), 92 deletions(-) delete mode 100644 time-android/.gitignore delete mode 100644 time-android/build.gradle delete mode 100644 time-android/proguard-rules.pro delete mode 100644 time-android/src/main/AndroidManifest.xml delete mode 100644 time-android/src/main/kotlin/com/kizitonwose/timeandroid/AndroidExtensions.kt delete mode 100644 time-android/src/main/res/values/strings.xml diff --git a/build.gradle b/build.gradle index 96ceb9c..d3451ed 100644 --- a/build.gradle +++ b/build.gradle @@ -1,15 +1,13 @@ buildscript { - ext.kotlin_version = '1.2.60' + ext.kotlin_version = '1.5.10' repositories { google() jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.0.1' + classpath 'com.android.tools.build:gradle:7.0.4' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0' - classpath 'com.palantir:jacoco-coverage:0.4.0' } } @@ -19,5 +17,3 @@ allprojects { jcenter() } } - -apply plugin: 'com.palantir.jacoco-full-report' diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 9096f07..2615d3b 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.2.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip diff --git a/settings.gradle b/settings.gradle index d511466..2844dd6 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,3 @@ -include ':time', ':time-android' +include ':time' rootProject.name = 'Time' diff --git a/time-android/.gitignore b/time-android/.gitignore deleted file mode 100644 index 796b96d..0000000 --- a/time-android/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/time-android/build.gradle b/time-android/build.gradle deleted file mode 100644 index 960b744..0000000 --- a/time-android/build.gradle +++ /dev/null @@ -1,38 +0,0 @@ -apply plugin: 'com.android.library' -apply plugin: 'kotlin-android' -apply plugin: 'com.github.dcendents.android-maven' - -group = 'com.github.kizitonwose' - -android { - compileSdkVersion 26 - buildToolsVersion "26.0.2" - - - defaultConfig { - minSdkVersion 14 - targetSdkVersion 26 - versionCode 1 - versionName "1.0" - } - - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } - - sourceSets { - main { - java.srcDirs += 'src/main/kotlin' - } - } -} - - -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation project(':time') -} diff --git a/time-android/proguard-rules.pro b/time-android/proguard-rules.pro deleted file mode 100644 index f1b4245..0000000 --- a/time-android/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# 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 diff --git a/time-android/src/main/AndroidManifest.xml b/time-android/src/main/AndroidManifest.xml deleted file mode 100644 index d63e994..0000000 --- a/time-android/src/main/AndroidManifest.xml +++ /dev/null @@ -1,2 +0,0 @@ - diff --git a/time-android/src/main/kotlin/com/kizitonwose/timeandroid/AndroidExtensions.kt b/time-android/src/main/kotlin/com/kizitonwose/timeandroid/AndroidExtensions.kt deleted file mode 100644 index fb83766..0000000 --- a/time-android/src/main/kotlin/com/kizitonwose/timeandroid/AndroidExtensions.kt +++ /dev/null @@ -1,15 +0,0 @@ -package com.kizitonwose.timeandroid - -import android.os.Handler -import com.kizitonwose.time.* - -/** - * Created by Kizito Nwose on 19/10/2017 - */ - -fun Handler.postDelayed(r: Runnable, delay: Interval) - = postDelayed(r, delay.inMilliseconds.longValue) - -fun Handler.postDelayed(r: () -> Unit, delay: Interval) - = postDelayed(r, delay.inMilliseconds.longValue) - diff --git a/time-android/src/main/res/values/strings.xml b/time-android/src/main/res/values/strings.xml deleted file mode 100644 index e90a704..0000000 --- a/time-android/src/main/res/values/strings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - Time Android - diff --git a/time/build.gradle b/time/build.gradle index 1c53f24..756dd66 100644 --- a/time/build.gradle +++ b/time/build.gradle @@ -1,6 +1,4 @@ apply plugin: 'kotlin' -apply plugin: 'maven' -apply plugin: 'jacoco' group = 'com.github.kizitonwose' @@ -13,8 +11,8 @@ dependencies { } compileKotlin { - kotlinOptions.jvmTarget = "1.6" + kotlinOptions.jvmTarget = "1.8" } compileTestKotlin { - kotlinOptions.jvmTarget = "1.6" + kotlinOptions.jvmTarget = "1.8" }