I'm using an old version 2.x of the Android SDK and would like to update to the latest version. Is there a migration guide available somewhere to install the new files and remove old files that aren't needed?
I currently have source code in com/radaee/* (five subdirectories), plus four versions of the librdpdf.so file. It looks like current versions use a .jar file, but what does that replace? Do I take out the librdpdf.so files, add the .jar file, and replace all the source code? Should I take the source code from PDFReader, RDPDFReader or ViewLib in the current (3.15) download?
I have made customizations to a few of the source code files, most significantly in PDFReader, so I'll need to merge my customizations into the new files.
first of all I suggest you to download and check the last version of the library to better understand how it works.
2.x is a very old version and the SDK has changed massively since then. PDFReader module has been deprecated, so you need to migrate to PDFLayoutView (used in the RDPDFReader module) that improves the performance, has higher zoom levels, new features and methods.
Okay, I've replaced the 2.x source code and jniLibs in my project with the 3.15 code and libs. I have two questions now:
1) Most of my customizations involved programmatically scrolling the PDF display -- so I've added methods like PDFGetX() and PDFSetX(x) to PDFReader. Are these features built into the SDK now, or will I still need to manage that myself?
2) All the new source files are trying to import a package com.radaee.viewlib. I can't find this in the default 3.15 download or the additional source code download. How can I add this file to my project so I can build and run the project?
I just added the jar file -- I didn't have that before because I thought it wasn't needed with the source code installed -- but the problem is the same. The build error says "package com.radaee.viewlib doesn't exist." I'm attaching a screen shot.
I've added all the Java classes from ViewLib/source/main/java, the libraries from ViewLib/source/main/jniLibs and the jar file from ViewLib/libs. It seems like I'm missing a file, but I searched 3.15 download and don't see any files named viewlib.