Skip to content

Second beta release #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
f1fee7b
disable LCP profile URI / name customization, as all encryption specs…
danielweck Mar 2, 2017
b83ac06
excluded the actual LCP profile names / URIs from the build
danielweck Mar 3, 2017
1a75a8c
Merge pull request #32 from readium/feature/profiles
danielweck Mar 3, 2017
cce10e3
fixed Android build (C++ requires std:: imports)
danielweck Mar 3, 2017
2e5e58c
Android JNI: added support for UserKey Hint (JSON text_hint in LCPL)
danielweck Mar 7, 2017
ddeeefe
added support for empty hint URL
danielweck Mar 7, 2017
be7c82c
Build lcp with static library
clebeaupin Dec 2, 2016
a20d0a5
update LCP name (Lightweight -> Licensed) and maintainers
llemeurfr May 5, 2017
5ed02ce
see https://github.com/readium/readium-lcp-client/pull/26#issuecommen…
danielweck May 9, 2017
a5d6627
temp disable CRL (NetProvider hangs on Android) + fixed mixed ECDSA -…
danielweck May 9, 2017
6a432ec
removed unnecessary / unused functions (also prone to confusion, as m…
danielweck May 9, 2017
c94634f
Add new ignored patterns
clebeaupin May 10, 2017
bf084dc
Build lib with cmake
clebeaupin May 10, 2017
387f283
major fixes in CRL (Certificate Revocation List) support
danielweck May 10, 2017
2bb3511
Merge pull request #38 from readium/feature/CRL
danielweck May 10, 2017
4160f1f
Add extra cmake
clebeaupin May 11, 2017
213a846
removed unnecssary helper include
danielweck May 11, 2017
4c25c44
support for legacy user key passphrase hash
danielweck May 11, 2017
2687fa9
minor fix
danielweck May 11, 2017
35146e5
Merge remote-tracking branch 'upstream/develop' into static-library
clebeaupin May 11, 2017
fb5d181
Merge remote-tracking branch 'upstream/develop' into static-library
clebeaupin May 11, 2017
adb20d1
NetProvider compatible iOS ANdroid
danielweck May 11, 2017
857197a
Fix include
clebeaupin May 29, 2017
7808a88
Add cross platform based on gyp and ninja build engine
clebeaupin May 29, 2017
60c1850
Add directives -frrti and -fexceptions to fix some errors during comp…
clebeaupin May 29, 2017
42dec0d
Merge pull request #40 from readium/feature/cross-platform
danielweck May 30, 2017
ebc5c90
Merge branch 'develop' into feature/cmake
danielweck May 30, 2017
ef08c70
latest Gradle version
danielweck May 30, 2017
cb57305
re-instated ReadiumSDK error handler messaging, for builds with FEATU…
danielweck May 30, 2017
cd65c5e
Merge pull request #39 from readium/feature/cmake
danielweck May 30, 2017
40e53ad
updated Android Studio / Gradle / SDK dependencies (versions)
danielweck Sep 28, 2017
9f5b9c0
Gradle latest is 4.2 (was 3.5)
danielweck Sep 28, 2017
273dc2b
updated Android build tools version to 27
danielweck Oct 30, 2017
8db53be
bumped-up Android Studio / platform updates (+ added some console info)
danielweck Dec 15, 2017
b9d525a
explicit relative include path for streambuffs fixes Windows build
danielweck Dec 15, 2017
c3d993a
clean script
danielweck Dec 15, 2017
91e3d4c
Merge branch 'develop' of https://github.com/readium/readium-lcp-clie…
danielweck Dec 15, 2017
50c4c68
harmonize version numbers (consistent with other config files)
danielweck Dec 15, 2017
97980f0
added folder to clean SH script
danielweck Dec 15, 2017
688e1e7
Revert "explicit relative include path for streambuffs fixes Windows …
danielweck Dec 15, 2017
6ae365f
moving the ZipLib streambufs templated C++ classes fixes the Windows
danielweck Dec 16, 2017
dc188e9
ensures the ReadiumSDK lib is correctly inmported from DEBUG or RELEASE
danielweck Dec 16, 2017
51d3f55
DISABLE_CRL now works (just in case it is needed)
danielweck Jan 10, 2018
9a33f28
Android build tools version bump
danielweck Feb 2, 2018
d72e6ff
explicit integerValue for NSNumber (see https://github.com/readium/re…
danielweck Nov 4, 2018
b817e71
XCode project updated settings (see https://github.com/readium/readiu…
danielweck Nov 4, 2018
3a992f4
debug messages for LSD HTTP responses (not just HTTP code)
danielweck Nov 4, 2018
ca29891
LCP LSD: fixed debug messages, listener is now weak reference, added …
danielweck Nov 7, 2018
82750a7
LCP license 'service': now with convenient utility methods to obtain …
danielweck Nov 7, 2018
aa9d8de
Merge pull request #48 from readium/feature/xcode10
danielweck Nov 7, 2018
e4c02fd
header function name typo
danielweck Nov 18, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.lo
*.o
*.obj
*.pyc

# Precompiled Headers
*.gch
Expand Down Expand Up @@ -43,6 +44,14 @@ bld/
ipch/
.vs/

dist/
.externalNativeBuild/
.gradle/
.classpath

# cross-platform
platform/cross-platform/out
platform/cross-platform/vendor

# Windows
Thumbs.db
Expand All @@ -68,5 +77,8 @@ storage.json
result.epub

*.iml
.settings/
.project
local.properties

platform/android/lcp/libs/
platform/android/lcp/libs/
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
readium-lcp-client
==================

This repository is for the Readium Lightweight Content Protection (LCP) client side implementation work.
This repository is for the Readium Licensed Content Protection (LCP) client side implementation work.

Created by Artem Brazhnikov, Mickaël Menu.
Maintained by Cyrille Lebeaupin, Daniel Weck.


## Overview
Expand Down
26 changes: 26 additions & 0 deletions platform/android/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Android

## Properties

You can define some properties in local.properties file:

* ndk.dir: Path to the Ndk
* sdk.dir: Path to the Sdk
* readium.ndk_skipX86: If true, skip X86 compilation
* readium.ndk_skipARM: If true, skip ARM compilation
* readium.ndk_clang: If true, compile with clang
* readium.sdk_lib_dir: Path to readium sdk lib (*.so files) directory
* readium.sdk_include_dir: Path to readium include directory
* readium.extra_cmake: Path to an extra cmake that can modify lib compilation

## Clean

```
./gradlew clean
```

## Build

```
./gradlew build
```
37 changes: 34 additions & 3 deletions platform/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.6.0-alpha5'
Properties properties = new Properties()
properties.load(rootProject.file('local.properties').newDataInputStream())

def ndkClang = properties.getProperty('readium.ndk_clang', "false")
ndkClang = (ndkClang == "true") ? true : false;
rootProject.ext.set('readium_ndk_clang', ndkClang)

def ndkSkipX86 = properties.getProperty('readium.ndk_skipX86', "false")
ndkSkipX86 = (ndkSkipX86 == "true") ? true : false;
rootProject.ext.set('readium_ndk_skipX86', ndkSkipX86)

def ndkSkipARM = properties.getProperty('readium.ndk_skipARM', "false")
ndkSkipARM = (ndkSkipARM == "true") ? true : false;
rootProject.ext.set('readium_ndk_skipARM', ndkSkipARM)

def extraCmake = properties.getProperty('readium.extra_cmake', null)
rootProject.ext.set('readium_extra_cmake', extraCmake)

def readiumSdkLibDir = properties.getProperty('readium.sdk_lib_dir', null)
rootProject.ext.set('readium_sdk_lib_dir', readiumSdkLibDir)

def readiumSdkIncludeDir = properties.getProperty('readium.sdk_include_dir', null)
rootProject.ext.set('readium_sdk_include_dir', readiumSdkIncludeDir)

if (readiumSdkLibDir != null && readiumSdkIncludeDir != null) {
rootProject.ext.set('readium_lcp_build_content_filter', true)
} else {
rootProject.ext.set('readium_lcp_build_content_filter', false)
}

//https://bintray.com/android/android-tools/com.android.tools.build.gradle/view
classpath "com.android.tools.build:gradle:2.3.3"
}
}

allprojects {
repositories {
jcenter()
}
}
}
6 changes: 6 additions & 0 deletions platform/android/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

rm -rf build

rm -rf lib/build
rm -rf lib/.externalNativeBuild
6 changes: 4 additions & 2 deletions platform/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#Wed Aug 17 23:29:31 BST 2016
#Wed Apr 12 13:19:28 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
#https://services.gradle.org/distributions
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
# GRADLE EXPERIMENTAL requires 3.3
# GRADLE STABLE works with latest (4.4)
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
25 changes: 0 additions & 25 deletions platform/android/lcp/Application.mk

This file was deleted.

76 changes: 0 additions & 76 deletions platform/android/lcp/Experimental.mk

This file was deleted.

128 changes: 0 additions & 128 deletions platform/android/lcp/Stable.mk

This file was deleted.

Loading