Skip to content

Commit 6efe934

Browse files
committed
[master] [fix spelling error of 'applicaton']
1 parent 994abaf commit 6efe934

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

build-gradle/src/main/groovy/com.dd.buildgradle/ComCodeTransform.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public class ComCodeTransform extends Transform {
9292

9393

9494
private void getRealApplicationName(Collection<TransformInput> inputs) {
95-
applicationName = project.extensions.combuild.applicatonName
95+
applicationName = project.extensions.combuild.applicationName
9696
if (applicationName == null || applicationName.isEmpty()) {
9797
throw new RuntimeException("you should set applicationName in combuild")
9898
}

build-gradle/src/main/groovy/com.dd.buildgradle/exten/ComExtension.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ public class ComExtension {
99
boolean isRegisterCompoAuto = false;
1010

1111
/**
12-
* 当前组件的applicatonName,用于字节码插入。
12+
* 当前组件的applicationName,用于字节码插入。
1313
* 当isRegisterCompoAuto==true的时候是必须的
1414
*/
15-
String applicatonName
15+
String applicationName
1616

1717

1818
}

componentlib/src/main/java/com/mrzhang/component/componentlib/router/ui/UIRouter.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ public void unregisterUI(IComponentRouter router) {
7575
public boolean openUri(Context context, String url, Bundle bundle) {
7676
url = url.trim();
7777
if (!TextUtils.isEmpty(url)) {
78-
if (url.indexOf("://") < 0 && (!url.startsWith("tel:") || !url.startsWith("smsto:") || !url.startsWith("file:"))) {
78+
if (!url.contains("://") &&
79+
(!url.startsWith("tel:") ||
80+
!url.startsWith("smsto:") ||
81+
!url.startsWith("file:"))) {
7982
url = "http://" + url;
8083
}
8184
Uri uri = Uri.parse(url);
@@ -92,7 +95,7 @@ public boolean openUri(Context context, Uri uri, Bundle bundle) {
9295
return true;
9396
}
9497
} catch (Exception e) {
95-
98+
e.printStackTrace();
9699
}
97100
}
98101
return false;

0 commit comments

Comments
 (0)