[Thali-talk] QR codes

Michael Rogers michael at briarproject.org
Tue Apr 7 08:29:48 EDT 2015


On 07/04/15 13:38, Nathan of Guardian wrote:
> On Tue, Apr 7, 2015, at 04:25 AM, Michael Rogers wrote:
>> I wonder whether we should wrap this up as a component of some kind so
>> we can share improvements between Briar and ChatSecure. I don't want to
>> split Briar into multiple APKs, but maybe a library project?
>>
> 
> Yes please. I was wondering which method you used to build the zxing
> jar? Is that something we can include in the library project build to
> make fdroid/repro build folks happy?

I just copied some source directories from zxing's core project and
compiled them manually:

javac `find . -name '*.java'`
jar cvf zxing.jar `find . -name '*.class'`

Shouldn't be hard to write a script to do the same; I'll take a look
when I get some time. The required packages are:

com.google.zxing
com.google.zxing.common
com.google.zxing.common.detector
com.google.zxing.common.reedsolomon
com.google.zxing.qrcode
com.google.zxing.qrcode.decoder
com.google.zxing.qrcode.detector
com.google.zxing.qrcode.encoder

zxing uses Java 1.7 language features, so javac won't accept "-target
1.6", which I'd normally use when compiling for android-9 and above.
These classes are used by zxing's own Android app, so the bytecode
should be compatible with 1.6, but I'd prefer to have the compiler check
that if possible.

Cheers,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://pairlist10.pair.net/pipermail/thali-talk/attachments/20150407/fd67aefb/attachment.pgp>


More information about the Thali-talk mailing list