forked from moagrius/TileView
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Arnaud Caillet
committed
Oct 25, 2023
1 parent
3f3cc58
commit 2aa3fab
Showing
6 changed files
with
137 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed Oct 26 20:44:34 CDT 2016 | ||
#Wed Oct 25 10:22:11 CEST 2023 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
// credit https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle | ||
// run ./gradlew clean build generateRelease | ||
|
||
apply plugin: 'maven' | ||
|
||
def groupId = 'com.qozix' | ||
def artifactId = 'tileview' | ||
def version = android.defaultConfig.versionName | ||
|
||
def localReleaseDest = "${buildDir}/release/${version}" | ||
|
||
task androidJavadocs(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar" | ||
classpath += files(ext.androidJar) | ||
} | ||
|
||
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) { | ||
classifier = 'javadoc' | ||
from androidJavadocs.destinationDir | ||
} | ||
|
||
task androidSourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
uploadArchives { | ||
repositories.mavenDeployer { | ||
pom.groupId = groupId | ||
pom.artifactId = artifactId | ||
pom.version = version | ||
// Add other pom properties here if you want (developer details / licenses) | ||
repository(url: "file://${localReleaseDest}") | ||
} | ||
} | ||
|
||
task zipRelease(type: Zip) { | ||
from localReleaseDest | ||
destinationDir buildDir | ||
archiveName "release-${version}.zip" | ||
} | ||
|
||
task generateRelease << { | ||
println "Release ${version} can be found at ${localReleaseDest}/" | ||
println "Release ${version} zipped can be found ${buildDir}/release-${version}.zip" | ||
} | ||
|
||
generateRelease.dependsOn(uploadArchives) | ||
generateRelease.dependsOn(zipRelease) | ||
|
||
artifacts { | ||
archives androidSourcesJar | ||
//archives androidJavadocsJar | ||
} | ||
//// credit https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle | ||
//// run ./gradlew clean build generateRelease | ||
// | ||
//apply plugin: 'maven-publish' | ||
// | ||
//def groupId = 'com.qozix' | ||
//def artifactId = 'tileview' | ||
//def version = android.defaultConfig.versionName | ||
// | ||
//def localReleaseDest = "${buildDir}/release/${version}" | ||
// | ||
//task androidJavadocs(type: Javadoc) { | ||
// source = android.sourceSets.main.java.srcDirs | ||
// ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar" | ||
// classpath += files(ext.androidJar) | ||
//} | ||
// | ||
//task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) { | ||
// classifier = 'javadoc' | ||
// from androidJavadocs.destinationDir | ||
//} | ||
// | ||
//task androidSourcesJar(type: Jar) { | ||
// classifier = 'sources' | ||
// from android.sourceSets.main.java.srcDirs | ||
//} | ||
// | ||
////uploadArchives { | ||
//// repositories.mavenDeployer { | ||
//// pom.groupId = groupId | ||
//// pom.artifactId = artifactId | ||
//// pom.version = version | ||
//// // Add other pom properties here if you want (developer details / licenses) | ||
//// repository(url: "file://${localReleaseDest}") | ||
//// } | ||
////} | ||
// | ||
//task zipRelease(type: Zip) { | ||
// from localReleaseDest | ||
// destinationDir buildDir | ||
// archiveName "release-${version}.zip" | ||
//} | ||
// | ||
////task generateRelease << { | ||
//// println "Release ${version} can be found at ${localReleaseDest}/" | ||
//// println "Release ${version} zipped can be found ${buildDir}/release-${version}.zip" | ||
////} | ||
// | ||
////generateRelease.dependsOn(uploadArchives) | ||
////generateRelease.dependsOn(zipRelease) | ||
// | ||
//artifacts { | ||
// archives androidSourcesJar | ||
// //archives androidJavadocsJar | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
apply plugin: 'com.android.library' | ||
plugins { | ||
id 'com.android.library' | ||
id 'maven-publish' | ||
} | ||
|
||
android { | ||
compileSdkVersion 23 | ||
buildToolsVersion "21.1.2" | ||
compileSdk 34 | ||
defaultConfig { | ||
minSdkVersion 11 | ||
targetSdkVersion 23 | ||
versionCode 40 | ||
versionName "2.2.9" | ||
minSdkVersion 21 | ||
targetSdkVersion 34 | ||
} | ||
buildTypes { | ||
release { | ||
|
@@ -21,9 +21,54 @@ android { | |
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
testCompile 'junit:junit:4.12' | ||
compile 'com.android.support:appcompat-v7:23.2.1' | ||
testImplementation 'junit:junit:4.12' | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation 'com.android.support:appcompat-v7:23.2.1' | ||
} | ||
|
||
apply from: 'aar-release.gradle' | ||
afterEvaluate { | ||
publishing { | ||
publications { | ||
release(MavenPublication) { | ||
from components.release | ||
|
||
groupId = 'com.github.smartapps-fr' | ||
artifactId = 'tileview' | ||
version = '1.0.0' | ||
|
||
pom { | ||
packaging 'aar' | ||
groupId 'com.github.smartapps-fr' | ||
artifactId 'tileview' | ||
|
||
// Add your description here | ||
name = 'tileview' | ||
description = 'TileView fork to maintain Smartapps libraries' | ||
url = 'https://smartapps.fr/' | ||
|
||
// Set your license | ||
licenses { | ||
license { | ||
name = 'The Apache Software License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'smartapps' | ||
name = 'Smartapps' | ||
email = '[email protected]' | ||
} | ||
} | ||
scm { | ||
connection = 'https://github.com/smartapps-fr/tileview.git' | ||
developerConnection = 'https://github.com/smartapps-fr/tileview.git' | ||
tag = '1.0.0' | ||
url = 'https://github.com/smartapps-fr/tileview.git' | ||
|
||
} | ||
} | ||
} | ||
} | ||
} | ||
} |