Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aisha cordova extension #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.example.hello;

public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "com.example.hello";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 10000;
public static final String VERSION_NAME = "1.0.0";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/

package com.example.hello;

public final class R {
public static final class array {
public static final int country_codes=0x7f080000;
}
public static final class attr {
}
public static final class color {
public static final int contents_text=0x7f090000;
public static final int encode_view=0x7f090001;
public static final int possible_result_points=0x7f090002;
public static final int result_minor_text=0x7f090003;
public static final int result_points=0x7f090004;
public static final int result_text=0x7f090005;
public static final int result_view=0x7f090006;
public static final int status_text=0x7f090007;
public static final int transparent=0x7f090008;
public static final int viewfinder_laser=0x7f090009;
public static final int viewfinder_mask=0x7f09000a;
}
public static final class dimen {
public static final int half_padding=0x7f0a0000;
public static final int standard_padding=0x7f0a0001;
}
public static final class drawable {
public static final int flashbuttonoff=0x7f020000;
public static final int flashbuttonon=0x7f020001;
public static final int ic_action_next_item=0x7f020002;
public static final int ic_action_previous_item=0x7f020003;
public static final int ic_action_remove=0x7f020004;
public static final int launcher_icon=0x7f020005;
public static final int overlay_mw=0x7f020006;
public static final int screen=0x7f020007;
public static final int share_via_barcode=0x7f020008;
public static final int shopper_icon=0x7f020009;
public static final int zoom=0x7f02000a;
}
public static final class id {
public static final int RelativeLayout1=0x7f0b001d;
public static final int back_button=0x7f0b0019;
public static final int barcode_image_view=0x7f0b000c;
public static final int bookmark_title=0x7f0b0007;
public static final int bookmark_url=0x7f0b0008;
public static final int contents_supplement_text_view=0x7f0b0013;
public static final int contents_text_view=0x7f0b0012;
public static final int decode=0x7f0b0000;
public static final int decode_failed=0x7f0b0001;
public static final int decode_succeeded=0x7f0b0002;
public static final int done_button=0x7f0b001a;
public static final int flashButton=0x7f0b001f;
public static final int format_text_view=0x7f0b000d;
public static final int help_contents=0x7f0b0018;
public static final int history_detail=0x7f0b001c;
public static final int history_title=0x7f0b001b;
public static final int image_view=0x7f0b0017;
public static final int launch_product_query=0x7f0b0003;
public static final int menu_history_clear_text=0x7f0b002c;
public static final int menu_history_send=0x7f0b002b;
public static final int meta_text_view=0x7f0b0011;
public static final int meta_text_view_label=0x7f0b0010;
public static final int overlayImage=0x7f0b001e;
public static final int page_number_view=0x7f0b0024;
public static final int preview_view=0x7f0b0009;
public static final int query_button=0x7f0b0022;
public static final int query_text_view=0x7f0b0021;
public static final int quit=0x7f0b0004;
public static final int restart_preview=0x7f0b0005;
public static final int result_button_view=0x7f0b0014;
public static final int result_list_view=0x7f0b0023;
public static final int result_view=0x7f0b000b;
public static final int return_scan_result=0x7f0b0006;
public static final int share_app_button=0x7f0b0026;
public static final int share_bookmark_button=0x7f0b0027;
public static final int share_clipboard_button=0x7f0b0029;
public static final int share_contact_button=0x7f0b0028;
public static final int share_text_view=0x7f0b002a;
public static final int shopper_button=0x7f0b0015;
public static final int snippet_view=0x7f0b0025;
public static final int status_view=0x7f0b0016;
public static final int time_text_view=0x7f0b000f;
public static final int type_text_view=0x7f0b000e;
public static final int viewfinder_view=0x7f0b000a;
public static final int zoomButton=0x7f0b0020;
}
public static final class layout {
public static final int bookmark_picker_list_item=0x7f040000;
public static final int capture=0x7f040001;
public static final int encode=0x7f040002;
public static final int help=0x7f040003;
public static final int history_list_item=0x7f040004;
public static final int scanner=0x7f040005;
public static final int search_book_contents=0x7f040006;
public static final int search_book_contents_header=0x7f040007;
public static final int search_book_contents_list_item=0x7f040008;
public static final int share=0x7f040009;
}
public static final class menu {
public static final int capture=0x7f0c0000;
public static final int encode=0x7f0c0001;
public static final int history=0x7f0c0002;
}
public static final class mipmap {
public static final int icon=0x7f030000;
}
public static final class raw {
public static final int beep=0x7f060000;
}
public static final class string {
public static final int activity_name=0x7f070078;
public static final int app_name=0x7f070079;
public static final int app_picker_name=0x7f070000;
public static final int bookmark_picker_name=0x7f070001;
public static final int button_add_calendar=0x7f070002;
public static final int button_add_contact=0x7f070003;
public static final int button_back=0x7f070004;
public static final int button_book_search=0x7f070005;
public static final int button_cancel=0x7f070006;
public static final int button_custom_product_search=0x7f070007;
public static final int button_dial=0x7f070008;
public static final int button_done=0x7f070009;
public static final int button_email=0x7f07000a;
public static final int button_get_directions=0x7f07000b;
public static final int button_google_shopper=0x7f07000c;
public static final int button_mms=0x7f07000d;
public static final int button_ok=0x7f07000e;
public static final int button_open_browser=0x7f07000f;
public static final int button_product_search=0x7f070010;
public static final int button_search_book_contents=0x7f070011;
public static final int button_share_app=0x7f070012;
public static final int button_share_bookmark=0x7f070013;
public static final int button_share_by_email=0x7f070014;
public static final int button_share_by_sms=0x7f070015;
public static final int button_share_clipboard=0x7f070016;
public static final int button_share_contact=0x7f070017;
public static final int button_show_map=0x7f070018;
public static final int button_sms=0x7f070019;
public static final int button_web_search=0x7f07001a;
public static final int button_wifi=0x7f07001b;
public static final int contents_contact=0x7f07001c;
public static final int contents_email=0x7f07001d;
public static final int contents_location=0x7f07001e;
public static final int contents_phone=0x7f07001f;
public static final int contents_sms=0x7f070020;
public static final int contents_text=0x7f070021;
public static final int history_clear_one_history_text=0x7f070022;
public static final int history_clear_text=0x7f070023;
public static final int history_email_title=0x7f070024;
public static final int history_empty=0x7f070025;
public static final int history_empty_detail=0x7f070026;
public static final int history_send=0x7f070027;
public static final int history_title=0x7f070028;
public static final int launcher_name=0x7f07007a;
public static final int menu_encode_mecard=0x7f070029;
public static final int menu_encode_vcard=0x7f07002a;
public static final int menu_help=0x7f07002b;
public static final int menu_history=0x7f07002c;
public static final int menu_settings=0x7f07002d;
public static final int menu_share=0x7f07002e;
public static final int msg_bulk_mode_scanned=0x7f07002f;
public static final int msg_camera_framework_bug=0x7f070030;
public static final int msg_default_format=0x7f070031;
public static final int msg_default_meta=0x7f070032;
public static final int msg_default_mms_subject=0x7f070033;
public static final int msg_default_status=0x7f070034;
public static final int msg_default_time=0x7f070035;
public static final int msg_default_type=0x7f070036;
public static final int msg_encode_contents_failed=0x7f070037;
public static final int msg_google_books=0x7f070038;
public static final int msg_google_product=0x7f070039;
public static final int msg_google_shopper_missing=0x7f07003a;
public static final int msg_install_google_shopper=0x7f07003b;
public static final int msg_intent_failed=0x7f07003c;
public static final int msg_redirect=0x7f07003d;
public static final int msg_sbc_book_not_searchable=0x7f07003e;
public static final int msg_sbc_failed=0x7f07003f;
public static final int msg_sbc_no_page_returned=0x7f070040;
public static final int msg_sbc_page=0x7f070041;
public static final int msg_sbc_results=0x7f070042;
public static final int msg_sbc_searching_book=0x7f070043;
public static final int msg_sbc_snippet_unavailable=0x7f070044;
public static final int msg_sbc_unknown_page=0x7f070045;
public static final int msg_share_explanation=0x7f070046;
public static final int msg_share_subject_line=0x7f070047;
public static final int msg_share_text=0x7f070048;
public static final int msg_sure=0x7f070049;
public static final int msg_unmount_usb=0x7f07004a;
public static final int preferences_actions_title=0x7f07004b;
public static final int preferences_auto_focus_title=0x7f07004c;
public static final int preferences_bulk_mode_summary=0x7f07004d;
public static final int preferences_bulk_mode_title=0x7f07004e;
public static final int preferences_copy_to_clipboard_title=0x7f07004f;
public static final int preferences_custom_product_search_summary=0x7f070050;
public static final int preferences_custom_product_search_title=0x7f070051;
public static final int preferences_decode_1D_title=0x7f070052;
public static final int preferences_decode_Data_Matrix_title=0x7f070053;
public static final int preferences_decode_QR_title=0x7f070054;
public static final int preferences_device_bug_workarounds_title=0x7f070055;
public static final int preferences_disable_continuous_focus_summary=0x7f070056;
public static final int preferences_disable_continuous_focus_title=0x7f070057;
public static final int preferences_disable_exposure_title=0x7f070058;
public static final int preferences_front_light_summary=0x7f070059;
public static final int preferences_front_light_title=0x7f07005a;
public static final int preferences_general_title=0x7f07005b;
public static final int preferences_name=0x7f07005c;
public static final int preferences_play_beep_title=0x7f07005d;
public static final int preferences_remember_duplicates_summary=0x7f07005e;
public static final int preferences_remember_duplicates_title=0x7f07005f;
public static final int preferences_result_title=0x7f070060;
public static final int preferences_scanning_title=0x7f070061;
public static final int preferences_search_country=0x7f070062;
public static final int preferences_supplemental_summary=0x7f070063;
public static final int preferences_supplemental_title=0x7f070064;
public static final int preferences_try_bsplus=0x7f070065;
public static final int preferences_try_bsplus_summary=0x7f070066;
public static final int preferences_vibrate_title=0x7f070067;
public static final int result_address_book=0x7f070068;
public static final int result_calendar=0x7f070069;
public static final int result_email_address=0x7f07006a;
public static final int result_geo=0x7f07006b;
public static final int result_isbn=0x7f07006c;
public static final int result_product=0x7f07006d;
public static final int result_sms=0x7f07006e;
public static final int result_tel=0x7f07006f;
public static final int result_text=0x7f070070;
public static final int result_uri=0x7f070071;
public static final int result_wifi=0x7f070072;
public static final int sbc_name=0x7f070073;
public static final int share_name=0x7f070074;
public static final int wifi_changing_network=0x7f070075;
public static final int wifi_ssid_label=0x7f070076;
public static final int wifi_type_label=0x7f070077;
}
public static final class xml {
public static final int config=0x7f050000;
public static final int preferences=0x7f050001;
public static final int provider_paths=0x7f050002;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/

/**
* Exports the ExposedJsApi.java object if available, otherwise exports the PromptBasedNativeApi.
*/

var nativeApi = this._cordovaNative || require('cordova/android/promptbasednativeapi');
var currentApi = nativeApi;

module.exports = {
get: function() { return currentApi; },
setPreferPrompt: function(value) {
currentApi = value ? require('cordova/android/promptbasednativeapi') : nativeApi;
},
// Used only by tests.
set: function(value) {
currentApi = value;
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/

/**
* Implements the API of ExposedJsApi.java, but uses prompt() to communicate.
* This is used pre-JellyBean, where addJavascriptInterface() is disabled.
*/

module.exports = {
exec: function(bridgeSecret, service, action, callbackId, argsJson) {
return prompt(argsJson, 'gap:'+JSON.stringify([bridgeSecret, service, action, callbackId]));
},
setNativeToJsBridgeMode: function(bridgeSecret, value) {
prompt(value, 'gap_bridge_mode:' + bridgeSecret);
},
retrieveJsMessages: function(bridgeSecret, fromOnlineEvent) {
return prompt(+fromOnlineEvent, 'gap_poll:' + bridgeSecret);
}
};
Loading