Skip to content

Instantly share code, notes, and snippets.

@Krosxx
Krosxx / SmartKeyDataStore.kt
Created June 29, 2020 09:03
PreferenceDataStore for SmartKey
import androidx.preference.PreferenceDataStore
import cn.vove7.smartkey.BaseConfig
import cn.vove7.smartkey.get
/**
* # SmartKeyDataStore
*
* Created on 2020/6/29
* @author Vove
@Krosxx
Krosxx / flutter_aar_upload.gradle
Created March 11, 2021 10:55
Flutter module upload aar to maven
// This script is used to initialize the build in a module or plugin project.
// During this phase, the script applies the Maven plugin and configures the
// destination of the local repository.
// The local repository will contain the AAR and POM files.
void configureProject(Project project, String mavenUrl, String mavenUser, String mavenPwd, String version) {
if (!project.hasProperty("android")) {
throw new GradleException("Android property not found.")
}
if (!project.android.hasProperty("libraryVariants")) {
@STiXzoOR
STiXzoOR / TeamViewer-15-id-changer-for-mac.py
Last active June 18, 2024 15:47 — forked from 0x2a94b5/TeamViewer-15-id-changer-for-mac.py
Teamviewer 15 ID Changer for macOS (Python 3)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# System: macOS 12+
# Version: TeamViewer v15.x.x
# Python: 3.x.x
# Command: sudo python TeamViewer-15-id-changer.py
#
import os