forked from gkd-kit/gkd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
630 additions
and
245 deletions.
There are no files selected for viewing
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
2 changes: 1 addition & 1 deletion
2
...aidl/li/songe/ad_closer/IUserService.aidl → .../main/aidl/li/songe/gkd/IUserService.aidl
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package li.songe.gkd | ||
|
||
import android.app.Application | ||
import com.blankj.utilcode.util.LogUtils | ||
import com.tencent.bugly.crashreport.CrashReport | ||
|
||
class App:Application() { | ||
companion object{ | ||
lateinit var context:Application | ||
} | ||
override fun onCreate() { | ||
super.onCreate() | ||
context = this | ||
LogUtils.d("onCreate") | ||
LogUtils.getConfig().isLog2FileSwitch = true | ||
CrashReport.initCrashReport(applicationContext, "d0ce46b353", false); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
.../java/li/songe/ad_closer/EntryActivity.kt → ...c/main/java/li/songe/gkd/EntryActivity.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,4 +1,4 @@ | ||
package li.songe.ad_closer | ||
package li.songe.gkd | ||
|
||
import android.content.Intent | ||
import android.os.Bundle | ||
|
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package li.songe.gkd | ||
|
||
import android.os.Bundle | ||
import androidx.activity.ComponentActivity | ||
import androidx.activity.compose.setContent | ||
import androidx.compose.material.MaterialTheme | ||
import androidx.compose.material.Scaffold | ||
import androidx.compose.material.Surface | ||
import androidx.compose.ui.graphics.Color | ||
import androidx.lifecycle.Lifecycle | ||
import androidx.lifecycle.lifecycleScope | ||
import androidx.lifecycle.repeatOnLifecycle | ||
import androidx.navigation.compose.rememberNavController | ||
import kotlinx.coroutines.launch | ||
import li.songe.gkd.ui.BottomNavigationBar | ||
import li.songe.gkd.ui.NavHostContainer | ||
import li.songe.gkd.ui.theme.AdCloserTheme | ||
|
||
|
||
class MainActivity : ComponentActivity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContent { | ||
AdCloserTheme { | ||
Surface(color = MaterialTheme.colors.background) { | ||
Surface(color = Color.White) { | ||
val navController = rememberNavController() | ||
Scaffold( | ||
bottomBar = { | ||
BottomNavigationBar(navController = navController) | ||
}, content = { padding -> | ||
NavHostContainer(navController = navController, padding = padding) | ||
} | ||
) | ||
} | ||
} | ||
} | ||
} | ||
lifecycleScope.launch { | ||
lifecycle.repeatOnLifecycle(Lifecycle.State.CREATED) { | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package li.songe.gkd | ||
|
||
import android.os.Bundle | ||
import androidx.appcompat.app.AppCompatActivity | ||
import com.blankj.utilcode.util.LogUtils | ||
|
||
class WebActivity:AppCompatActivity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
LogUtils.d(intent.data) | ||
} | ||
} |
Oops, something went wrong.