forked from opensciencemap/vtm
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Render themes: SVG resources on iOS, improves #69
- Loading branch information
Showing
9 changed files
with
128 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,49 @@ | ||
###Implement Exemple: | ||
### Implementation example | ||
|
||
RoboVm needs the native libs/frameworks for create a build! | ||
Copy this files from vtm-ios-0.6.0-SNAPSHOT-natives.jar into a temp folder! | ||
RoboVm needs the native libs / frameworks to create a build. | ||
Copy those files from `vtm-ios-0.6.0-SNAPSHOT-natives.jar` into a temp folder. | ||
|
||
Create a copy task into your <b>build.gradle</b> | ||
Create a copy task into your **build.gradle**. | ||
|
||
```java | ||
```groovy | ||
task copyFrameWorks(type: Copy) { | ||
from(zipTree("./libs/vtm-ios-0.6.0-SNAPSHOT-natives.jar")) | ||
into("${buildDir}/native") | ||
} | ||
|
||
tasks.withType(org.gradle.api.tasks.compile.JavaCompile) { | ||
compileTask -> compileTask.dependsOn copyFrameWorks | ||
} | ||
``` | ||
|
||
Now you can configure your robovm.xml to implement the vtm-natives and the SVG-Framework | ||
|
||
``` | ||
<libs> | ||
<lib>z</lib> | ||
<lib>build/native/libvtm-jni.a</lib> <!--vtm native --> | ||
</libs> | ||
<frameworkPaths> | ||
<path>build/native</path> <!--SVGgh framework path --> | ||
</frameworkPaths> | ||
<frameworks> | ||
<framework>SVGgh</framework> <!--SVGgh framework name --> | ||
<framework>UIKit</framework> | ||
<framework>OpenGLES</framework> | ||
<framework>QuartzCore</framework> | ||
<framework>CoreGraphics</framework> | ||
<framework>OpenAL</framework> | ||
<framework>AudioToolbox</framework> | ||
<framework>AVFoundation</framework> | ||
</frameworks> | ||
Now you can configure your `robovm.xml` to implement the vtm-natives and the SVG-Framework. | ||
|
||
```xml | ||
<libs> | ||
<lib>z</lib> | ||
<lib>build/native/libvtm-jni.a</lib> <!--vtm native --> | ||
</libs> | ||
<frameworkPaths> | ||
<path>build/native</path> <!--SVGgh framework path --> | ||
</frameworkPaths> | ||
<frameworks> | ||
<framework>SVGgh</framework> <!--SVGgh framework name --> | ||
<framework>UIKit</framework> | ||
<framework>OpenGLES</framework> | ||
<framework>QuartzCore</framework> | ||
<framework>CoreGraphics</framework> | ||
<framework>OpenAL</framework> | ||
<framework>AudioToolbox</framework> | ||
<framework>AVFoundation</framework> | ||
</frameworks> | ||
``` | ||
|
||
Remember, the implementation of a iOS- framework is possible since iOS 8! | ||
So we must set the min iOS-Version at Info.plist.xml! | ||
Remember the implementation of a iOS framework is possible since iOS 8. | ||
So we must set the min iOS-Version at `Info.plist.xml`. | ||
|
||
``` | ||
```xml | ||
<dict> | ||
<key>MinimumOSVersion</key> | ||
<string>8.0</string> | ||
... | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters