From e470872d7188b379e6a2a9f5002deaf7e9cc6dc1 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 24 Jan 2014 06:12:02 -0800 Subject: [PATCH] Add the iOS7-only PhotoExamplePlus Cydget example. --- PhotoExamplePlus.cydget/Info.plist | 14 +++ PhotoExamplePlus.cydget/background.html | 58 +++++++++++ PhotoExamplePlus.cydget/foreground.html | 127 ++++++++++++++++++++++++ makefile | 1 + 4 files changed, 200 insertions(+) create mode 100644 PhotoExamplePlus.cydget/Info.plist create mode 100644 PhotoExamplePlus.cydget/background.html create mode 100644 PhotoExamplePlus.cydget/foreground.html diff --git a/PhotoExamplePlus.cydget/Info.plist b/PhotoExamplePlus.cydget/Info.plist new file mode 100644 index 0000000..18ad3e7 --- /dev/null +++ b/PhotoExamplePlus.cydget/Info.plist @@ -0,0 +1,14 @@ +CYTagline = "a lame example Cydget that renders Camera photos"; +CYPlugin = "WebCycriptLockScreen"; +CYVersionFilter = (800); + +CYConfiguration = { + // these are actually relative URLs: you can specify arbitrary http:// or file:/// + Homepage = "foreground.html"; + Background = "background.html"; + + // if you are not using Cycript, then you should just delete this + CycriptURLs = "^file:///System/Library/LockCydgets/PhotoExamplePlus\\.cydget/.*\\.html$"; + + Scrollable = "NO"; +}; diff --git a/PhotoExamplePlus.cydget/background.html b/PhotoExamplePlus.cydget/background.html new file mode 100644 index 0000000..9af50a9 --- /dev/null +++ b/PhotoExamplePlus.cydget/background.html @@ -0,0 +1,58 @@ + + + +
+ diff --git a/PhotoExamplePlus.cydget/foreground.html b/PhotoExamplePlus.cydget/foreground.html new file mode 100644 index 0000000..4d2a6e6 --- /dev/null +++ b/PhotoExamplePlus.cydget/foreground.html @@ -0,0 +1,127 @@ + + + +
+ diff --git a/makefile b/makefile index 005519f..cf4d247 100644 --- a/makefile +++ b/makefile @@ -42,6 +42,7 @@ deb: all cp -a Welcome.cydget package/System/Library/LockCydgets/Welcome.cydget cp -a AwayView.cydget package/System/Library/LockCydgets/AwayView.cydget cp -a PhotoExample.cydget package/System/Library/LockCydgets/PhotoExample.cydget + cp -a PhotoExamplePlus.cydget package/System/Library/LockCydgets/PhotoExamplePlus.cydget mkdir -p package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle cp -a Info.plist package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle cp -a WebCycriptLockScreen package/System/Library/SpringBoardPlugins/WebCycriptLockScreen.bundle -- 2.45.2