-
Notifications
You must be signed in to change notification settings - Fork 505
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 #8604 from royalhuang/issue_7983_history_page_pref
feat:流水线构建详情页重构需求 issue #7983 优化websocket和触发类型
- Loading branch information
Showing
50 changed files
with
476 additions
and
359 deletions.
There are no files selected for viewing
35 changes: 17 additions & 18 deletions
35
src/app/android/app/src/main/kotlin/com/example/bkci_app/AppInstallReceiver.kt
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 |
---|---|---|
@@ -1,30 +1,29 @@ | ||
package com.example.bkci_app | ||
import android.content.BroadcastReceiver; | ||
import android.content.Context; | ||
import android.content.Intent; | ||
import android.content.BroadcastReceiver | ||
import android.content.Context | ||
import android.content.Intent | ||
import io.flutter.plugin.common.MethodChannel | ||
|
||
|
||
class AppInstallReceiver(val methodChannel: MethodChannel) : BroadcastReceiver() { | ||
|
||
override fun onReceive(context: Context, intent: Intent) { | ||
val action: String? = intent.action; | ||
var method: String = ""; | ||
val packageName: String? = intent.data?.encodedSchemeSpecificPart; | ||
val action: String? = intent.action | ||
var method: String = "" | ||
val packageName: String? = intent.data?.encodedSchemeSpecificPart | ||
|
||
if(action.equals(Intent.ACTION_PACKAGE_ADDED)){ | ||
println(packageName + "app installed"); | ||
method = "bkPackageInstalled"; | ||
} else if(action.equals(Intent.ACTION_PACKAGE_REPLACED)){ | ||
println(packageName + "app UPDATED"); | ||
method = "bkPackageUpdated"; | ||
}else if(action.equals(Intent.ACTION_PACKAGE_REMOVED)){ | ||
println(packageName + "app uninstalled"); | ||
method = "bkPackageRemove"; | ||
if (action.equals(Intent.ACTION_PACKAGE_ADDED)) { | ||
println(packageName + "app installed") | ||
method = "bkPackageInstalled" | ||
} else if (action.equals(Intent.ACTION_PACKAGE_REPLACED)) { | ||
println(packageName + "app UPDATED") | ||
method = "bkPackageUpdated" | ||
} else if (action.equals(Intent.ACTION_PACKAGE_REMOVED)) { | ||
println(packageName + "app uninstalled") | ||
method = "bkPackageRemove" | ||
} | ||
println(method + ":" + packageName); | ||
println(method + ":" + packageName) | ||
if (methodChannel != null) { | ||
methodChannel.invokeMethod(method, packageName, null); | ||
methodChannel.invokeMethod(method, packageName, null) | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,7 +138,6 @@ jooq { | |
} | ||
} | ||
} | ||
|
||
} | ||
|
||
tasks.getByName<AbstractCompile>("compileKotlin") { | ||
|
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
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.