Skip to content

Commit 2dc32b4

Browse files
update
1 parent c68ba3d commit 2dc32b4

File tree

13 files changed

+72
-11
lines changed

13 files changed

+72
-11
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ Hackfoldr mobile version
55

66
The actual content of the app is under hackfoldr/www
77

8-
To build and run the app:
8+
##To run the app with ionic
9+
under `hackfoldr/`, run `ionic serve`
10+
It will run the app on browser using gulp with auto page refresh.
11+
12+
`ionic emulate android` will build the apk and start emulator for android. With settings properly setup.
13+
14+
##To build and run the app with cordova:
915

1016
0. Add android SDK to your PATH variable
1117

@@ -25,3 +31,11 @@ e.g. $ echo $PATH
2531

2632
Start an emulator in Genymotion, dray the apk file to the emulator
2733

34+
Stack
35+
===========
36+
37+
Cordova (installed by NPM)
38+
Ionic (AngularJS)
39+
Gulp
40+
Apache Ant/ Gradle (TODO)
41+
Android SDK (Android studio)

hackfoldr/platforms/android/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" android:windowSoftInputMode="adjustPan" package="com.ionicframework.myapp460341" xmlns:android="http://schemas.android.com/apk/res/android">
33
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
44
<uses-permission android:name="android.permission.INTERNET" />
5-
<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">
5+
<application android:debuggable="false" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">
66
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:launchMode="singleTop" android:name="HackfoldrMobile" android:theme="@android:style/Theme.Black.NoTitleBar">
77
<intent-filter>
88
<action android:name="android.intent.action.MAIN" />

hackfoldr/platforms/android/CordovaLib/ant-build/build.prop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Last build type
2-
#Sat, 16 Aug 2014 23:58:34 +0800
2+
#Sun, 17 Aug 2014 12:15:18 +0800
33

44
build.last.target=debug
55

Binary file not shown.

hackfoldr/platforms/android/ant-build/AndroidManifest.cordova.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" android:windowSoftInputMode="adjustPan" package="com.ionicframework.myapp460341" xmlns:android="http://schemas.android.com/apk/res/android">
33
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
44
<uses-permission android:name="android.permission.INTERNET" />
5-
<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">
5+
<application android:debuggable="false" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">
66
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:launchMode="singleTop" android:name="HackfoldrMobile" android:theme="@android:style/Theme.Black.NoTitleBar">
77
<intent-filter>
88
<action android:name="android.intent.action.MAIN" />
Binary file not shown.
Binary file not shown.
Binary file not shown.

hackfoldr/platforms/android/ant-build/build.prop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Last build type
2-
#Sat, 16 Aug 2014 23:58:43 +0800
2+
#Sun, 17 Aug 2014 12:15:25 +0800
33

44
build.last.target=debug
55

hackfoldr/www/js/app.js

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ angular.module('starter', ['ionic', 'starter.controllers'])
3838
}
3939
});
4040
})
41-
4241
.config(function($stateProvider, $urlRouterProvider) {
4342
$stateProvider
4443

@@ -82,6 +81,20 @@ angular.module('starter', ['ionic', 'starter.controllers'])
8281
}
8382
}
8483
})
84+
85+
.state('app.image', {
86+
url: "/file/:fileId/image/",
87+
views: {
88+
'menuContent' :{
89+
templateUrl: "templates/files.html",
90+
controller: 'FileListsCtrl'
91+
},
92+
'mainContent' :{
93+
templateUrl: "templates/image.html",
94+
controller: 'FileCtrl'
95+
}
96+
}
97+
})
8598
.state('app.single', {
8699
url: "/file/:fileId",
87100
views: {
@@ -97,4 +110,10 @@ angular.module('starter', ['ionic', 'starter.controllers'])
97110
});
98111
// if none of the above states are matched, use this as the fallback
99112
$urlRouterProvider.otherwise('/app/files');
100-
});
113+
})
114+
// .run(["$templateCache",
115+
// function ($templateCache) {
116+
// $templateCache.put("template/iframe.html",
117+
// "<div>iframe testing</div>");
118+
// }
119+
// ]);;

0 commit comments

Comments
 (0)