Skip to content

Commit 731dfb3

Browse files
authored
Merge pull request #8 from kiwix/merge_libkiwix_wrapper
Merge libkiwix wrapper
2 parents 4b4e956 + 53415d8 commit 731dfb3

48 files changed

Lines changed: 2938 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
3+
buildscript {
4+
repositories {
5+
google()
6+
jcenter()
7+
8+
}
9+
dependencies {
10+
classpath 'com.android.tools.build:gradle:3.4.1'
11+
// NOTE: Do not place your application dependencies here; they belong
12+
// in the individual module build.gradle files
13+
}
14+
}
15+
16+
allprojects {
17+
repositories {
18+
google()
19+
jcenter()
20+
}
21+
}
22+
23+
task clean(type: Delete) {
24+
delete rootProject.buildDir
25+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Project-wide Gradle settings.
2+
# IDE (e.g. Android Studio) users:
3+
# Gradle settings configured through the IDE *will override*
4+
# any settings specified in this file.
5+
# For more details on how to configure your build environment visit
6+
# http://www.gradle.org/docs/current/userguide/build_environment.html
7+
# Specifies the JVM arguments used for the daemon process.
8+
# The setting is particularly useful for tweaking memory settings.
9+
org.gradle.jvmargs=-Xmx1536m
10+
# When configured, Gradle will run in incubating parallel mode.
11+
# This option should only be used with decoupled projects. More details, visit
12+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13+
# org.gradle.parallel=true
14+
# Kotlin code style for this project: "official" or "obsolete":
15+
kotlin.code.style=official
53.1 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Wed Jun 19 15:28:39 BST 2019
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip

android-kiwix-lib-publisher/gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android-kiwix-lib-publisher/gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
apply plugin: 'com.android.library'
2+
apply plugin: 'maven'
3+
4+
android {
5+
compileSdkVersion 28
6+
defaultConfig {
7+
minSdkVersion 15
8+
targetSdkVersion 28
9+
versionCode 1
10+
versionName "1.0"
11+
}
12+
buildTypes {
13+
release {
14+
minifyEnabled false
15+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
16+
}
17+
}
18+
}
19+
20+
dependencies {
21+
implementation 'com.getkeepsafe.relinker:relinker:1.3.1'
22+
}
23+
24+
task writePom {
25+
pom {
26+
project {
27+
groupId 'org.kiwix.kiwixlib'
28+
artifactId 'kiwixlib'
29+
version '10.1.1' + (System.env.KIWIXLIB_BUILDVERSION == null ? '' : '-'+System.env.KIWIXLIB_BUILDVERSION)
30+
packaging 'aar'
31+
name 'kiwixlib'
32+
url 'https://github.com/kiwix/libkiwix'
33+
licenses {
34+
license {
35+
name 'GPLv3'
36+
url 'https://www.gnu.org/licenses/gpl-3.0.en.html'
37+
}
38+
}
39+
developers {
40+
developer {
41+
id 'kiwix'
42+
name 'kiwix'
43+
email 'contact@kiwix.org'
44+
}
45+
}
46+
scm {
47+
connection 'https://github.com/kiwix/libkiwix.git'
48+
developerConnection 'https://github.com/kiwix/libkiwix.git'
49+
url 'https://github.com/kiwix/libkiwix'
50+
}
51+
}
52+
}.withXml {
53+
def dependenciesNode = asNode().appendNode('dependencies')
54+
55+
//Iterate over the implementation dependencies, adding a <dependency> node for each
56+
configurations.implementation.allDependencies.each {
57+
def dependencyNode = dependenciesNode.appendNode('dependency')
58+
dependencyNode.appendNode('groupId', it.group)
59+
dependencyNode.appendNode('artifactId', it.name)
60+
dependencyNode.appendNode('version', it.version)
61+
}
62+
}.writeTo("$buildDir/pom.xml")
63+
}
64+

0 commit comments

Comments
 (0)