-
Notifications
You must be signed in to change notification settings - Fork 93
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 #875 from BlueBubblesApp/zach/beta
Official v1.0.0 release
- Loading branch information
Showing
171 changed files
with
8,577 additions
and
6,101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,5 @@ pubspeck.lock | |
|
||
#signing | ||
**/android/key.properties | ||
**/android/.settings | ||
**/android/.settings | ||
**/releases |
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
41 changes: 41 additions & 0 deletions
41
.../src/main/java/com/bluebubbles/messaging/method_call_handler/handlers/CreateShortcut.java
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,41 @@ | ||
package com.bluebubbles.messaging.method_call_handler.handlers; | ||
|
||
import android.content.Context; | ||
import android.graphics.drawable.Icon; | ||
|
||
import androidx.core.app.Person; | ||
import androidx.core.content.pm.ShortcutInfoCompat; | ||
import androidx.core.content.pm.ShortcutManagerCompat; | ||
import androidx.core.graphics.drawable.IconCompat; | ||
|
||
import io.flutter.plugin.common.MethodCall; | ||
import io.flutter.plugin.common.MethodChannel; | ||
|
||
public class CreateShortcut implements Handler { | ||
|
||
public static String TAG = "create-shortcut"; | ||
|
||
private Context context; | ||
private MethodCall call; | ||
private MethodChannel.Result result; | ||
|
||
public CreateShortcut(Context context, MethodCall call, MethodChannel.Result result) { | ||
this.context = context; | ||
this.call = call; | ||
this.result = result; | ||
} | ||
|
||
@Override | ||
public void Handle() { | ||
// Icon contactIcon = Icon.createWithData(); | ||
// IconCompat icon = IconCompat.createFromIcon(); | ||
// Person.Builder person = new Person.Builder() | ||
// .setName(call.argument("name")) | ||
// .setIcon(call.argument()); | ||
// | ||
// ShortcutManagerCompat.pushDynamicShortcut(context, new ShortcutInfoCompat.Builder(context, (String) call.argument("id") ) | ||
// .setPerson(person.build()) | ||
// .setLongLived(true) | ||
// .build()); | ||
} | ||
} |
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
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.