-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from hansemannn/TIMOB-23424
[TIMOB-23424] Android: Support presentInviteDialog
- Loading branch information
Showing
177 changed files
with
1,149 additions
and
2,473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
exports.window = function(value) { | ||
if (Ti.Platform.osname == "android") { | ||
Ti.API.warn("This feature is currently iOS-only."); | ||
return; | ||
} | ||
|
||
var fb = require('facebook'); | ||
|
||
var win = Ti.UI.createWindow({ | ||
title: 'Login/Logout', | ||
backgroundColor:'#fff', | ||
layout: "vertical" | ||
}); | ||
|
||
addButtonWithModeAndStyle(fb.MESSENGER_BUTTON_MODE_CIRCULAR,fb.MESSENGER_BUTTON_STYLE_BLUE); | ||
addButtonWithModeAndStyle(fb.MESSENGER_BUTTON_MODE_CIRCULAR,fb.MESSENGER_BUTTON_STYLE_WHITE); | ||
addButtonWithModeAndStyle(fb.MESSENGER_BUTTON_MODE_CIRCULAR,fb.MESSENGER_BUTTON_STYLE_WHITE_BORDERED); | ||
|
||
addButtonWithModeAndStyle(fb.MESSENGER_BUTTON_MODE_RECTANGULAR,fb.MESSENGER_BUTTON_STYLE_BLUE); | ||
addButtonWithModeAndStyle(fb.MESSENGER_BUTTON_MODE_RECTANGULAR,fb.MESSENGER_BUTTON_STYLE_WHITE); | ||
addButtonWithModeAndStyle(fb.MESSENGER_BUTTON_MODE_RECTANGULAR,fb.MESSENGER_BUTTON_STYLE_WHITE_BORDERED); | ||
|
||
function addButtonWithModeAndStyle(mode, style) { | ||
var btn = fb.createMessengerButton({ | ||
top: 20, | ||
mode: mode, | ||
style: style | ||
}); | ||
|
||
btn.addEventListener("click", shareOnMessenger); | ||
win.add(btn); | ||
} | ||
|
||
function shareOnMessenger() { | ||
if (!Ti.Platform.canOpenURL("fb-messenger-api://")) { | ||
alert("No facebook messenger installed"); | ||
return; | ||
} | ||
fb.presentMessengerDialog({ | ||
title: "Appcelerator Titanium rocks!", | ||
description: "Sent using Ti.Facebook", | ||
link: "https://appcelerator.com", | ||
to: [] | ||
}); | ||
} | ||
|
||
return win; | ||
}; |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+2.73 KB
android/platform/android/res/drawable-hdpi-v4/com_facebook_button_icon_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added
BIN
+1.35 KB
...id/platform/android/res/drawable-hdpi-v4/com_facebook_button_send_icon_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added
BIN
+882 Bytes
android/platform/android/res/drawable-hdpi-v4/com_facebook_favicon_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+1.74 KB
android/platform/android/res/drawable-mdpi-v4/com_facebook_button_icon_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added
BIN
+980 Bytes
...id/platform/android/res/drawable-mdpi-v4/com_facebook_button_send_icon_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added
BIN
+628 Bytes
android/platform/android/res/drawable-mdpi-v4/com_facebook_favicon_white.png
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+4.25 KB
android/platform/android/res/drawable-xhdpi-v4/com_facebook_button_icon_blue.png
Oops, something went wrong.
File renamed without changes
File renamed without changes
Binary file added
BIN
+924 Bytes
...d/platform/android/res/drawable-xhdpi-v4/com_facebook_button_send_icon_blue.png
Oops, something went wrong.
File renamed without changes
File renamed without changes
Binary file added
BIN
+1.21 KB
android/platform/android/res/drawable-xhdpi-v4/com_facebook_favicon_white.png
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+7.12 KB
android/platform/android/res/drawable-xxhdpi-v4/com_facebook_button_icon_blue.png
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+1.95 KB
android/platform/android/res/drawable-xxhdpi-v4/com_facebook_favicon_white.png
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
29 changes: 29 additions & 0 deletions
29
android/platform/android/res/drawable/com_facebook_auth_dialog_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
You are hereby granted a non-exclusive, worldwide, royalty-free license to use, | ||
copy, modify, and distribute this software in source code or binary form for use | ||
in connection with the web services and APIs provided by Facebook. | ||
As with any software that integrates with the Facebook platform, your use of | ||
this software is subject to the Facebook Developer Principles and Policies | ||
[http://developers.facebook.com/policy/]. This copyright notice shall be | ||
included in all copies or substantial portions of the software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
--> | ||
|
||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<solid android:color="#f2fafafa" /> | ||
<corners | ||
android:bottomLeftRadius="@dimen/com_facebook_auth_dialog_corner_radius" | ||
android:bottomRightRadius="@dimen/com_facebook_auth_dialog_corner_radius" | ||
android:topLeftRadius="@dimen/com_facebook_auth_dialog_corner_radius_oversized" | ||
android:topRightRadius="@dimen/com_facebook_auth_dialog_corner_radius_oversized" /> | ||
</shape> |
35 changes: 35 additions & 0 deletions
35
android/platform/android/res/drawable/com_facebook_auth_dialog_cancel_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
You are hereby granted a non-exclusive, worldwide, royalty-free license to use, | ||
copy, modify, and distribute this software in source code or binary form for use | ||
in connection with the web services and APIs provided by Facebook. | ||
As with any software that integrates with the Facebook platform, your use of | ||
this software is subject to the Facebook Developer Principles and Policies | ||
[http://developers.facebook.com/policy/]. This copyright notice shall be | ||
included in all copies or substantial portions of the software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
--> | ||
|
||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:state_pressed="true"> | ||
<shape android:shape="rectangle"> | ||
<corners android:radius="2dp" /> | ||
<solid android:color="#999999" /> | ||
</shape> | ||
</item> | ||
<item> | ||
<shape android:shape="rectangle"> | ||
<corners android:radius="2dp" /> | ||
<solid android:color="#33999999" /> | ||
</shape> | ||
</item> | ||
</selector> |
29 changes: 29 additions & 0 deletions
29
android/platform/android/res/drawable/com_facebook_auth_dialog_header_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
You are hereby granted a non-exclusive, worldwide, royalty-free license to use, | ||
copy, modify, and distribute this software in source code or binary form for use | ||
in connection with the web services and APIs provided by Facebook. | ||
As with any software that integrates with the Facebook platform, your use of | ||
this software is subject to the Facebook Developer Principles and Policies | ||
[http://developers.facebook.com/policy/]. This copyright notice shall be | ||
included in all copies or substantial portions of the software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
--> | ||
|
||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<solid android:color="@color/com_facebook_blue" /> | ||
<corners | ||
android:bottomLeftRadius="0dp" | ||
android:bottomRightRadius="0dp" | ||
android:topLeftRadius="@dimen/com_facebook_auth_dialog_corner_radius" | ||
android:topRightRadius="@dimen/com_facebook_auth_dialog_corner_radius" /> | ||
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.