Skip to content

Commit 5a176c3

Browse files
committed
webview plugin implemented
1 parent 2b11ef9 commit 5a176c3

File tree

22 files changed

+547
-3
lines changed

22 files changed

+547
-3
lines changed

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ dependencies {
4545

4646

4747
implementation project(':pluginbasicutils')
48+
implementation project(':pluginwebview')
4849

4950

5051
testImplementation 'junit:junit:4.13.2'

app/src/main/java/com/arupakaman/unitypluginsapp/MainActivity.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import android.os.Bundle
55
import android.widget.Button
66
import android.widget.TextView
77
import com.arupakaman.pluginbasicutils.unity.UnityUtils
8+
import com.arupakaman.pluginwebview.WebViewActivity
89

910
class MainActivity : AppCompatActivity() {
1011
override fun onCreate(savedInstanceState: Bundle?) {
@@ -29,5 +30,7 @@ class MainActivity : AppCompatActivity() {
2930
tvHello.text = result
3031
}
3132

33+
WebViewActivity.startWebViewActivity(this, "My GitHub Profile", "https://github.com/Noddy20", isToolbarEnabled = false)
34+
3235
}
3336
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
}
1515
dependencies {
1616
classpath 'com.android.tools.build:gradle:4.2.0'
17-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin"
17+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
1818

1919
// NOTE: Do not place your application dependencies here; they belong
2020
// in the individual module build.gradle files

pluginbasicutils/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ dependencies {
3434
compileOnly fileTree(dir: "libs", include: ["*.jar"])
3535

3636
implementation 'androidx.core:core-ktx:1.7.0'
37-
implementation 'androidx.appcompat:appcompat:1.4.1'
38-
implementation 'com.google.android.material:material:1.5.0'
37+
//implementation 'androidx.appcompat:appcompat:1.4.1'
38+
//implementation 'com.google.android.material:material:1.5.0'
3939

4040

4141
testImplementation 'junit:junit:4.13.2'

pluginwebview/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

pluginwebview/build.gradle

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
plugins {
2+
id 'com.android.library'
3+
id 'org.jetbrains.kotlin.android'
4+
}
5+
6+
android {
7+
compileSdk compileTargetSDK
8+
9+
defaultConfig {
10+
minSdkVersion 17
11+
targetSdk compileTargetSDK
12+
13+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14+
consumerProguardFiles "consumer-rules.pro"
15+
}
16+
17+
buildTypes {
18+
release {
19+
minifyEnabled false
20+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
21+
}
22+
}
23+
compileOptions {
24+
sourceCompatibility JavaVersion.VERSION_1_8
25+
targetCompatibility JavaVersion.VERSION_1_8
26+
}
27+
kotlinOptions {
28+
jvmTarget = '1.8'
29+
}
30+
}
31+
32+
dependencies {
33+
//implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
34+
35+
//Use compileOnly otherwise will throw error
36+
compileOnly fileTree(dir: "libs", include: ["*.jar"])
37+
38+
implementation 'androidx.core:core-ktx:1.7.0'
39+
implementation 'androidx.appcompat:appcompat:1.4.1'
40+
implementation 'com.google.android.material:material:1.5.0'
41+
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
42+
43+
44+
testImplementation 'junit:junit:4.13.2'
45+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
46+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
47+
}

pluginwebview/consumer-rules.pro

Whitespace-only changes.

pluginwebview/libs/classes.jar

90.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)