Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7cdc8b6f
authored
Dec 10, 2016
by
Fernando Martínez Santiago
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
issues #678, #674 closed
parent
4ba9dd64
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
320 additions
and
218 deletions
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/Action.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/PictoAction.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/PictosAction.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/SubscribeAction.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/TalkAction.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/UnsubscribeAction.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/VocabularyAction.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/dao/PCBDBHelper.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/dao/User.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/dao/UserLogin.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/grammar/Vocabulary.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/NetService.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/iNetServiceDevice.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/grammar/ActionTalk.java → android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/websockets/ActionTalk.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/Room.java → android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/websockets/Room.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/websockets/StudentTalk.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/grammar/VocabularyTalk.java → android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/websockets/VocabularyTalk.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/grammar/iActionListener.java → android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/websockets/iActionListener.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/websockets/iStudentListener.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/grammar/iVocabularyListener.java → android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/websockets/iVocabularyListener.java
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/tools/PCBcontext.java
android/Pictogram/supervisor_tablet/supervisor_tablet.iml
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/PictogramActivity.java
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/StudentFragmentGrid.java
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/net/NetServiceTablet.java
android/Pictogram/tabletlibrary/tabletlibrary.iml
android/Pictogram/watch/src/main/java/com/yottacode/pictogram/watch/net/NetServiceWatch.java
android/Pictogram/watch/watch.iml
android/Pictogram/yotta_tablet/build.gradle
android/Pictogram/yotta_tablet/yotta_tablet.iml
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/Action.java
View file @
7cdc8b6f
...
@@ -2,16 +2,14 @@ package com.yottacode.pictogram.action;
...
@@ -2,16 +2,14 @@ package com.yottacode.pictogram.action;
import
android.util.Log
;
import
android.util.Log
;
import
com.yottacode.pictogram.
dao.Picto
;
import
com.yottacode.pictogram.
net.websockets.Room
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
org.json.JSONArray
;
import
org.json.JSONException
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
import
org.json.JSONObject
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.LinkedList
;
/**
/**
* User actions that happens when the user is online --> they are sent to the server by websockets (Room class)
* User actions that happens when the user is online --> they are sent to the server by websockets (Room class)
...
@@ -39,7 +37,7 @@ public abstract class Action {
...
@@ -39,7 +37,7 @@ public abstract class Action {
public
String
get_type
()
{
return
this
.
type
;}
public
String
get_type
()
{
return
this
.
type
;}
public
abstract
String
get_action
();
public
abstract
String
get_action
();
p
rotected
JSONObject
get_json
()
{
p
ublic
JSONObject
get_json
()
{
final
String
param_id_stu
=
"id_stu"
;
final
String
param_id_stu
=
"id_stu"
;
final
String
param_id_sup
=
"id_sup"
;
final
String
param_id_sup
=
"id_sup"
;
final
String
param_id_dev
=
"id_dev"
;
final
String
param_id_dev
=
"id_dev"
;
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/PictoAction.java
View file @
7cdc8b6f
...
@@ -2,6 +2,7 @@ package com.yottacode.pictogram.action;
...
@@ -2,6 +2,7 @@ package com.yottacode.pictogram.action;
import
android.util.Log
;
import
android.util.Log
;
import
com.yottacode.pictogram.net.websockets.Room
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
com.yottacode.pictogram.tools.PCBcontext
;
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/PictosAction.java
View file @
7cdc8b6f
...
@@ -2,15 +2,13 @@ package com.yottacode.pictogram.action;
...
@@ -2,15 +2,13 @@ package com.yottacode.pictogram.action;
import
android.util.Log
;
import
android.util.Log
;
import
com.yottacode.pictogram.net.websockets.Room
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
org.json.JSONArray
;
import
org.json.JSONArray
;
import
org.json.JSONException
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
import
org.json.JSONObject
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.LinkedList
;
import
java.util.LinkedList
;
/**
/**
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/SubscribeAction.java
View file @
7cdc8b6f
package
com
.
yottacode
.
pictogram
.
action
;
package
com
.
yottacode
.
pictogram
.
action
;
import
com.yottacode.pictogram.
dao.Picto
;
import
com.yottacode.pictogram.
net.websockets.Room
;
/**
/**
* User actions regarding a pictogram that happens when the user is online --> they are sent to the server by websockets (Room class)
* User actions regarding a pictogram that happens when the user is online --> they are sent to the server by websockets (Room class)
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/TalkAction.java
View file @
7cdc8b6f
package
com
.
yottacode
.
pictogram
.
action
;
package
com
.
yottacode
.
pictogram
.
action
;
import
com.yottacode.pictogram.net.websockets.Room
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.dao.Picto
;
/**
/**
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/UnsubscribeAction.java
View file @
7cdc8b6f
package
com
.
yottacode
.
pictogram
.
action
;
package
com
.
yottacode
.
pictogram
.
action
;
import
com.yottacode.pictogram.net.websockets.Room
;
/**
/**
* User actions regarding a pictogram that happens when the user is online --> they are sent to the server by websockets (Room class)
* User actions regarding a pictogram that happens when the user is online --> they are sent to the server by websockets (Room class)
* It is required, inter alia, to support session state diagram such
* It is required, inter alia, to support session state diagram such
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/action/VocabularyAction.java
View file @
7cdc8b6f
package
com
.
yottacode
.
pictogram
.
action
;
package
com
.
yottacode
.
pictogram
.
action
;
import
android.util.Log
;
import
com.yottacode.pictogram.net.websockets.Room
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
/**
/**
* User actions regarding a pictogram that happens when the user is online --> they are sent to the server by websockets (Room class)
* User actions regarding a pictogram that happens when the user is online --> they are sent to the server by websockets (Room class)
...
@@ -35,4 +30,4 @@ public class VocabularyAction extends PictoAction {
...
@@ -35,4 +30,4 @@ public class VocabularyAction extends PictoAction {
public
String
get_action
()
{
return
ACTION
;}
public
String
get_action
()
{
return
ACTION
;}
}
}
\ No newline at end of file
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/dao/PCBDBHelper.java
View file @
7cdc8b6f
...
@@ -83,7 +83,7 @@ public class PCBDBHelper extends SQLiteOpenHelper {
...
@@ -83,7 +83,7 @@ public class PCBDBHelper extends SQLiteOpenHelper {
* @param user the current PCB user (Student or Supervisor with a given Student collection)
* @param user the current PCB user (Student or Supervisor with a given Student collection)
* @see PCBDBHelper#getCurrentUser()
* @see PCBDBHelper#getCurrentUser()
*/
*/
p
rivate
void
setCurrentUser
(
User
user
)
{
p
ublic
void
setCurrentUser
(
User
user
)
{
this
.
currentUser
=
user
;
this
.
currentUser
=
user
;
PCBcontext
.
getDevice
().
setLastStuId
(
user
.
get_id_stu
());
PCBcontext
.
getDevice
().
setLastStuId
(
user
.
get_id_stu
());
if
(
user
.
is_supervisor
())
PCBcontext
.
getDevice
().
setLastSupId
(
user
.
get_id_sup
());
if
(
user
.
is_supervisor
())
PCBcontext
.
getDevice
().
setLastSupId
(
user
.
get_id_sup
());
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/dao/User.java
View file @
7cdc8b6f
...
@@ -27,8 +27,8 @@ public class User {
...
@@ -27,8 +27,8 @@ public class User {
public
final
static
class
JSON_STUDENT_ATTTRS
{
public
final
static
class
JSON_STUDENT_ATTTRS
{
static
String
CATEGORIES
=
"categories"
;
static
String
CATEGORIES
=
"categories"
;
static
String
INPUT_FEEDBACK
=
"input_feedback"
;
static
String
INPUT_FEEDBACK
=
"input_feedback"
;
static
String
INPUT_SELECTION
=
"input
selection"
;
static
String
INPUT_SELECTION
=
"input
_
selection"
;
static
String
PICTOGRAM_SIZE
=
"
pictogram
size"
;
static
String
PICTOGRAM_SIZE
=
"size"
;
static
String
TTS_ENGINE
=
"tts engine"
;
static
String
TTS_ENGINE
=
"tts engine"
;
static
String
TTS_VOICE
=
"tts voice"
;
static
String
TTS_VOICE
=
"tts voice"
;
}
}
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/dao/UserLogin.java
View file @
7cdc8b6f
...
@@ -194,6 +194,7 @@ public class UserLogin {
...
@@ -194,6 +194,7 @@ public class UserLogin {
GUITools
.
show_alert
(
activity
,
R
.
string
.
serverError
,
e
.
getMessage
());
GUITools
.
show_alert
(
activity
,
R
.
string
.
serverError
,
e
.
getMessage
());
Log
.
e
(
this
.
getClass
().
getCanonicalName
(),
"JSON:"
+
e
.
getLocalizedMessage
());
Log
.
e
(
this
.
getClass
().
getCanonicalName
(),
"JSON:"
+
e
.
getLocalizedMessage
());
if
(
progressDialog
.
isShowing
())
progressDialog
.
dismiss
();
if
(
progressDialog
.
isShowing
())
progressDialog
.
dismiss
();
}
}
}
}
...
@@ -225,7 +226,7 @@ public class UserLogin {
...
@@ -225,7 +226,7 @@ public class UserLogin {
}
}
}
//offline student login
}
//offline student login
}
}
p
rivate
void
set_student_oline
(
final
User
student
,
String
token
,
final
Intent
pictogramActivity
,
final
Activity
activity
)
{
p
ublic
void
set_student_oline
(
final
User
student
,
String
token
,
final
Intent
pictogramActivity
,
final
Activity
activity
)
{
final
ProgressDialog
progressDialog
=
ProgressDialog
.
show
(
activity
,
activity
.
getString
(
R
.
string
.
userLoadingTxt
),
activity
.
getString
(
R
.
string
.
loadingGrammar
));
final
ProgressDialog
progressDialog
=
ProgressDialog
.
show
(
activity
,
activity
.
getString
(
R
.
string
.
userLoadingTxt
),
activity
.
getString
(
R
.
string
.
loadingGrammar
));
PCBcontext
.
set_user
(
student
,
token
,
new
iImgDownloaderListener
()
{
PCBcontext
.
set_user
(
student
,
token
,
new
iImgDownloaderListener
()
{
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/grammar/Vocabulary.java
View file @
7cdc8b6f
...
@@ -5,12 +5,16 @@ import android.util.Log;
...
@@ -5,12 +5,16 @@ import android.util.Log;
import
com.yottacode.net.iRestapiListener
;
import
com.yottacode.net.iRestapiListener
;
import
com.yottacode.pictogram.R
;
import
com.yottacode.pictogram.R
;
import
com.yottacode.pictogram.action.Room
;
import
com.yottacode.pictogram.action.VocabularyAction
;
import
com.yottacode.pictogram.action.VocabularyAction
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.net.ImgDownloader
;
import
com.yottacode.pictogram.net.ImgDownloader
;
import
com.yottacode.pictogram.net.PictoUploader
;
import
com.yottacode.pictogram.net.PictoUploader
;
import
com.yottacode.pictogram.net.iImgDownloaderListener
;
import
com.yottacode.pictogram.net.iImgDownloaderListener
;
import
com.yottacode.pictogram.net.websockets.ActionTalk
;
import
com.yottacode.pictogram.net.websockets.Room
;
import
com.yottacode.pictogram.net.websockets.VocabularyTalk
;
import
com.yottacode.pictogram.net.websockets.iActionListener
;
import
com.yottacode.pictogram.net.websockets.iVocabularyListener
;
import
com.yottacode.pictogram.tools.Img
;
import
com.yottacode.pictogram.tools.Img
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
com.yottacode.tools.GUITools
;
import
com.yottacode.tools.GUITools
;
...
@@ -61,7 +65,7 @@ public class Vocabulary implements Iterable<Picto> {
...
@@ -61,7 +65,7 @@ public class Vocabulary implements Iterable<Picto> {
}
}
public
void
listen
(
Room
room
,
iVocabularyListener
listener
,
iActionListener
action_listener
)
{
public
void
listen
(
Room
room
,
iVocabularyListener
listener
,
iActionListener
action_listener
)
{
iVocabularyListener
listeners
[]
=
{
new
iVocabularyListener
()
{
iVocabularyListener
vocabulary_
listeners
[]
=
{
new
iVocabularyListener
()
{
@Override
@Override
public
void
change
(
action
action
,
int
picto_cat
,
int
picto_id
,
JSONObject
args
)
{
public
void
change
(
action
action
,
int
picto_cat
,
int
picto_id
,
JSONObject
args
)
{
switch
(
action
)
{
switch
(
action
)
{
...
@@ -98,8 +102,9 @@ public class Vocabulary implements Iterable<Picto> {
...
@@ -98,8 +102,9 @@ public class Vocabulary implements Iterable<Picto> {
}
}
}
}
},
listener
};
},
listener
};
new
VocabularyTalk
(
room
,
listeners
);
new
VocabularyTalk
(
room
,
vocabulary_
listeners
);
new
ActionTalk
(
room
,
new
iActionListener
[]
{
action_listener
});
new
ActionTalk
(
room
,
new
iActionListener
[]
{
action_listener
});
}
}
/**
/**
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/NetService.java
View file @
7cdc8b6f
...
@@ -158,4 +158,8 @@ public class NetService implements Runnable {
...
@@ -158,4 +158,8 @@ public class NetService implements Runnable {
Log
.
e
(
this
.
getClass
().
getName
(),
"PCB offline because exception happens: "
+
e
.
getMessage
());
Log
.
e
(
this
.
getClass
().
getName
(),
"PCB offline because exception happens: "
+
e
.
getMessage
());
notifyStatus
();
notifyStatus
();
}
}
public
iNetServiceDevice
getNetServiceDevice
()
{
return
this
.
device
;
}
}
}
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/iNetServiceDevice.java
View file @
7cdc8b6f
...
@@ -12,4 +12,5 @@ public interface iNetServiceDevice {
...
@@ -12,4 +12,5 @@ public interface iNetServiceDevice {
public
void
closeNotifyStatus
();
public
void
closeNotifyStatus
();
public
void
restart_app
();
public
void
restart_app
();
public
void
restart_app
(
Intent
intent
);
public
void
restart_app
(
Intent
intent
);
public
void
updateUserConfig
();
}
}
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/
grammar
/ActionTalk.java
→
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/
net/websockets
/ActionTalk.java
View file @
7cdc8b6f
package
com
.
yottacode
.
pictogram
.
grammar
;
package
com
.
yottacode
.
pictogram
.
net
.
websockets
;
import
android.util.Log
;
import
android.util.Log
;
import
com.github.nkzawa.emitter.Emitter
;
import
com.github.nkzawa.emitter.Emitter
;
import
com.yottacode.pictogram.action.Room
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
com.yottacode.pictogram.tools.PCBcontext
;
...
@@ -15,7 +14,7 @@ import org.json.JSONObject;
...
@@ -15,7 +14,7 @@ import org.json.JSONObject;
* @author Fernando Martinez Santiago
* @author Fernando Martinez Santiago
* @version 1.0
* @version 1.0
*/
*/
public
class
ActionTalk
implements
Emitter
.
Listener
{
public
class
ActionTalk
implements
Emitter
.
Listener
{
private
static
final
String
URL
=
"action"
;
private
static
final
String
URL
=
"action"
;
private
Room
room
;
private
Room
room
;
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/
action
/Room.java
→
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/
net/websockets
/Room.java
View file @
7cdc8b6f
package
com
.
yottacode
.
pictogram
.
action
;
package
com
.
yottacode
.
pictogram
.
net
.
websockets
;
import
android.util.Log
;
import
android.util.Log
;
import
com.github.nkzawa.emitter.Emitter
;
import
com.github.nkzawa.emitter.Emitter
;
import
org.json.JSONArray
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
import
com.github.nkzawa.socketio.client.Ack
;
import
com.github.nkzawa.socketio.client.Ack
;
import
com.github.nkzawa.socketio.client.SocketIOException
;
import
com.github.nkzawa.socketio.client.SocketIOException
;
import
com.yottacode.pictogram.dao.PCBDBHelper
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.net.SailsSocketsIO
;
import
com.yottacode.net.SailsSocketsIO
;
import
com.yottacode.pictogram.action.Action
;
import
com.yottacode.pictogram.action.SubscribeAction
;
import
com.yottacode.pictogram.action.UnsubscribeAction
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
java.io.IOException
;
import
org.json.JSONException
;
import
java.sql.SQLDataException
;
import
org.json.JSONObject
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Enumeration
;
import
java.util.HashMap
;
import
java.util.Hashtable
;
import
java.util.Hashtable
;
import
java.util.LinkedList
;
...
@@ -138,4 +129,6 @@ public class Room {
...
@@ -138,4 +129,6 @@ public class Room {
super
.
finalize
();
super
.
finalize
();
exit
();
exit
();
}
}
}
}
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/websockets/StudentTalk.java
0 → 100644
View file @
7cdc8b6f
package
com
.
yottacode
.
pictogram
.
net
.
websockets
;
/**
* Created by Fernando on 10/12/2016.
*/
import
android.util.Log
;
import
com.github.nkzawa.emitter.Emitter
;
import
com.yottacode.pictogram.dao.User
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
/**
* Websocket Vocabulary Room based on Room
* @author Fernando Martinez Santiago
* @version 1.0
*/
public
class
StudentTalk
implements
Emitter
.
Listener
{
private
static
final
String
URL
=
"updateStudent"
;
private
Room
room
;
iStudentListener
listeners
[];
public
StudentTalk
(
Room
room
,
iStudentListener
listeners
[])
{
this
.
room
=
room
;
this
.
room
.
listen
(
URL
,
this
);
this
.
listeners
=
listeners
;
}
@Override
public
void
call
(
Object
...
args
)
{
try
{
JSONObject
msg
=
((
JSONObject
)
args
[
0
]).
getJSONObject
(
"student"
);
Log
.
i
(
this
.
getClass
().
getName
(),
"raw Received message "
+
msg
.
toString
());
int
id
=
msg
.
getInt
(
"id"
);
String
username
=
msg
.
getString
(
"username"
);
String
surname
=
msg
.
getString
(
"surname"
);
String
gender
=
msg
.
getString
(
"gender"
);
String
pic
=
msg
.
getString
(
"pic"
);
String
lang
=
msg
.
getString
(
"lang"
);
String
attributes
=
msg
.
getString
(
"attributes"
);
User
user
=
PCBcontext
.
getPcbdb
().
getCurrentUser
();
User
updatedUser
=
new
User
(
id
,
username
,
user
.
get_pwd_stu
(),
username
,
surname
,
pic
,
gender
,
lang
,
attributes
,
user
.
get_id_sup
(),
user
.
get_email_sup
(),
user
.
get_pwd_sup
(),
user
.
get_name_sup
(),
user
.
get_surname_sup
(),
user
.
get_url_img_sup
(),
user
.
get_gender_sup
(),
user
.
get_lang_sup
(),
user
.
get_tts_engine_sup
());
Log
.
i
(
this
.
getClass
().
getName
(),
"Attributes"
+
attributes
+
" listeners:"
+
listeners
.
length
);
for
(
iStudentListener
listener:
listeners
)
listener
.
change
(
updatedUser
);
}
catch
(
JSONException
e
)
{
Log
.
e
(
this
.
getClass
().
getCanonicalName
(),
e
.
getClass
().
getCanonicalName
()
+
"--"
+
e
);
}
}
}
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/
grammar
/VocabularyTalk.java
→
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/
net/websockets
/VocabularyTalk.java
View file @
7cdc8b6f
package
com
.
yottacode
.
pictogram
.
grammar
;
package
com
.
yottacode
.
pictogram
.
net
.
websockets
;
import
android.util.Log
;
import
android.util.Log
;
import
com.github.nkzawa.emitter.Emitter
;
import
com.github.nkzawa.emitter.Emitter
;
import
com.yottacode.pictogram.action.Room
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.dao.Picto
;
import
org.json.JSONException
;
import
org.json.JSONException
;
...
@@ -14,7 +13,7 @@ import org.json.JSONObject;
...
@@ -14,7 +13,7 @@ import org.json.JSONObject;
* @author Fernando Martinez Santiago
* @author Fernando Martinez Santiago
* @version 1.0
* @version 1.0
*/
*/
public
class
VocabularyTalk
implements
Emitter
.
Listener
{
public
class
VocabularyTalk
implements
Emitter
.
Listener
{
private
static
final
String
URL
=
"vocabulary"
;
private
static
final
String
URL
=
"vocabulary"
;
private
Room
room
;
private
Room
room
;
...
@@ -24,7 +23,7 @@ public class VocabularyTalk implements Emitter.Listener {
...
@@ -24,7 +23,7 @@ public class VocabularyTalk implements Emitter.Listener {
public
VocabularyTalk
(
Room
room
,
iVocabularyListener
listeners
[])
{
public
VocabularyTalk
(
Room
room
,
iVocabularyListener
listeners
[])
{
this
.
room
=
room
;
this
.
room
=
room
;
this
.
room
.
listen
(
URL
,
this
);
this
.
room
.
listen
(
URL
,
this
);
this
.
listeners
=
listeners
;
this
.
listeners
=
listeners
;
}
}
@Override
@Override
...
@@ -50,12 +49,12 @@ public class VocabularyTalk implements Emitter.Listener {
...
@@ -50,12 +49,12 @@ public class VocabularyTalk implements Emitter.Listener {
int
picto_cat
=
attrs_stu_picto
!=
null
?
attrs_stu_picto
.
optInt
(
param_picto_cat
,
Picto
.
NO_CATEGORY
)
:
0
;
int
picto_cat
=
attrs_stu_picto
!=
null
?
attrs_stu_picto
.
optInt
(
param_picto_cat
,
Picto
.
NO_CATEGORY
)
:
0
;
Log
.
i
(
this
.
getClass
().
getName
(),
"Received message '"
+
action
+
Log
.
i
(
this
.
getClass
().
getName
(),
"Received message '"
+
action
+
"' for picto "
+
picto_id
+
" (cat "
+
picto_cat
+
", picto: "
+
picto_stupicto
);
"' for picto "
+
picto_id
+
" (cat "
+
picto_cat
+
", picto: "
+
picto_stupicto
);
for
(
iVocabularyListener
listener:
this
.
listeners
)
for
(
iVocabularyListener
listener:
this
.
listeners
)
listener
.
change
(
action
.
equals
(
action_update
)
?
iVocabularyListener
.
action
.
update
listener
.
change
(
action
.
equals
(
action_update
)
?
iVocabularyListener
.
action
.
update
:
action
.
equals
(
action_add
)
?
iVocabularyListener
.
action
.
add
:
action
.
equals
(
action_add
)
?
iVocabularyListener
.
action
.
add
:
iVocabularyListener
.
action
.
delete
:
iVocabularyListener
.
action
.
delete
,
picto_cat
,
picto_id
,
stu_picto
);
,
picto_cat
,
picto_id
,
stu_picto
);
}
catch
(
JSONException
e
)
{
}
catch
(
JSONException
e
)
{
Log
.
e
(
this
.
getClass
().
getCanonicalName
(),
e
.
getClass
().
getCanonicalName
()
+
"--"
+
e
);
Log
.
e
(
this
.
getClass
().
getCanonicalName
(),
e
.
getClass
().
getCanonicalName
()
+
"--"
+
e
);
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/
grammar
/iActionListener.java
→
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/
net/websockets
/iActionListener.java
View file @
7cdc8b6f
package
com
.
yottacode
.
pictogram
.
grammar
;
package
com
.
yottacode
.
pictogram
.
net
.
websockets
;
/**
/**
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/net/websockets/iStudentListener.java
0 → 100644
View file @
7cdc8b6f
package
com
.
yottacode
.
pictogram
.
net
.
websockets
;
import
com.yottacode.pictogram.dao.User
;
/**
* Vocabulary Listener
* @author Fernando Martinez Santiago
* @version 1.0
*/
public
interface
iStudentListener
{
public
void
change
(
User
updatedStudent
);
}
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/
grammar
/iVocabularyListener.java
→
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/
net/websockets
/iVocabularyListener.java
View file @
7cdc8b6f
package
com
.
yottacode
.
pictogram
.
grammar
;
package
com
.
yottacode
.
pictogram
.
net
.
websockets
;
import
com.yottacode.pictogram.dao.Picto
;
import
org.json.JSONArray
;
import
org.json.JSONObject
;
import
org.json.JSONObject
;
import
java.util.Hashtable
;
import
java.util.LinkedList
;
/**
/**
* Vocabulary Listener
* Vocabulary Listener
* @author Fernando Martinez Santiago
* @author Fernando Martinez Santiago
...
...
android/Pictogram/commonlibrary/src/main/java/com/yottacode/pictogram/tools/PCBcontext.java
View file @
7cdc8b6f
...
@@ -11,10 +11,12 @@ import com.yottacode.pictogram.dao.Device;
...
@@ -11,10 +11,12 @@ import com.yottacode.pictogram.dao.Device;
import
com.yottacode.pictogram.dao.PCBDBHelper
;
import
com.yottacode.pictogram.dao.PCBDBHelper
;
import
com.yottacode.pictogram.dao.User
;
import
com.yottacode.pictogram.dao.User
;
import
com.yottacode.pictogram.grammar.Vocabulary
;
import
com.yottacode.pictogram.grammar.Vocabulary
;
import
com.yottacode.pictogram.net.iNetServiceDevice
;
import
com.yottacode.pictogram.action.Room
;
import
com.yottacode.pictogram.net.NetService
;
import
com.yottacode.pictogram.net.NetService
;
import
com.yottacode.pictogram.net.iImgDownloaderListener
;
import
com.yottacode.pictogram.net.iImgDownloaderListener
;
import
com.yottacode.pictogram.net.iNetServiceDevice
;
import
com.yottacode.pictogram.net.websockets.Room
;
import
com.yottacode.pictogram.net.websockets.StudentTalk
;
import
com.yottacode.pictogram.net.websockets.iStudentListener
;
public
final
class
PCBcontext
{
public
final
class
PCBcontext
{
private
static
Context
context
;
private
static
Context
context
;
...
@@ -68,6 +70,15 @@ public final class PCBcontext {
...
@@ -68,6 +70,15 @@ public final class PCBcontext {
actionLog
=
new
ActionLog
();
actionLog
=
new
ActionLog
();
vocabulary
=
new
Vocabulary
(
listener
);
vocabulary
=
new
Vocabulary
(
listener
);
getNetService
().
notifyStatus
();
getNetService
().
notifyStatus
();
if
(
getNetService
().
online
())
new
StudentTalk
(
room
,
new
iStudentListener
[]
{
new
iStudentListener
()
{
@Override
public
void
change
(
User
updatedStudent
)
{
PCBcontext
.
getPcbdb
().
setCurrentUser
(
updatedStudent
);
PCBcontext
.
getDevice
().
insertUser
(
updatedStudent
);
PCBcontext
.
getNetService
().
getNetServiceDevice
().
updateUserConfig
();
}
}});
}
}
public
static
void
unset_user
()
{
public
static
void
unset_user
()
{
...
...
android/Pictogram/supervisor_tablet/supervisor_tablet.iml
View file @
7cdc8b6f
...
@@ -43,13 +43,6 @@
...
@@ -43,13 +43,6 @@
<sourceFolder
url=
"file://$MODULE_DIR$/src/CIFlavorDebug/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/CIFlavorDebug/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/CIFlavorDebug/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/CIFlavorDebug/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/CIFlavorDebug/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/CIFlavorDebug/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/r/androidTest/CIFlavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/aidl/androidTest/CIFlavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/CIFlavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/rs/androidTest/CIFlavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/apt/androidTest/CIFlavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/rs/androidTest/CIFlavor/debug"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/resValues/androidTest/CIFlavor/debug"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testCIFlavorDebug/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testCIFlavorDebug/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testCIFlavorDebug/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testCIFlavorDebug/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testCIFlavorDebug/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testCIFlavorDebug/assets"
type=
"java-test-resource"
/>
...
@@ -58,6 +51,13 @@
...
@@ -58,6 +51,13 @@
<sourceFolder
url=
"file://$MODULE_DIR$/src/testCIFlavorDebug/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testCIFlavorDebug/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testCIFlavorDebug/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testCIFlavorDebug/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testCIFlavorDebug/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testCIFlavorDebug/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/r/androidTest/CIFlavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/aidl/androidTest/CIFlavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/CIFlavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/rs/androidTest/CIFlavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/apt/androidTest/CIFlavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/rs/androidTest/CIFlavor/debug"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/resValues/androidTest/CIFlavor/debug"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/CIFlavor/res"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/CIFlavor/res"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/CIFlavor/resources"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/CIFlavor/resources"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/CIFlavor/assets"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/CIFlavor/assets"
type=
"java-resource"
/>
...
@@ -124,7 +124,6 @@
...
@@ -124,7 +124,6 @@
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/shaders"
isTestSource=
"true"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/assets"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/assets"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/blame"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/blame"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/builds"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/classes"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/classes"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/dependency-cache"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/dependency-cache"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/24.2.1/jars"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/24.2.1/jars"
/>
...
@@ -137,17 +136,11 @@
...
@@ -137,17 +136,11 @@
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/24.2.1/jars"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/24.2.1/jars"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/24.2.1/jars"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/24.2.1/jars"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/incremental"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/incremental"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/incremental-classes"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/incremental-runtime-classes"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/incremental-safeguard"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/incremental-safeguard"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/incremental-verifier"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/instant-run-resources"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/instant-run-support"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/jniLibs"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/jniLibs"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/manifests"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/manifests"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/
reload-dex
"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/
pre-dexed
"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/res"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/res"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/restart-dex"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/rs"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/rs"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/shaders"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/shaders"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/symbols"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/symbols"
/>
...
...
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/PictogramActivity.java
View file @
7cdc8b6f
...
@@ -39,12 +39,13 @@ import com.yottacode.pictogram.action.TalkAction;
...
@@ -39,12 +39,13 @@ import com.yottacode.pictogram.action.TalkAction;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.dao.Picto
;
import
com.yottacode.pictogram.dao.User
;
import
com.yottacode.pictogram.dao.User
;
import
com.yottacode.pictogram.grammar.Vocabulary
;
import
com.yottacode.pictogram.grammar.Vocabulary
;
import
com.yottacode.pictogram.
grammar
.iActionListener
;
import
com.yottacode.pictogram.
net.websockets
.iActionListener
;
import
com.yottacode.pictogram.grammar.iLocalPicto
;
import
com.yottacode.pictogram.grammar.iLocalPicto
;
import
com.yottacode.pictogram.
grammar
.iVocabularyListener
;
import
com.yottacode.pictogram.
net.websockets
.iVocabularyListener
;
import
com.yottacode.pictogram.net.PictoUploader
;
import
com.yottacode.pictogram.net.PictoUploader
;
import
com.yottacode.pictogram.net.iImgDownloaderListener
;
import
com.yottacode.pictogram.net.iImgDownloaderListener
;
import
com.yottacode.pictogram.tabletlibrary.R
;
import
com.yottacode.pictogram.tabletlibrary.R
;
import
com.yottacode.pictogram.tabletlibrary.net.NetServiceTablet
;
import
com.yottacode.pictogram.tools.Img
;
import
com.yottacode.pictogram.tools.Img
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
com.yottacode.pictogram.tts.TTSHelper
;
import
com.yottacode.pictogram.tts.TTSHelper
;
...
@@ -99,6 +100,8 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
...
@@ -99,6 +100,8 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
Animation
showPictoMainViewAnimation
;
Animation
showPictoMainViewAnimation
;
// Button used for showing the picto category view
// Button used for showing the picto category view
ImageButton
showPictoCategoriesViewButton
;
ImageButton
showPictoCategoriesViewButton
;
ImageButton
deleteButton
;
ImageButton
ttsButton
;
int
maxColumns
,
maxRows
,
maxInTape
;
int
maxColumns
,
maxRows
,
maxInTape
;
ScheduledThreadPoolExecutor
exec_mirror
=
null
;
ScheduledThreadPoolExecutor
exec_mirror
=
null
;
...
@@ -108,15 +111,7 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
...
@@ -108,15 +111,7 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
if
(
PCBcontext
.
getPcbdb
().
getCurrentUser
().
is_picto_size_big
())
{
maxColumns
=
getResources
().
getInteger
(
R
.
integer
.
columns_big
);
maxRows
=
getResources
().
getInteger
(
R
.
integer
.
rows_big
);
maxInTape
=
getResources
().
getInteger
(
R
.
integer
.
maxInTape_big
);
}
else
{
maxColumns
=
getResources
().
getInteger
(
R
.
integer
.
columns
);
maxRows
=
getResources
().
getInteger
(
R
.
integer
.
rows
);
maxInTape
=
getResources
().
getInteger
(
R
.
integer
.
maxInTape
);
}
requestWindowFeature
(
Window
.
FEATURE_NO_TITLE
);
requestWindowFeature
(
Window
.
FEATURE_NO_TITLE
);
setContentView
(
PCBcontext
.
getPcbdb
().
getCurrentUser
().
is_picto_size_big
()
?
R
.
layout
.
activity_pictogram_big
:
R
.
layout
.
activity_pictogram
);
setContentView
(
PCBcontext
.
getPcbdb
().
getCurrentUser
().
is_picto_size_big
()
?
R
.
layout
.
activity_pictogram_big
:
R
.
layout
.
activity_pictogram
);
...
@@ -193,22 +188,6 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
...
@@ -193,22 +188,6 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
this
.
pictoCategoryGridView
=
(
GridView
)
this
.
findViewById
(
R
.
id
.
picto_category_grid_view
);
this
.
pictoCategoryGridView
=
(
GridView
)
this
.
findViewById
(
R
.
id
.
picto_category_grid_view
);
this
.
pictoCategoryGridView
.
setAdapter
(
this
.
pictoCategoryGridAdapter
);
this
.
pictoCategoryGridView
.
setAdapter
(
this
.
pictoCategoryGridAdapter
);
this
.
pictoMainGridView
.
setNumColumns
(
this
.
maxColumns
);
this
.
pictoCategoryGridView
.
setNumColumns
(
this
.
maxColumns
);
startTTS
();
this
.
tapeGridView
.
setOnDragListener
(
new
OnPictoDragListener
());
this
.
tapeGridView
.
setOnItemClickListener
(
new
AdapterView
.
OnItemClickListener
()
{
@Override
public
void
onItemClick
(
AdapterView
<?>
parent
,
View
view
,
int
position
,
long
id
)
{
Log
.
i
(
this
.
getClass
().
getCanonicalName
(),
" Delete item "
+
position
+
"("
+
PictogramActivity
.
this
.
tapeAdapter
.
getItem
(
position
).
get_translation
()+
")"
);
PCBcontext
.
getActionLog
().
log
(
new
TalkAction
(
TalkAction
.
DELETE
,
PictogramActivity
.
this
.
tapeAdapter
.
getItem
(
position
)));
PictogramActivity
.
this
.
tapeAdapter
.
deleteItem
(
position
);
PictogramActivity
.
this
.
tapeAdapter
.
notifyDataSetChanged
();
}
});
this
.
pictoMainGridView
.
setOnDragListener
(
new
OnPictoDragListener
());
this
.
pictoMainGridView
.
setOnDragListener
(
new
OnPictoDragListener
());
this
.
pictoCategoryGridView
.
setOnDragListener
(
new
OnPictoDragListener
());
this
.
pictoCategoryGridView
.
setOnDragListener
(
new
OnPictoDragListener
());
...
@@ -219,8 +198,8 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
...
@@ -219,8 +198,8 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
this
.
pictoMainGridView
.
setOnItemLongClickListener
(
new
OnPictoLongClickListener
());
this
.
pictoMainGridView
.
setOnItemLongClickListener
(
new
OnPictoLongClickListener
());
this
.
pictoCategoryGridView
.
setOnItemLongClickListener
(
new
OnPictoLongClickListener
());
this
.
pictoCategoryGridView
.
setOnItemLongClickListener
(
new
OnPictoLongClickListener
());
final
ImageButton
deleteButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
button_delete
);
this
.
deleteButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
button_delete
);
final
ImageButton
ttsButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
button_tts
);
this
.
ttsButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
button_tts
);
ttsButton
.
setOnClickListener
(
new
OnTTSButtonClickListener
());
ttsButton
.
setOnClickListener
(
new
OnTTSButtonClickListener
());
ttsButton
.
setOnLongClickListener
(
new
View
.
OnLongClickListener
()
{
ttsButton
.
setOnLongClickListener
(
new
View
.
OnLongClickListener
()
{
@Override
@Override
...
@@ -233,19 +212,50 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
...
@@ -233,19 +212,50 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
return
true
;
return
true
;
}
}
});
});
deleteButton
.
setOnClickListener
(
new
OnDeleteButtonClickListener
());
this
.
deleteButton
.
setOnClickListener
(
new
OnDeleteButtonClickListener
());
deleteButton
.
setOnLongClickListener
(
new
OnDeleteButtonLongClickListener
());
this
.
deleteButton
.
setOnLongClickListener
(
new
OnDeleteButtonLongClickListener
());
this
.
showPictoCategoriesViewButton
=
(
ImageButton
)
this
.
findViewById
(
R
.
id
.
showPictoCategoriesViewButton
);
this
.
showPictoCategoriesViewButton
=
(
ImageButton
)
this
.
findViewById
(
R
.
id
.
showPictoCategoriesViewButton
);
this
.
showPictoCategoriesViewButton
.
setOnClickListener
(
new
OnShowPictoCategoriesViewButtonClick
());
this
.
showPictoCategoriesViewButton
.
setOnClickListener
(
new
OnShowPictoCategoriesViewButtonClick
());
this
.
tapeGridView
.
setOnDragListener
(
new
OnPictoDragListener
());
this
.
tapeGridView
.
setOnItemClickListener
(
new
AdapterView
.
OnItemClickListener
()
{
@Override
public
void
onItemClick
(
AdapterView
<?>
parent
,
View
view
,
int
position
,
long
id
)
{
Log
.
i
(
this
.
getClass
().
getCanonicalName
(),
" Delete item "
+
position
+
"("
+
PictogramActivity
.
this
.
tapeAdapter
.
getItem
(
position
).
get_translation
()+
")"
);
PCBcontext
.
getActionLog
().
log
(
new
TalkAction
(
TalkAction
.
DELETE
,
PictogramActivity
.
this
.
tapeAdapter
.
getItem
(
position
)));
PictogramActivity
.
this
.
tapeAdapter
.
deleteItem
(
position
);
PictogramActivity
.
this
.
tapeAdapter
.
notifyDataSetChanged
();
}
});
((
NetServiceTablet
)
PCBcontext
.
getNetService
().
getNetServiceDevice
()).
setPictogramActivity
(
this
);
setConfig
();
this
.
generateAnimations
();
this
.
generateAnimations
();
if
(
this
.
currentCategory
!=
null
)
{
if
(
this
.
currentCategory
!=
null
)
{
this
.
hidePictoMainGridView
();
this
.
hidePictoMainGridView
();
}
else
{
}
else
{
this
.
showPictoMainGridView
();
this
.
showPictoMainGridView
();
}
}
}
public
void
setConfig
(){
if
(
PCBcontext
.
getPcbdb
().
getCurrentUser
().
is_picto_size_big
())
{
maxColumns
=
getResources
().
getInteger
(
R
.
integer
.
columns_big
);
maxRows
=
getResources
().
getInteger
(
R
.
integer
.
rows_big
);
maxInTape
=
getResources
().
getInteger
(
R
.
integer
.
maxInTape_big
);
}
else
{
maxColumns
=
getResources
().
getInteger
(
R
.
integer
.
columns
);
maxRows
=
getResources
().
getInteger
(
R
.
integer
.
rows
);
maxInTape
=
getResources
().
getInteger
(
R
.
integer
.
maxInTape
);
}
this
.
pictoMainGridView
.
setNumColumns
(
this
.
maxColumns
);
this
.
pictoCategoryGridView
.
setNumColumns
(
this
.
maxColumns
);
startTTS
();
setFeedback
(
new
View
[]
{
deleteButton
,
ttsButton
,
this
.
showPictoCategoriesViewButton
,
this
.
pictoCategoryGridView
,
this
.
pictoMainGridView
});
setFeedback
(
new
View
[]
{
deleteButton
,
ttsButton
,
this
.
showPictoCategoriesViewButton
,
this
.
pictoCategoryGridView
,
this
.
pictoMainGridView
});
}
}
private
void
setFeedback
(
View
views
[])
{
private
void
setFeedback
(
View
views
[])
{
boolean
vibration
=
PCBcontext
.
getPcbdb
().
getCurrentUser
().
input_feedback_on
(
User
.
JSON_STUDENT_INPUT_FEEDBACK
.
VIBRATION
);
boolean
vibration
=
PCBcontext
.
getPcbdb
().
getCurrentUser
().
input_feedback_on
(
User
.
JSON_STUDENT_INPUT_FEEDBACK
.
VIBRATION
);
...
@@ -254,19 +264,31 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
...
@@ -254,19 +264,31 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
this
.
feedback_highlight
=
PCBcontext
.
getPcbdb
().
getCurrentUser
().
input_feedback_on
(
User
.
JSON_STUDENT_INPUT_FEEDBACK
.
HIGHLIGHT
);
this
.
feedback_highlight
=
PCBcontext
.
getPcbdb
().
getCurrentUser
().
input_feedback_on
(
User
.
JSON_STUDENT_INPUT_FEEDBACK
.
HIGHLIGHT
);
Log
.
i
(
this
.
getClass
().
getCanonicalName
(),
"Feedback:"
+
" vibration:"
+
vibration
+
" Beep:"
+
click
+
" Read:"
+
feedback_read
+
" Highlight:"
+
feedback_highlight
);
Log
.
i
(
this
.
getClass
().
getCanonicalName
(),
"Feedback:"
+
" vibration:"
+
vibration
+
" Beep:"
+
click
+
" Read:"
+
feedback_read
+
" Highlight:"
+
feedback_highlight
);
ArrayList
<
View
.
OnTouchListener
>
touchListeners
=
new
ArrayList
<>()
;
View
.
OnTouchListener
touchListener
;
if
(
vibration
)
touchListener
=
touchListeners
.
add
(
new
View
.
OnTouchListener
()
{
vibration
?
new
View
.
OnTouchListener
()
{
@Override
@Override
public
boolean
onTouch
(
View
v
,
MotionEvent
event
)
{
public
boolean
onTouch
(
View
v
,
MotionEvent
event
)
{
v
.
performHapticFeedback
(
HapticFeedbackConstants
.
LONG_PRESS
,
boolean
enable_haptic
;
HapticFeedbackConstants
.
FLAG_IGNORE_GLOBAL_SETTING
);
enable_haptic
=!(
v
instanceof
GridView
);
if
(!
enable_haptic
)
{
int
x
=
Math
.
round
(
event
.
getX
());
int
y
=
Math
.
round
(
event
.
getY
());
int
position
=((
GridView
)
v
).
pointToPosition
(
x
,
y
);
Picto
p
=
position
>-
1
?
(
Picto
)((
GridView
)
v
).
getItemAtPosition
(
position
)
:
null
;
enable_haptic
=
(
p
!=
null
&&
p
.
get_id
()
!=
0
&&
!
p
.
is_invisible
()
&&
p
.
is_enabled
());
}
if
(
enable_haptic
)
v
.
performHapticFeedback
(
HapticFeedbackConstants
.
LONG_PRESS
,
HapticFeedbackConstants
.
FLAG_IGNORE_GLOBAL_SETTING
);
return
false
;
return
false
;
}
}
}
);
}
if
(
click
)
:
click
touchListeners
.
add
(
new
View
.
OnTouchListener
()
{
?
new
View
.
OnTouchListener
()
{
@Override
@Override
public
boolean
onTouch
(
View
v
,
MotionEvent
event
)
{
public
boolean
onTouch
(
View
v
,
MotionEvent
event
)
{
try
{
try
{
...
@@ -278,9 +300,14 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
...
@@ -278,9 +300,14 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
}
}
return
false
;
return
false
;
}
}
});
}
:
new
View
.
OnTouchListener
()
{
@Override
public
boolean
onTouch
(
View
v
,
MotionEvent
event
)
{
return
false
;
}
};
for
(
View
.
OnTouchListener
touchListener:
touchListeners
)
for
(
View
view
:
views
)
for
(
View
view
:
views
)
view
.
setOnTouchListener
(
touchListener
);
view
.
setOnTouchListener
(
touchListener
);
}
}
...
@@ -714,14 +741,14 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
...
@@ -714,14 +741,14 @@ public class PictogramActivity extends Activity implements iVocabularyListener {
public
void
onItemClick
(
AdapterView
<?>
parent
,
View
view
,
int
position
,
long
id
)
{
public
void
onItemClick
(
AdapterView
<?>
parent
,
View
view
,
int
position
,
long
id
)
{
Picto
p
=
getCurrentPictoGridAdapter
().
getItem
(
position
);
Picto
p
=
getCurrentPictoGridAdapter
().
getItem
(
position
);
p
.
set_mirror
(
false
);
if
(
PictogramActivity
.
this
.
feedback_read
)
if
(
PictogramActivity
.
this
.
feedback_read
)
PictogramActivity
.
this
.
tts
.
play
(
p
.
get_translation
());
PictogramActivity
.
this
.
tts
.
play
(
p
.
get_translation
());
if
(
p
!=
null
&&
p
.
get_id
()
!=
0
&&
!
p
.
is_invisible
()
&&
p
.
is_enabled
())
{
if
(
p
!=
null
&&
p
.
get_id
()
!=
0
&&
!
p
.
is_invisible
()
&&
p
.
is_enabled
())
{
Log
.
d
(
LOG_TAG
,
"Clic en picto: "
+
p
.
toString
());
Log
.
d
(
LOG_TAG
,
"Clic en picto: "
+
p
.
toString
());
p
.
set_mirror
(
false
);
LinkedList
<
Picto
>
ll
=
sort
(
PCBcontext
.
getVocabulary
().
next
(
p
));
LinkedList
<
Picto
>
ll
=
sort
(
PCBcontext
.
getVocabulary
().
next
(
p
));
//LinkedList<Picto> ll = vocabulary.next(p);
//LinkedList<Picto> ll = vocabulary.next(p);
Log
.
d
(
LOG_TAG
,
"Lista de pictos recuperada: "
+
ll
.
toString
());
Log
.
d
(
LOG_TAG
,
"Lista de pictos recuperada: "
+
ll
.
toString
());
...
...
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/gui/StudentFragmentGrid.java
View file @
7cdc8b6f
...
@@ -164,10 +164,10 @@ public class StudentFragmentGrid extends Fragment{
...
@@ -164,10 +164,10 @@ public class StudentFragmentGrid extends Fragment{
progressDialog
=
ProgressDialog
.
show
(
getActivity
(),
getString
(
R
.
string
.
imguserLoadingMsg
),
progressDialog
=
ProgressDialog
.
show
(
getActivity
(),
getString
(
R
.
string
.
imguserLoadingMsg
),
getString
(
R
.
string
.
userLoadingTxt
),
false
,
false
);
getString
(
R
.
string
.
userLoadingTxt
),
false
,
false
);
ImgDownloader
downloader
=
new
ImgDownloader
(
getActivity
(),
new
iImgDownloaderListener
()
{
ImgDownloader
downloader
=
new
ImgDownloader
(
getActivity
(),
new
iImgDownloaderListener
()
{
@Override
p
ublic
void
loadComplete
()
{
p
rivate
void
loaded
()
{
if
(
progressDialog
!=
null
&&
progressDialog
.
isShowing
())
progressDialog
.
dismiss
();
if
(
progressDialog
!=
null
&&
progressDialog
.
isShowing
())
progressDialog
.
dismiss
();
if
(
downloaded_students
.
size
()
>
1
)
{
if
(
downloaded_students
.
size
()
>
=
1
)
{
for
(
int
i
=
0
;
i
<
imgs
.
size
();
i
++)
for
(
int
i
=
0
;
i
<
imgs
.
size
();
i
++)
try
{
try
{
imageStudents
.
add
(
imgs
.
get
(
i
).
get_bitmap
(
getActivity
().
getBaseContext
()));
imageStudents
.
add
(
imgs
.
get
(
i
).
get_bitmap
(
getActivity
().
getBaseContext
()));
...
@@ -181,9 +181,14 @@ public class StudentFragmentGrid extends Fragment{
...
@@ -181,9 +181,14 @@ public class StudentFragmentGrid extends Fragment{
else
else
onlineStudentsOK
=
true
;
onlineStudentsOK
=
true
;
}
}
@Override
public
void
loadComplete
()
{
loaded
();
}
@Override
@Override
public
void
loadImg
(
Img
image
)
{
public
void
loadImg
(
Img
image
)
{
loaded
();
}
}
public
void
error
(
Exception
e
)
{
public
void
error
(
Exception
e
)
{
if
(
progressDialog
.
isShowing
())
progressDialog
.
dismiss
();
if
(
progressDialog
.
isShowing
())
progressDialog
.
dismiss
();
...
...
android/Pictogram/tabletlibrary/src/main/java/com/yottacode/pictogram/tabletlibrary/net/NetServiceTablet.java
View file @
7cdc8b6f
...
@@ -7,6 +7,7 @@ import android.util.Log;
...
@@ -7,6 +7,7 @@ import android.util.Log;
import
com.yottacode.pictogram.net.iNetServiceDevice
;
import
com.yottacode.pictogram.net.iNetServiceDevice
;
import
com.yottacode.pictogram.tabletlibrary.R
;
import
com.yottacode.pictogram.tabletlibrary.R
;
import
com.yottacode.pictogram.tabletlibrary.gui.PictogramActivity
;
import
com.yottacode.pictogram.tabletlibrary.gui.SerialActivity
;
import
com.yottacode.pictogram.tabletlibrary.gui.SerialActivity
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
com.yottacode.pictogram.tools.PCBcontext
;
...
@@ -19,6 +20,7 @@ import com.yottacode.pictogram.tools.PCBcontext;
...
@@ -19,6 +20,7 @@ import com.yottacode.pictogram.tools.PCBcontext;
public
class
NetServiceTablet
implements
iNetServiceDevice
{
public
class
NetServiceTablet
implements
iNetServiceDevice
{
private
static
NotificationCompat
.
Builder
builder
;
private
static
NotificationCompat
.
Builder
builder
;
private
PictogramActivity
pictogramActivity
;
public
void
build
()
{
public
void
build
()
{
...
@@ -85,4 +87,9 @@ public class NetServiceTablet implements iNetServiceDevice {
...
@@ -85,4 +87,9 @@ public class NetServiceTablet implements iNetServiceDevice {
}
}
public
void
restart_app
()
{
restart_app
(
null
);}
public
void
restart_app
()
{
restart_app
(
null
);}
public
void
setPictogramActivity
(
PictogramActivity
pictogramActivity
)
{
this
.
pictogramActivity
=
pictogramActivity
;}
public
void
updateUserConfig
()
{
this
.
pictogramActivity
.
setConfig
();
this
.
pictogramActivity
.
refresh
();
}
}
}
android/Pictogram/tabletlibrary/tabletlibrary.iml
View file @
7cdc8b6f
...
@@ -73,14 +73,6 @@
...
@@ -73,14 +73,6 @@
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/assets"
type=
"java-test-resource"
/>
...
@@ -89,6 +81,14 @@
...
@@ -89,6 +81,14 @@
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/shaders"
isTestSource=
"true"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/annotations"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/annotations"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/blame"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/blame"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/bundles"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/bundles"
/>
...
...
android/Pictogram/watch/src/main/java/com/yottacode/pictogram/watch/net/NetServiceWatch.java
View file @
7cdc8b6f
package
com
.
yottacode
.
pictogram
.
watch
.
net
;
package
com
.
yottacode
.
pictogram
.
watch
.
net
;
import
android.app.Activity
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.util.Log
;
import
android.util.Log
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.yottacode.pictogram.net.iNetServiceDevice
;
import
com.yottacode.pictogram.net.iNetServiceDevice
;
import
com.yottacode.pictogram.watch.R
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
com.yottacode.pictogram.tools.PCBcontext
;
import
com.yottacode.pictogram.watch.R
;
/**
/**
...
@@ -52,6 +51,11 @@ public class NetServiceWatch implements iNetServiceDevice {
...
@@ -52,6 +51,11 @@ public class NetServiceWatch implements iNetServiceDevice {
PCBcontext
.
getContext
().
startActivity
(
intent
);
PCBcontext
.
getContext
().
startActivity
(
intent
);
}
}
@Override
public
void
updateUserConfig
()
{
}
public
void
set_notifyTextView
(
TextView
_notifyTextView
)
{
public
void
set_notifyTextView
(
TextView
_notifyTextView
)
{
this
.
status
=
_notifyTextView
;
this
.
status
=
_notifyTextView
;
...
...
android/Pictogram/watch/watch.iml
View file @
7cdc8b6f
...
@@ -66,14 +66,6 @@
...
@@ -66,14 +66,6 @@
<sourceFolder
url=
"file://$MODULE_DIR$/src/DefaultFlavor/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/DefaultFlavor/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/DefaultFlavor/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/DefaultFlavor/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/DefaultFlavor/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/DefaultFlavor/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTestDefaultFlavor/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTestDefaultFlavor/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTestDefaultFlavor/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTestDefaultFlavor/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTestDefaultFlavor/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTestDefaultFlavor/assets"
type=
"java-test-resource"
/>
...
@@ -82,6 +74,14 @@
...
@@ -82,6 +74,14 @@
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTestDefaultFlavor/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTestDefaultFlavor/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTestDefaultFlavor/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTestDefaultFlavor/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTestDefaultFlavor/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTestDefaultFlavor/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/testDefaultFlavor/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/res"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/res"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/resources"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/resources"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/assets"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/assets"
type=
"java-resource"
/>
...
...
android/Pictogram/yotta_tablet/build.gradle
View file @
7cdc8b6f
...
@@ -9,14 +9,7 @@ android {
...
@@ -9,14 +9,7 @@ android {
storePassword 'danoia'
storePassword 'danoia'
}
}
}*/
}*/
signingConfigs
{
config
{
keyAlias
'config_key'
keyPassword
'config_pwd'
storeFile
file
(
'config_file'
)
storePassword
'config_pwd'
}
}
compileSdkVersion
24
compileSdkVersion
24
buildToolsVersion
"23.0.2"
buildToolsVersion
"23.0.2"
defaultConfig
{
defaultConfig
{
...
@@ -39,7 +32,6 @@ android {
...
@@ -39,7 +32,6 @@ android {
PreFlavor
{
PreFlavor
{
resValue
"string"
,
"server"
,
"https://pre.yottacode.com"
resValue
"string"
,
"server"
,
"https://pre.yottacode.com"
resValue
"bool"
,
"ssl_connect"
,
"true"
resValue
"bool"
,
"ssl_connect"
,
"true"
signingConfig
signingConfigs
.
config
}
}
}
}
}
}
...
...
android/Pictogram/yotta_tablet/yotta_tablet.iml
View file @
7cdc8b6f
...
@@ -8,12 +8,12 @@
...
@@ -8,12 +8,12 @@
</facet>
</facet>
<facet
type=
"android"
name=
"Android"
>
<facet
type=
"android"
name=
"Android"
>
<configuration>
<configuration>
<option
name=
"SELECTED_BUILD_VARIANT"
value=
"
CI
FlavorDebug"
/>
<option
name=
"SELECTED_BUILD_VARIANT"
value=
"
Pre
FlavorDebug"
/>
<option
name=
"SELECTED_TEST_ARTIFACT"
value=
"_android_test_"
/>
<option
name=
"SELECTED_TEST_ARTIFACT"
value=
"_android_test_"
/>
<option
name=
"ASSEMBLE_TASK_NAME"
value=
"assemble
CI
FlavorDebug"
/>
<option
name=
"ASSEMBLE_TASK_NAME"
value=
"assemble
Pre
FlavorDebug"
/>
<option
name=
"COMPILE_JAVA_TASK_NAME"
value=
"compile
CI
FlavorDebugSources"
/>
<option
name=
"COMPILE_JAVA_TASK_NAME"
value=
"compile
Pre
FlavorDebugSources"
/>
<afterSyncTasks>
<afterSyncTasks>
<task>
generate
CI
FlavorDebugSources
</task>
<task>
generate
Pre
FlavorDebugSources
</task>
</afterSyncTasks>
</afterSyncTasks>
<option
name=
"ALLOW_USER_CONFIGURATION"
value=
"false"
/>
<option
name=
"ALLOW_USER_CONFIGURATION"
value=
"false"
/>
<option
name=
"MANIFEST_FILE_RELATIVE_PATH"
value=
"/src/main/AndroidManifest.xml"
/>
<option
name=
"MANIFEST_FILE_RELATIVE_PATH"
value=
"/src/main/AndroidManifest.xml"
/>
...
@@ -24,64 +24,64 @@
...
@@ -24,64 +24,64 @@
</facet>
</facet>
</component>
</component>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_7"
inherit-compiler-output=
"false"
>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_7"
inherit-compiler-output=
"false"
>
<output
url=
"file://$MODULE_DIR$/build/intermediates/classes/
CI
Flavor/debug"
/>
<output
url=
"file://$MODULE_DIR$/build/intermediates/classes/
Pre
Flavor/debug"
/>
<output-test
url=
"file://$MODULE_DIR$/build/intermediates/classes/test/
CI
Flavor/debug"
/>
<output-test
url=
"file://$MODULE_DIR$/build/intermediates/classes/test/
Pre
Flavor/debug"
/>
<exclude-output
/>
<exclude-output
/>
<content
url=
"file://$MODULE_DIR$"
>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/r/
CI
Flavor/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/r/
Pre
Flavor/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/aidl/
CI
Flavor/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/aidl/
Pre
Flavor/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/buildConfig/
CI
Flavor/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/buildConfig/
Pre
Flavor/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/rs/
CI
Flavor/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/rs/
Pre
Flavor/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/apt/
CI
Flavor/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/apt/
Pre
Flavor/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/rs/
CI
Flavor/debug"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/rs/
Pre
Flavor/debug"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/resValues/
CI
Flavor/debug"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/resValues/
Pre
Flavor/debug"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
FlavorDebug/res"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
FlavorDebug/res"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
FlavorDebug/resources"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
FlavorDebug/resources"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
FlavorDebug/assets"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
FlavorDebug/assets"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
FlavorDebug/aidl"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
FlavorDebug/aidl"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
FlavorDebug/java"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
FlavorDebug/java"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
FlavorDebug/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
FlavorDebug/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
FlavorDebug/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
FlavorDebug/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
FlavorDebug/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
FlavorDebug/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/r/androidTest/
CI
Flavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/r/androidTest/
Pre
Flavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/aidl/androidTest/
CI
Flavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/aidl/androidTest/
Pre
Flavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/
CI
Flavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/
Pre
Flavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/rs/androidTest/
CI
Flavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/rs/androidTest/
Pre
Flavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/apt/androidTest/
CI
Flavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/apt/androidTest/
Pre
Flavor/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/rs/androidTest/
CI
Flavor/debug"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/rs/androidTest/
Pre
Flavor/debug"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/resValues/androidTest/
CI
Flavor/debug"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/resValues/androidTest/
Pre
Flavor/debug"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
CI
FlavorDebug/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
Pre
FlavorDebug/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
CI
FlavorDebug/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
Pre
FlavorDebug/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
CI
FlavorDebug/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
Pre
FlavorDebug/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
CI
FlavorDebug/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
Pre
FlavorDebug/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
CI
FlavorDebug/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
Pre
FlavorDebug/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
CI
FlavorDebug/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
Pre
FlavorDebug/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
CI
FlavorDebug/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
Pre
FlavorDebug/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
CI
FlavorDebug/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test
Pre
FlavorDebug/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
Flavor/res"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
Flavor/res"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
Flavor/resources"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
Flavor/resources"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
Flavor/assets"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
Flavor/assets"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
Flavor/aidl"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
Flavor/aidl"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
Flavor/java"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
Flavor/java"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
Flavor/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
Flavor/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
Flavor/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
Flavor/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
CI
Flavor/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
Pre
Flavor/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testCI
Flavor/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestPre
Flavor/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testCI
Flavor/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestPre
Flavor/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testCI
Flavor/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestPre
Flavor/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testCI
Flavor/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestPre
Flavor/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testCI
Flavor/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestPre
Flavor/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testCI
Flavor/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestPre
Flavor/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testCI
Flavor/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestPre
Flavor/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testCI
Flavor/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestPre
Flavor/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestCI
Flavor/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testPre
Flavor/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestCI
Flavor/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testPre
Flavor/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestCI
Flavor/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testPre
Flavor/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestCI
Flavor/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testPre
Flavor/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestCI
Flavor/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testPre
Flavor/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestCI
Flavor/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testPre
Flavor/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestCI
Flavor/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testPre
Flavor/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
androidTestCI
Flavor/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/
testPre
Flavor/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/res"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/res"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/resources"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/resources"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/assets"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/assets"
type=
"java-resource"
/>
...
@@ -106,14 +106,6 @@
...
@@ -106,14 +106,6 @@
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/jni"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/rs"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/shaders"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/assets"
type=
"java-test-resource"
/>
...
@@ -122,6 +114,14 @@
...
@@ -122,6 +114,14 @@
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/shaders"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/res"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/resources"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/assets"
type=
"java-test-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/aidl"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/java"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/jni"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/rs"
isTestSource=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/androidTest/shaders"
isTestSource=
"true"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/assets"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/assets"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/blame"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/blame"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/builds"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/build/intermediates/builds"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment