vinkashq/webkit-android


Android module to create apps for responsive or mobile websites using custom WebView

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.vinkas-com:webkit:1.0.1'
	}
	dependencies {
		implementation("com.github.vinkas-com:webkit:1.0.1")
	}
	<dependency>
	    <groupId>com.github.vinkas-com</groupId>
	    <artifactId>webkit</artifactId>
	    <version>1.0.1</version>
	</dependency>

                            
    libraryDependencies += "com.github.vinkas-com" % "webkit" % "1.0.1"
        
        

                            
    :dependencies [[com.github.vinkas-com/webkit "1.0.1"]]
        
        

Readme


#Android Webkit

Build Status License: MIT

<hr /> Easy to use android module to create apps for responsive or mobile websites using custom WebView. Build your website's own android app in minutes!!! ####[Download Sample APK](https://github.com/Vinkas-com/Webkit/releases/download/1.0.1/sample.apk) ##Add as dependency module Add this on your project's root 'build.gradle' file ``` repositories { jcenter() maven { url "https://jitpack.io" } } ``` Add this on your app folder's 'build.gradle' file ``` dependencies { compile 'com.vinkas:webkit-android:1.0.1' } ``` #How to use ###Java code ``` @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); BrowserLayout browserLayout = (BrowserLayout) findViewById(R.id.browser); browserLayout.loadUrl("https://github.com/Vinkas-com"); } ``` ###Xml layout ``` <?xml version="1.0" encoding="utf-8"?> <com.vinkas.webkit.BrowserLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/browser" android:layout_width="match_parent" android:layout_height="match_parent"> </com.vinkas.webkit.BrowserLayout> ```