File tree Expand file tree Collapse file tree 7 files changed +32
-98
lines changed
Expand file tree Collapse file tree 7 files changed +32
-98
lines changed Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22apply plugin : ' kotlin-android'
33apply plugin : ' kotlin-kapt'
4+ apply plugin : ' maven-publish'
45android {
56 namespace ' com.ven.assists.base'
67 compileSdk 34
78
89 defaultConfig {
910 minSdk 24
1011
12+ versionCode 1
13+ versionName " 1.0"
14+
1115 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
1216 consumerProguardFiles " consumer-rules.pro"
1317 }
@@ -30,12 +34,23 @@ android {
3034 }
3135}
3236
37+ afterEvaluate {
38+ publishing {
39+ publications {
40+ release(MavenPublication ) {
41+ from components. release
42+ groupId = ' com.ven.assists.base'
43+ artifactId = ' assists-base'
44+ version = ' 3.0.0'
45+ }
46+ }
47+ }
48+ }
49+
3350dependencies {
3451 implementation ' androidx.core:core-ktx:1.13.1'
3552 implementation ' androidx.activity:activity-ktx:1.9.0'
3653 implementation ' androidx.appcompat:appcompat:1.6.1'
3754 implementation platform(' org.jetbrains.kotlin:kotlin-bom:1.8.22' )
3855 api ' com.blankj:utilcodex:1.31.1'
3956}
40-
41- apply from : rootProject. file(" gradle/maven-publish.gradle" )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -92,14 +92,15 @@ apply plugin: 'com.android.library'
9292apply plugin : ' maven-publish'
9393apply plugin : ' kotlin-android'
9494apply plugin : ' kotlin-kapt'
95+ apply plugin : ' maven-publish'
9596
9697def openCVersionName = " 4.9.0"
9798def openCVersionCode = ((4 * 100 + 9 ) * 100 + 0 ) * 10 + 0
9899
99100println " OpenCV: " + openCVersionName + " " + project. buildscript. sourceFile
100101
101102android {
102- namespace ' org .opencv'
103+ namespace ' com.ven.assists .opencv'
103104 compileSdk 34
104105
105106 defaultConfig {
@@ -172,24 +173,17 @@ android {
172173 }
173174}
174175
175- publishing {
176- publications {
177- release(MavenPublication ) {
178- groupId = ' org.opencv'
179- artifactId = ' opencv'
180- version = ' 4.9.0'
181-
182- afterEvaluate {
176+ afterEvaluate {
177+ publishing {
178+ publications {
179+ release(MavenPublication ) {
183180 from components. release
181+ groupId = ' com.ven.assists.opencv'
182+ artifactId = ' assists-opencv'
183+ version = ' 0.0.1'
184184 }
185185 }
186186 }
187- repositories {
188- maven {
189- name = ' myrepo'
190- url = " ${ project.buildDir} /repo"
191- }
192- }
193187}
194188
195189dependencies {
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3- package =" org .opencv" >
3+ package =" com.ven.assists .opencv" >
44
55 <application >
66 <provider
7- android : name =" .assists.AssistsOpencvFileProvider"
7+ android : name =" org.opencv .assists.AssistsOpencvFileProvider"
88 android : authorities =" ${applicationId}.assistsopencv.fileprovider"
99 android : exported =" false"
1010 android : grantUriPermissions =" true" >
Original file line number Diff line number Diff line change 22
33import java .util .List ;
44
5- import org .opencv .BuildConfig ;
6- import org .opencv .R ;
5+ import com . ven . assists .opencv .BuildConfig ;
6+ import com . ven . assists .opencv .R ;
77import org .opencv .core .Mat ;
88import org .opencv .core .Size ;
99
Original file line number Diff line number Diff line change 11package org .opencv .android ;
22
3- import org .opencv .R ;
3+ import com . ven . assists .opencv .R ;
44
55import android .content .Context ;
66import android .content .res .TypedArray ;
Original file line number Diff line number Diff line change 1212import android .util .Log ;
1313import android .view .ViewGroup .LayoutParams ;
1414
15- import org .opencv .BuildConfig ;
15+ import com . ven . assists .opencv .BuildConfig ;
1616import org .opencv .core .CvType ;
1717import org .opencv .core .Mat ;
1818import org .opencv .core .Size ;
You can’t perform that action at this time.
0 commit comments