mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-06-30 21:04:16 +00:00
add project adins
This commit is contained in:
parent
ad06ac5505
commit
f8f85d679d
5299 changed files with 625430 additions and 0 deletions
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
|
@ -0,0 +1,27 @@
|
|||
package com.adins.mss.base.util;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.adins.mss.dao.Sync;
|
||||
import com.adins.mss.dao.SyncDao;
|
||||
import com.adins.mss.foundation.db.dataaccess.SyncDataAccess;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import de.greenrobot.dao.query.QueryBuilder;
|
||||
|
||||
/**
|
||||
* Created by gigin.ginanjar on 15/03/2016.
|
||||
*/
|
||||
public class CustomizeDatabase extends SyncDataAccess {
|
||||
public static List<Sync> getAll(Context context) {
|
||||
QueryBuilder<Sync> qb = getSyncDao(context).queryBuilder();
|
||||
//TODO: Ganti String nya dengan LOV_GROUP yang mau di embedd
|
||||
qb.where(SyncDao.Properties.Lov_group.notIn("KOTA", "KELURAHAN", "KECAMATAN", "ASSETMASTER", "KODE POS"));//("PROVINSI", "KOTA", "KELURAHAN", "KECAMATAN", "KODE POS", "ASSET MASTER"));
|
||||
qb.build();
|
||||
if (qb.list().size() == 0) {
|
||||
return null;
|
||||
}
|
||||
return qb.list();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,585 @@
|
|||
{
|
||||
"project_info": {
|
||||
"project_number": "814888014770",
|
||||
"firebase_url": "https://aitmss-1fd04.firebaseio.com",
|
||||
"project_id": "aitmss-1fd04",
|
||||
"storage_bucket": "aitmss-1fd04.appspot.com"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:30c443717ea63b1d",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.coll"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-3mnsl7ja8ddiuv5sl5gqfvij9cm973na.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.coll",
|
||||
"certificate_hash": "b07630f358413826df1dceeff13dec3cc7642e36"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-o9drphjl20de1nbt9bd1tbuj08musiis.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.coll",
|
||||
"certificate_hash": "edf00b52879e51d97f85961fd196240bbd316220"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-1crpacj0ttvkjeimakn6qe6pmhu3qeq7.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.coll",
|
||||
"certificate_hash": "e831f754571d0287b1577c64c2f9da80dca8a28d"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-lqni1uhtl2omhj2ghl8ennrlpdtgchgi.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.coll",
|
||||
"certificate_hash": "781f237f99355c079785379c9bb39d0c6f036fba"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 2,
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:5c334278ae3d4dbd",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.coll.dev"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 1,
|
||||
"other_platform_oauth_client": []
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:62ea46ede52e350b",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.coll.trial"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 1,
|
||||
"other_platform_oauth_client": []
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:6168d59a3ce39f25",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.svy"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-5f1768ika3hs4ttrek8jmkmf5rahfi1l.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.svy",
|
||||
"certificate_hash": "b07630f358413826df1dceeff13dec3cc7642e36"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-6jbu06k8ntt610ah06be2q8fmf8g49u6.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.svy",
|
||||
"certificate_hash": "edf00b52879e51d97f85961fd196240bbd316220"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-nr69qi0ku9cgok5co187apdpgs0at6ie.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.svy",
|
||||
"certificate_hash": "e831f754571d0287b1577c64c2f9da80dca8a28d"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-34mdd9bo2goldi5a5hoeh4iup8nvcdvk.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.svy",
|
||||
"certificate_hash": "781f237f99355c079785379c9bb39d0c6f036fba"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 2,
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:4c9a50b93d56ebef",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.svy.dev"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 1,
|
||||
"other_platform_oauth_client": []
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:48590bba4365ec2d",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.odr"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-itt09df2ovn47an5rearlf1kh8ljp5tt.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.odr",
|
||||
"certificate_hash": "b07630f358413826df1dceeff13dec3cc7642e36"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-09lnve4i7o6ml5436v128stk0jfu5vug.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.odr",
|
||||
"certificate_hash": "edf00b52879e51d97f85961fd196240bbd316220"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-52el593n7dc31cgu431kiqes2qijklie.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.odr",
|
||||
"certificate_hash": "e831f754571d0287b1577c64c2f9da80dca8a28d"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-76sm9sf0veuhc96gtiqkdinju9b4al6d.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.odr",
|
||||
"certificate_hash": "781f237f99355c079785379c9bb39d0c6f036fba"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 2,
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:75bff1874bc58298",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.odr.dev"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 1,
|
||||
"other_platform_oauth_client": []
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:41ac49e3a1067b63",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.svy.trial"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 1,
|
||||
"other_platform_oauth_client": []
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:0056a18df222e269",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.odr.trial"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 1,
|
||||
"other_platform_oauth_client": []
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:2ce43e2402f184a7",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.mma"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 1,
|
||||
"other_platform_oauth_client": []
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:81af48a318e62233",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.mma.dev"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 1,
|
||||
"other_platform_oauth_client": []
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:4394bdce086fcfcc",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.mma.trial"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 1,
|
||||
"other_platform_oauth_client": []
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:814888014770:android:7314503471868713",
|
||||
"android_client_info": {
|
||||
"package_name": "com.adins.mss.base"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-51c5dehkiu9o90j7rdq9ke6fvlvaomtc.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.base",
|
||||
"certificate_hash": "781f237f99355c079785379c9bb39d0c6f036fba"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-aqe9bq2rc57suvnangenhpfai77f4j2u.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "com.adins.mss.base",
|
||||
"certificate_hash": "e831f754571d0287b1577c64c2f9da80dca8a28d"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyC6ybt31nRknv-l0dzR69vZZGPoSeHkAm8"
|
||||
},
|
||||
{
|
||||
"current_key": "AIzaSyDmV5RbC4xQFgzhTUAQMHUSbtFdl8wduII"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"analytics_service": {
|
||||
"status": 1
|
||||
},
|
||||
"appinvite_service": {
|
||||
"status": 2,
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "814888014770-qgllsrlpktvi162r6uqae4on3qtg0ap2.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"ads_service": {
|
||||
"status": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration_version": "1"
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
package com.adins.mss.base.dynamicform.form.questions;
|
||||
|
||||
import com.adins.mss.foundation.questiongenerator.QuestionBean;
|
||||
|
||||
/**
|
||||
* Created by gigin.ginanjar on 01/09/2016.
|
||||
*/
|
||||
public interface OnQuestionClickListener {
|
||||
void onSetLocationClick(QuestionBean bean, int group, int position);
|
||||
|
||||
void onEditDrawingClick(QuestionBean bean, int group, int position);
|
||||
|
||||
void onCapturePhotoClick(QuestionBean bean, int group, int position);
|
||||
|
||||
void onLookupSelectedListener(QuestionBean bean, int group, int position);
|
||||
|
||||
void onReviewClickListener(QuestionBean bean, int group, int position);
|
||||
|
||||
void onValidasiDukcapilListener(QuestionBean bean, int group, int position);
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
|
@ -0,0 +1,76 @@
|
|||
package com.github.jjobes.slidedatetimepicker;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.NumberPicker;
|
||||
import android.widget.TimePicker;
|
||||
|
||||
import com.adins.mss.base.R;
|
||||
import com.adins.mss.foundation.camerainapp.helper.Logger;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
/**
|
||||
* A subclass of {@link TimePicker} that uses
|
||||
* reflection to allow for customization of the default blue
|
||||
* dividers.
|
||||
*
|
||||
* @author jjobes
|
||||
*/
|
||||
public class CustomTimePicker extends TimePicker {
|
||||
private static final String TAG = "CustomTimePicker";
|
||||
|
||||
public CustomTimePicker(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
|
||||
Class<?> idClass = null;
|
||||
Class<?> numberPickerClass = null;
|
||||
Field selectionDividerField = null;
|
||||
Field hourField = null;
|
||||
Field minuteField = null;
|
||||
Field amPmField = null;
|
||||
NumberPicker hourNumberPicker = null;
|
||||
NumberPicker minuteNumberPicker = null;
|
||||
NumberPicker amPmNumberPicker = null;
|
||||
|
||||
try {
|
||||
// Create an instance of the id class
|
||||
idClass = Class.forName("com.android.internal.R$id");
|
||||
|
||||
// Get the fields that store the resource IDs for the hour, minute and amPm NumberPickers
|
||||
hourField = idClass.getField("hour");
|
||||
minuteField = idClass.getField("minute");
|
||||
amPmField = idClass.getField("amPm");
|
||||
|
||||
// Use the resource IDs to get references to the hour, minute and amPm NumberPickers
|
||||
hourNumberPicker = (NumberPicker) findViewById(hourField.getInt(null));
|
||||
minuteNumberPicker = (NumberPicker) findViewById(minuteField.getInt(null));
|
||||
amPmNumberPicker = (NumberPicker) findViewById(amPmField.getInt(null));
|
||||
|
||||
numberPickerClass = Class.forName("android.widget.NumberPicker");
|
||||
|
||||
// Set the value of the mSelectionDivider field in the hour, minute and amPm NumberPickers
|
||||
// to refer to our custom drawables
|
||||
selectionDividerField = numberPickerClass.getDeclaredField("mSelectionDivider");
|
||||
selectionDividerField.setAccessible(true);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
selectionDividerField.set(hourNumberPicker, getResources().getDrawable(R.drawable.selection_divider, getContext().getTheme()));
|
||||
selectionDividerField.set(minuteNumberPicker, getResources().getDrawable(R.drawable.selection_divider, getContext().getTheme()));
|
||||
selectionDividerField.set(amPmNumberPicker, getResources().getDrawable(R.drawable.selection_divider, getContext().getTheme()));
|
||||
} else {
|
||||
selectionDividerField.set(hourNumberPicker, getResources().getDrawable(R.drawable.selection_divider));
|
||||
selectionDividerField.set(minuteNumberPicker, getResources().getDrawable(R.drawable.selection_divider));
|
||||
selectionDividerField.set(amPmNumberPicker, getResources().getDrawable(R.drawable.selection_divider));
|
||||
}
|
||||
} catch (ClassNotFoundException e) {
|
||||
Logger.e(TAG, "ClassNotFoundException in CustomTimePicker", e);
|
||||
} catch (NoSuchFieldException e) {
|
||||
// Logger.e(TAG, "NoSuchFieldException in CustomTimePicker", e);
|
||||
} catch (IllegalAccessException e) {
|
||||
Logger.e(TAG, "IllegalAccessException in CustomTimePicker", e);
|
||||
} catch (IllegalArgumentException e) {
|
||||
Logger.e(TAG, "IllegalArgumentException in CustomTimePicker", e);
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,29 @@
|
|||
package com.adins.mss.base.checkin;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.adins.mss.dao.LocationInfo;
|
||||
import com.google.android.gms.maps.model.LatLng;
|
||||
|
||||
/**
|
||||
* Created by kusnendi.muhamad on 31/07/2017.
|
||||
*/
|
||||
|
||||
public interface CheckInInterface {
|
||||
public void startGPSTracking(Context context);
|
||||
|
||||
public LocationInfo getLocationInfoCheckIn();
|
||||
|
||||
public LocationInfo getNewLocation();
|
||||
|
||||
public void updateLocationCheckin();
|
||||
|
||||
public LocationInfo getCurrentCheckIn();
|
||||
|
||||
public String toLocationCheckInString(LocationInfo locationInfo);
|
||||
|
||||
public LatLng getLatLng(LocationInfo locationInfo);
|
||||
|
||||
public void getAddressLocation(Context context, LocationInfo locationInfo);
|
||||
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<stroke
|
||||
android:width="2dp"
|
||||
android:color="#FAFAFA" />
|
||||
|
||||
<corners android:radius="5dp" />
|
||||
</shape>
|
|
@ -0,0 +1,96 @@
|
|||
/*
|
||||
* Copyright (C) 2009 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.soundcloud.android.crop;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Matrix;
|
||||
|
||||
/*
|
||||
* Modified from original in AOSP.
|
||||
*/
|
||||
class RotateBitmap {
|
||||
|
||||
private Bitmap bitmap;
|
||||
private int rotation;
|
||||
|
||||
public RotateBitmap(Bitmap bitmap, int rotation) {
|
||||
this.bitmap = bitmap;
|
||||
this.rotation = rotation % 360;
|
||||
}
|
||||
|
||||
public int getRotation() {
|
||||
return rotation;
|
||||
}
|
||||
|
||||
public void setRotation(int rotation) {
|
||||
this.rotation = rotation;
|
||||
}
|
||||
|
||||
public Bitmap getBitmap() {
|
||||
return bitmap;
|
||||
}
|
||||
|
||||
public void setBitmap(Bitmap bitmap) {
|
||||
this.bitmap = bitmap;
|
||||
}
|
||||
|
||||
public Matrix getRotateMatrix() {
|
||||
// By default this is an identity matrix
|
||||
Matrix matrix = new Matrix();
|
||||
if (bitmap != null && rotation != 0) {
|
||||
// We want to do the rotation at origin, but since the bounding
|
||||
// rectangle will be changed after rotation, so the delta values
|
||||
// are based on old & new width/height respectively.
|
||||
int cx = bitmap.getWidth() / 2;
|
||||
int cy = bitmap.getHeight() / 2;
|
||||
matrix.preTranslate(-cx, -cy);
|
||||
matrix.postRotate(rotation);
|
||||
matrix.postTranslate(getWidth() / 2, getHeight() / 2);
|
||||
}
|
||||
return matrix;
|
||||
}
|
||||
|
||||
public boolean isOrientationChanged() {
|
||||
return (rotation / 90) % 2 != 0;
|
||||
}
|
||||
|
||||
public int getHeight() {
|
||||
if (bitmap == null) return 0;
|
||||
if (isOrientationChanged()) {
|
||||
return bitmap.getWidth();
|
||||
} else {
|
||||
return bitmap.getHeight();
|
||||
}
|
||||
}
|
||||
|
||||
public int getWidth() {
|
||||
if (bitmap == null) return 0;
|
||||
if (isOrientationChanged()) {
|
||||
return bitmap.getHeight();
|
||||
} else {
|
||||
return bitmap.getWidth();
|
||||
}
|
||||
}
|
||||
|
||||
public void recycle() {
|
||||
if (bitmap != null) {
|
||||
bitmap.recycle();
|
||||
bitmap = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue