Skip to content

Commit

Permalink
Merge pull request #1 from Manicben/publish-jitpack-ready
Browse files Browse the repository at this point in the history
Ready for Jitpack publishing
  • Loading branch information
Manicben authored Sep 5, 2021
2 parents 0278ef7 + f7a9b93 commit b311d6c
Show file tree
Hide file tree
Showing 280 changed files with 665 additions and 43,951 deletions.
103 changes: 60 additions & 43 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
# General temp. files
*~
*.tmp

# Eclipse project files
#.classpath
#.project

# built application files
# Built application files
*.apk
*.aar
*.ap_
*.aab

# files for the dex VM
# Files for the ART/Dalvik VM
*.dex

# Java class files
Expand All @@ -20,53 +14,76 @@
bin/
gen/
out/
lint.xml
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Eclipse project files
#.classpath
#.project
.checkstyle

# Maven
target
release.properties
pom.xml.*

# Ant
#build.xml
ant.properties
local.properties
proguard.cfg
proguard-project.txt

# Gradle files
.gradle/
build/

# Log Files
*.log

# Netbeans files
.netbeans.xml

# Intellij project files
*.iml
*.ipr
*.iws
.idea/
gen-external-apklibs/

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
.idea/jarRepositories.xml
# Android Studio 3 in .gitignore file.
.idea/caches
.idea/modules.xml
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
.idea/navEditor.xml

# Keystore files
*.jks
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/

# Google Services (e.g. APIs or Firebase)
# google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json

# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# Version control
vcs.xml

# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/

# Android Profiling
*.hprof
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

9 changes: 0 additions & 9 deletions PhysicaloidLibrary/.classpath

This file was deleted.

33 changes: 0 additions & 33 deletions PhysicaloidLibrary/.project

This file was deleted.

2 changes: 0 additions & 2 deletions PhysicaloidLibrary/.settings/org.eclipse.core.resources.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions PhysicaloidLibrary/.settings/org.eclipse.jdt.core.prefs

This file was deleted.

8 changes: 4 additions & 4 deletions PhysicaloidLibrary/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.physicaloid"
android:versionCode="20000"
android:versionName="02.00.00" >
</manifest>
package="com.manicben.physicaloid"
android:versionCode="10000"
android:versionName="01.00.00" >
</manifest>
79 changes: 71 additions & 8 deletions PhysicaloidLibrary/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,37 @@
apply plugin: 'android-library'
plugins {
id 'com.android.library'
id 'maven-publish'
}

dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
implementation("com.google.guava:guava:30.1.1-android")
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}

group = 'com.manicben'
version = '1.0'

android {
compileSdkVersion 18
buildToolsVersion '18.1.0'
compileSdkVersion 30

defaultConfig {
minSdkVersion 12
targetSdkVersion 12
targetSdkVersion 30
versionCode 1
versionName "1.0"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

sourceSets {
Expand All @@ -20,4 +40,47 @@ android {
java.srcDirs = ['src']
}
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
implementation("com.google.guava:guava:30.1.1-android")
}

// build a jar with source files
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
archiveClassifier.set('sources')
}

task javadoc(type: Javadoc) {
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
}

// build a jar with javadoc
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.manicben'
artifactId = 'PhysicaloidLibrary'
version = '1.0'
}
}
}
}
Loading

0 comments on commit b311d6c

Please sign in to comment.