Skip to content

Commit

Permalink
Jitpack hosting support (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssawchenko authored Sep 4, 2020
1 parent 3ef2604 commit a2eed91
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ The format is based on the Steamclock [Release Management Guide](https://github.
- Added PR template (#21)
- Added support for Sentry (#24)
- Added readme (#16)
- Attempting to use Jitpack (#2)

---
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ buildscript {
// For Sentry + Proguard/R8 support
// https://github.com/getsentry/sentry-android-gradle-plugin/releases
classpath 'io.sentry:sentry-android-gradle-plugin:1.7.35'

classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}

Expand Down
33 changes: 32 additions & 1 deletion steamclog/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
//apply plugin: 'maven-publish'
apply plugin: 'com.github.dcendents.android-maven'
group='com.github.steamclock'

//apply plugin: 'io.sentry.android.gradle'
//apply plugin: 'com.google.firebase.crashlytics' // Firebase, Crashlytics
Expand Down Expand Up @@ -53,4 +56,32 @@ dependencies {
implementation 'io.sentry:sentry-android:2.3.0'

implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
}
}

// https://developer.android.com/studio/build/maven-publish-plugin
// Because the components are created only during the afterEvaluate phase, you must
// configure your publications using the afterEvaluate() lifecycle method.
//afterEvaluate {
// publishing {
// publications {
// // Creates a Maven publication called "release".
// release(MavenPublication) {
// // Applies the component for the release build variant.
// from components.release
//
// // You can then customize attributes of the publication as shown below.
// groupId = 'com.steamclock.steamclog'
// //artifactId = 'final'
// version = android.defaultConfig.versionName
// }
// // Creates a Maven publication called “debug”.
// debug(MavenPublication) {
// // Applies the component for the debug build variant.
// from components.debug
// groupId = 'com.steamclock.steamclog'
// //artifactId = 'final-debug'
// version = android.defaultConfig.versionName
// }
// }
// }
//}

0 comments on commit a2eed91

Please sign in to comment.