add jitpack compatebillity sixth try: fix testapp namespace and put publication into gradle root
This commit is contained in:
parent
69d9cb799b
commit
4d3eff9630
|
@ -26,4 +26,18 @@ plugins {
|
||||||
alias(libs.plugins.kotlinParcelize) apply false
|
alias(libs.plugins.kotlinParcelize) apply false
|
||||||
alias(libs.plugins.composeCompiler) apply false
|
alias(libs.plugins.composeCompiler) apply false
|
||||||
alias(libs.plugins.android.library) apply false
|
alias(libs.plugins.android.library) apply false
|
||||||
}
|
`maven-publish`
|
||||||
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
create<MavenPublication>("release") {
|
||||||
|
groupId = "com.github.the-scrabi"
|
||||||
|
artifactId = "NewPlayer"
|
||||||
|
version = "0.1-DEVEL"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ plugins {
|
||||||
alias(libs.plugins.androidHilt)
|
alias(libs.plugins.androidHilt)
|
||||||
alias(libs.plugins.kotlinParcelize)
|
alias(libs.plugins.kotlinParcelize)
|
||||||
alias(libs.plugins.composeCompiler)
|
alias(libs.plugins.composeCompiler)
|
||||||
`maven-publish`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
@ -46,20 +45,6 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
|
||||||
publications {
|
|
||||||
create<MavenPublication>("maven") {
|
|
||||||
groupId = "com.github.the-scrabi"
|
|
||||||
artifactId = "NewPlayer"
|
|
||||||
version = "0.1-DEVEL"
|
|
||||||
|
|
||||||
afterEvaluate {
|
|
||||||
from(components["release"])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(libs.androidx.core.ktx)
|
implementation(libs.androidx.core.ktx)
|
||||||
implementation(libs.androidx.appcompat)
|
implementation(libs.androidx.appcompat)
|
||||||
|
|
|
@ -28,7 +28,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "net.newpipe.newplayer"
|
namespace = "net.newpipe.newplayer.testapp"
|
||||||
compileSdk = 34
|
compileSdk = 34
|
||||||
|
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
|
@ -43,7 +43,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "net.newpipe.newplayer"
|
applicationId = "net.newpipe.newplayer.testapp"
|
||||||
minSdk = 21
|
minSdk = 21
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = 1
|
versionCode = 1
|
||||||
|
@ -103,10 +103,10 @@ dependencies {
|
||||||
implementation(libs.androidx.hilt.navigation.compose)
|
implementation(libs.androidx.hilt.navigation.compose)
|
||||||
|
|
||||||
// development impl
|
// development impl
|
||||||
//implementation(project(":new-player"))
|
implementation(project(":new-player"))
|
||||||
|
|
||||||
//jitpack test
|
//jitpack test
|
||||||
implementation(libs.newplayer)
|
//implementation(libs.newplayer)
|
||||||
|
|
||||||
ksp(libs.hilt.android.compiler)
|
ksp(libs.hilt.android.compiler)
|
||||||
ksp(libs.androidx.hilt.compiler)
|
ksp(libs.androidx.hilt.compiler)
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
* along with NewPlayer. If not, see <http://www.gnu.org/licenses/>.
|
* along with NewPlayer. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package net.newpipe.newplayer
|
package net.newpipe.newplayer.testapp
|
||||||
|
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
|
@ -18,7 +18,7 @@
|
||||||
* along with NewPlayer. If not, see <http://www.gnu.org/licenses/>.
|
* along with NewPlayer. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package net.newpipe.newplayer
|
package net.newpipe.newplayer.testapp
|
||||||
|
|
||||||
import android.app.Application
|
import android.app.Application
|
||||||
import dagger.hilt.android.HiltAndroidApp
|
import dagger.hilt.android.HiltAndroidApp
|
Loading…
Reference in New Issue