Skip to content

Commit

Permalink
clean folders & prepare build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Jan 23, 2021
1 parent ce8fce5 commit ee1f78f
Show file tree
Hide file tree
Showing 91 changed files with 521 additions and 762 deletions.
2 changes: 1 addition & 1 deletion android-compose/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ buildscript {
// Dokka
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
// Android
classpath "com.android.tools.build:gradle:$android_gradle_version"
classpath "com.android.tools.build:gradle:$androidx_compose_gradle_version"
classpath "digital.wup:android-maven-publish:$android_maven_publish"
}
}
Expand Down
3 changes: 3 additions & 0 deletions android-compose/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

../gradlew clean
2 changes: 1 addition & 1 deletion android-compose/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ kotlin.mpp.enableGranularSourceSetsMetadata=true

# Bintray
bintray_repo=koin
bintray_org=koin
bintray_org=ekito
bintray_github=https://github.com/InsertKoinIO/koin

# Fixes "Gradle 6.0 generates incorrect versions for Kotlin multiplatform projects
Expand Down
2 changes: 1 addition & 1 deletion android-compose/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 4 additions & 0 deletions android-compose/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

../gradlew publishToMavenLocal

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply from: "../../gradle/versions.gradle"

ext {
android_sourceSet = true
pom_name = "koin-android-compose"
pom_name = "koin-androidx-compose"
pom_description = "Koin project - koin-androidx-compose"
}

Expand Down Expand Up @@ -37,8 +37,8 @@ android {
}

composeOptions {
kotlinCompilerVersion kotlin_version //"1.4.10"
kotlinCompilerExtensionVersion androidx_compose_version //"1.0.0-alpha03"
kotlinCompilerVersion kotlin_version
kotlinCompilerExtensionVersion androidx_compose_version
}
}

Expand All @@ -53,13 +53,12 @@ dependencies {

// Koin
api "org.koin:koin-android:$koin_version"
testImplementation "org.koin:koin-test:$koin_version"
testImplementation "org.koin:koin-test-junit4:$koin_version"
testImplementation 'junit:junit:4.13.1'

/* Compose */
implementation "androidx.compose.runtime:runtime:$androidx_compose_version"
implementation "androidx.compose.ui:ui:$androidx_compose_version"
api "androidx.compose.runtime:runtime:$androidx_compose_version"
api "androidx.compose.ui:ui:$androidx_compose_version"

androidTestImplementation 'androidx.test.ext:junit:1.1.2'
}
Expand Down
5 changes: 5 additions & 0 deletions android-compose/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

../gradlew bintrayUpload --info --no-parallel


2 changes: 1 addition & 1 deletion android-compose/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

include 'koin-android-compose'
include 'koin-androidx-compose'

enableFeaturePreview('GRADLE_METADATA')
3 changes: 3 additions & 0 deletions android-compose/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

../gradlew test --parallel
3 changes: 3 additions & 0 deletions android/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

../gradlew clean
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ kotlin.mpp.enableGranularSourceSetsMetadata=true

# Bintray
bintray_repo=koin
bintray_org=koin
bintray_org=ekito
bintray_github=https://github.com/InsertKoinIO/koin

# Fixes "Gradle 6.0 generates incorrect versions for Kotlin multiplatform projects
Expand Down
4 changes: 4 additions & 0 deletions android/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

../gradlew publishToMavenLocal

2 changes: 1 addition & 1 deletion android/koin-android-ext/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'

ext {
android_sourceSet = true
pom_name = "koin-androidx-ext"
pom_name = "koin-android-ext"
pom_description = "Koin project - koin-androidx-ext"
}

Expand Down
2 changes: 0 additions & 2 deletions android/koin-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,10 @@ dependencies {
exclude group: "androidx.legacy"
}

// implementation "androidx.activity:activity:1.2.0-rc01"
implementation "androidx.activity:activity-ktx:1.1.0"
implementation "androidx.fragment:fragment-ktx:$androidx_fragment_version"

testImplementation "org.koin:koin-test-junit4:$koin_version"
// testImplementation "junit:junit:$junit_version"
testImplementation "org.mockito:mockito-inline:$mockito_version"

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'

ext {
android_sourceSet = true
pom_name = "koin-android-workmanager"
pom_name = "koin-androidx-workmanager"
pom_description = "Koin project - koin-androidx-workmanager"
}

Expand Down Expand Up @@ -39,8 +39,8 @@ dependencies {
// testImplementation "junit:junit:$junit_version"
testImplementation "org.mockito:mockito-inline:$mockito_version"

androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1' //+ androidxTestJUnitVersion
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.2' //+ androidxTestJUnitVersion
androidTestImplementation "androidx.work:work-testing:$androidx_workmanager"

}
Expand Down
5 changes: 5 additions & 0 deletions android/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

../gradlew bintrayUpload --info --no-parallel


2 changes: 1 addition & 1 deletion android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
// Android
include 'koin-android'
include 'koin-android-ext'
include 'koin-android-workmanager'
include 'koin-androidx-workmanager'

enableFeaturePreview('GRADLE_METADATA')
3 changes: 3 additions & 0 deletions android/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

../gradlew test --parallel
2 changes: 1 addition & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ allprojects {
targetCompatibility = JavaVersion.VERSION_1_8

kotlinOptions {
jvmTarget = '1.8'
// jvmTarget = '1.8'
apiVersion = '1.4'
languageVersion = '1.4'
freeCompilerArgs = ["-XXLanguage:+InlineClasses"]
Expand Down
3 changes: 3 additions & 0 deletions core/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

../gradlew clean
2 changes: 1 addition & 1 deletion core/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ kotlin.mpp.enableGranularSourceSetsMetadata=true

# Bintray
bintray_repo=koin
bintray_org=koin
bintray_org=ekito
bintray_github=https://github.com/InsertKoinIO/koin

# Fixes "Gradle 6.0 generates incorrect versions for Kotlin multiplatform projects
Expand Down
2 changes: 1 addition & 1 deletion core/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
185 changes: 0 additions & 185 deletions core/gradlew

This file was deleted.

Loading

0 comments on commit ee1f78f

Please sign in to comment.