Skip to content

Commit

Permalink
Merge pull request #11 from vknow360/beta
Browse files Browse the repository at this point in the history
Beta v11
  • Loading branch information
vknow360 authored Jul 13, 2021
2 parents 0546c1a + d21531f commit 30b638c
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@
import com.google.appinventor.components.runtime.*;
import com.google.appinventor.components.annotations.*;
import com.google.appinventor.components.common.ComponentCategory;
import com.google.appinventor.components.common.PropertyTypeConstants;
@DesignerComponent(version = 1,
versionName = "1.0",
description ="Helper class of CustomWebView extension <br> Developed by Sunny Gupta",
versionName = "1.1",
description ="Helper class of CustomWebView extension to add app to browsers list<br> Developed by Sunny Gupta",
category = ComponentCategory.EXTENSION,
nonVisible = true,
iconName = "https://res.cloudinary.com/andromedaviewflyvipul/image/upload/c_scale,h_20,w_20/v1571472765/ktvu4bapylsvnykoyhdm.png",
helpUrl="https://github.com/vknow360/CustomWebView",
androidMinSdk = 21)
@UsesActivities(activities = {@ActivityElement(intentFilters = {@IntentFilterElement(actionElements = {@ActionElement(name = "android.intent.action.VIEW")}, categoryElements = {@CategoryElement(name = "android.intent.category.DEFAULT"), @CategoryElement(name = "android.intent.category.BROWSABLE")}, dataElements = {@DataElement(scheme = "http"), @DataElement(scheme = "https")}), @IntentFilterElement(actionElements = {@ActionElement(name = "android.intent.action.VIEW")}, categoryElements = {@CategoryElement(name = "android.intent.category.DEFAULT"), @CategoryElement(name = "android.intent.category.BROWSABLE")}, dataElements = {@DataElement(scheme = "http"), @DataElement(scheme = "https"), @DataElement(mimeType = "text/html"), @DataElement(mimeType = "text/plain"), @DataElement(mimeType = "application/xhtml+xml")})},name="appinventor.ai_vknow360.CustomWebView.Screen1",launchMode = "singleTask")})
@SimpleObject(external=true)
public class CustomWebViewHelper extends AndroidNonvisibleComponent implements OnResumeListener{
public class BrowserPromptHelper extends AndroidNonvisibleComponent implements OnResumeListener{
public Activity activity;
public CustomWebViewHelper(ComponentContainer container){
public BrowserPromptHelper(ComponentContainer container){
super(container.$form());
activity = container.$context();
}
Expand Down
Loading

0 comments on commit 30b638c

Please sign in to comment.