- HTTP 形式:
git clone https://github.com/owner/git.git
- SSH 形式:
git clone git@github.com:owner/git.git
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
diff --git a/shell/common/shell.cc b/shell/common/shell.cc | |
index bef72617c..b73018a61 100644 | |
--- a/shell/common/shell.cc | |
+++ b/shell/common/shell.cc | |
@@ -908,15 +908,28 @@ void Shell::OnAnimatorDraw(fml::RefPtr<Pipeline<flutter::LayerTree>> pipeline) { | |
[& waiting_for_first_frame = waiting_for_first_frame_, | |
&waiting_for_first_frame_condition = waiting_for_first_frame_condition_, | |
rasterizer = rasterizer_->GetWeakPtr(), | |
- pipeline = std::move(pipeline)]() { | |
- if (rasterizer) { |
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
import android.app.Activity; | |
import android.content.res.TypedArray; | |
import android.content.res.Resources; | |
import android.util.Log; | |
/** | |
* @author lizhangqu | |
* @version V1.0 |
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
import com.android.build.gradle.internal.ide.ArtifactDependencyGraph | |
import com.android.builder.model.Dependencies | |
import com.android.builder.model.SyncIssue | |
project.afterEvaluate { | |
project.android.applicationVariants.all { def variant -> | |
def variantData = variant.getMetaClass().getProperty(variant, 'variantData') | |
//方法一 | |
Dependencies dependencies = new ArtifactDependencyGraph().createDependencies(variantData.scope, false, new Consumer<SyncIssue>() { |
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
import com.android.build.api.transform.Context | |
import com.android.build.api.transform.DirectoryInput | |
import com.android.build.api.transform.JarInput | |
import com.android.build.api.transform.QualifiedContent | |
import com.android.build.api.transform.SecondaryFile | |
import com.android.build.api.transform.Transform | |
import com.android.build.api.transform.TransformException | |
import com.android.build.api.transform.TransformInput | |
import com.android.build.api.transform.TransformInvocation | |
import com.android.build.api.transform.TransformOutputProvider |
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
#ifndef DIAGNOSTICS_H | |
#define DIAGNOSTICS_H | |
#include <jni.h> | |
#include <stdio.h> | |
#if !defined(DISALLOW_COPY_AND_ASSIGN) | |
// DISALLOW_COPY_AND_ASSIGN disallows the copy and operator= functions. It goes in the private: | |
// declarations in a class. | |
#if __cplusplus >= 201103L |
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
subprojects { | |
configurations.all { | |
resolutionStrategy { | |
force 'com.android.support:multidex:1.0.2' | |
force 'com.android.support:multidex-instrumentation:1.0.2' | |
eachDependency { DependencyResolveDetails details -> | |
if (details.requested.group == 'com.android.support' | |
&& !details.requested.name.contains('multidex')) { | |
details.useVersion '25.3.1' | |
} |
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
apply plugin: AndroidFilterPlugin | |
class AndroidFilterPlugin implements Plugin<Project> { | |
void apply(Project project) { | |
project.afterEvaluate { | |
if (project.plugins.hasPlugin("com.android.application")) { | |
def android = project.extensions.getByName("android") | |
android.applicationVariants.all { def variant -> | |
def variantData = variant.getVariantData() | |
def scope = variantData.scope |
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
apply plugin: JavaFilterPlugin | |
class JavaFilterPlugin implements Plugin<Project> { | |
void apply(Project project) { | |
project.afterEvaluate { | |
if (project.file('filter.properties').exists()) { | |
def processResources = project.tasks.findByName("processResources") | |
processResources.configure { | |
from(processResources.source) { | |
filesMatching('*') { |
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
# for cmake | |
# c++11 | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
#debug or release | |
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3") | |
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3") | |
set(CMAKE_STATIC_LINKER_FLAGS_RELEASE "${CMAKE_STATIC_LINKER_FLAGS_RELEASE} -s") | |
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} -s") | |
#if CMAKE_STATIC_LINKER_FLAGS_RELEASE or CMAKE_SHARED_LINKER_FLAGS_RELEASE not work use this | |
#if(CMAKE_BUILD_TYPE MATCHES Release) |
NewerOlder