Skip to content

Instantly share code, notes, and snippets.

@s0nerik
Last active May 16, 2023 14:46
Show Gist options
  • Select an option

  • Save s0nerik/a6db75683f4796ec6e463740b8262e43 to your computer and use it in GitHub Desktop.

Select an option

Save s0nerik/a6db75683f4796ec6e463740b8262e43 to your computer and use it in GitHub Desktop.

Revisions

  1. s0nerik revised this gist Mar 15, 2019. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions app.gradle.kts
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,4 @@ android {

    dependencies {
    implementation(project(":player"))
    implementation("com.imankur.library:analogclockview:1.0.0")
    implementation("com.github.bumptech.glide:glide:4.9.0")
    }
  2. s0nerik revised this gist Mar 15, 2019. No changes.
  3. s0nerik renamed this gist Mar 14, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. s0nerik revised this gist Mar 14, 2019. No changes.
  5. s0nerik created this gist Mar 14, 2019.
    17 changes: 17 additions & 0 deletions app.gradle.kts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    plugins {
    id("com.android.application")
    }

    android {
    defaultConfig {
    applicationId = "com.example.task"
    versionCode = 1
    versionName = "1.0"
    }
    }

    dependencies {
    implementation(project(":player"))
    implementation("com.imankur.library:analogclockview:1.0.0")
    implementation("com.github.bumptech.glide:glide:4.9.0")
    }
    7 changes: 7 additions & 0 deletions lib.gradle.kts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    apply {
    plugin("com.android.library")
    }

    dependencies {
    implementation("com.google.android.exoplayer:exoplayer:2.9.6")
    }
    68 changes: 68 additions & 0 deletions project.groovy
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,68 @@
    buildscript {
    repositories {
    google()
    jcenter()
    }
    dependencies {
    classpath("com.android.tools.build:gradle:${Versions.androidGradlePlugin}")
    classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}")
    }
    }

    allprojects {
    repositories {
    google()
    jcenter()
    }
    }

    subprojects {
    if (name == "app") {
    apply plugin: "com.android.application"
    } else {
    apply plugin: "com.android.library"
    }
    apply plugin: 'kotlin-android'
    apply plugin: 'kotlin-kapt'

    android {
    compileSdkVersion(Versions.compileSdk)

    defaultConfig {
    minSdkVersion(Versions.minSdk)
    targetSdkVersion(Versions.targetSdk)
    testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    }

    dexOptions {
    preDexLibraries = true
    javaMaxHeapSize = "4g"
    }

    compileOptions {
    targetCompatibility JavaVersion.VERSION_1_8
    }
    }

    kapt {
    useBuildCache = true
    correctErrorTypes = true
    }

    dependencies {
    implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:${Versions.kotlin}")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.1.1")
    implementation("androidx.core:core-ktx:1.0.1")
    implementation("androidx.appcompat:appcompat:1.0.2")
    implementation("org.koin:koin-androidx-viewmodel:2.0.0-beta-1")

    testImplementation("junit:junit:4.12")

    androidTestImplementation("androidx.test:runner:1.1.1")
    androidTestImplementation("androidx.test.espresso:espresso-core:3.1.1")
    }
    }

    tasks.register("clean", Delete) {
    delete(rootProject.buildDir)
    }