This file contains hidden or 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
ext { | |
buildToolsVersion = '22.0.1' | |
supportVersion = '22.2.1' | |
userName = 'xuzhengzhou' | |
password = '123' | |
} | |
buildscript{ | |
repositories{ | |
jcenter() |
This file contains hidden or 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
class PublishPlugin implements Plugin<Project>{ | |
def mavenName = 'my maven' | |
@Override | |
void apply(Project target) { | |
PublishExtension extension = project.extensions.create('publish', PublishExtension) | |
project.apply([plugin: 'maven']) |
This file contains hidden or 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
import org.gradle.api.Plugin | |
import org.gradle.api.Project | |
import org.gradle.api.artifacts.ModuleVersionIdentifier | |
import org.gradle.api.artifacts.ResolvedArtifact | |
import org.gradle.internal.component.external.model.DefaultModuleComponentIdentifier | |
import org.gradle.jvm.JvmLibrary | |
import org.gradle.language.base.artifact.SourcesArtifact | |
import org.gradle.language.java.artifact.JavadocArtifact |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
package com.xinghui.notificationlistenerservicedemo; | |
import android.app.ActivityManager; | |
import android.app.Service; | |
import android.content.ComponentName; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.pm.PackageManager; | |
import android.os.IBinder; | |
import android.os.Process; |
This file contains hidden or 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
/// demo模板 | |
func stMeRecharge(_ where : String, what: String) { | |
event("stMeRecharge", ["where": where, "what": what]) | |
} | |
/// 主要方法, | |
func event(name: String, args: [String: String?]) { | |
// 此处适配sdk | |
if args.isEmpty { | |
MobClick.event(name) |
OlderNewer