Révision 62ed0250
App_Resources/Android/src/main/AndroidManifest.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="utf-8"?> |
2 | 2 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 |
package="__PACKAGE__" |
4 |
android:versionCode="10004"
|
|
5 |
android:versionName="1.0.4">
|
|
4 |
android:versionCode="10006"
|
|
5 |
android:versionName="1.0.6">
|
|
6 | 6 |
|
7 | 7 |
<supports-screens |
8 | 8 |
android:smallScreens="true" |
... | ... | |
12 | 12 |
|
13 | 13 |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> |
14 | 14 |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> |
15 |
<uses-permission android:name="android.permission.CAMERA"/> |
|
15 | 16 |
<uses-permission android:name="android.permission.INTERNET"/> |
16 | 17 |
|
17 | 18 |
<application |
18 | 19 |
android:name="com.tns.NativeScriptApplication" |
19 | 20 |
android:allowBackup="true" |
21 |
android:requestLegacyExternalStorage="true" |
|
20 | 22 |
android:icon="@drawable/icon" |
21 | 23 |
android:label="@string/app_name" |
22 | 24 |
android:theme="@style/AppTheme"> |
src/app/settings/settings.component.ts | ||
---|---|---|
128 | 128 |
let p = <TextField>getViewById(parent, "pseudo"); |
129 | 129 |
let e = <TextField>getViewById(parent, "email"); |
130 | 130 |
|
131 |
this.pseudo = p.text;
|
|
131 |
this.pseudo = p.text.toLowerCase().replace(/[^a-z0-9]/g, "")
|
|
132 | 132 |
this.email = e.text; |
133 | 133 |
|
134 | 134 |
// console.log("on a un parent, le pseudo : " + this.pseudo); |
src/app/teachers/teachers.component.ts | ||
---|---|---|
55 | 55 |
|
56 | 56 |
onSaveTap(args) { |
57 | 57 |
let a = <TextField>getViewById(app.getRootView(), "album"); |
58 |
this.album = a.text; |
|
58 |
this.album = a.text.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
59 | 59 |
a = <TextField>getViewById(app.getRootView(), "albumPass"); |
60 | 60 |
this.albumPass = a.text; |
61 | 61 |
a = <TextField>getViewById(app.getRootView(), "albumPassAdmin"); |
Formats disponibles : Unified diff