gradlew build --warning-mode all --info
gradlew clean build --stacktrace



gradlew build
gradlew build -Xlint:deprecation
gradlew assembleRelease
gradlew build --warning-mode all
./gradlew debugBuild --scan


banner_ad_unit_id

build.gradle (project-level)

    Add Firebase Gradle buildscript dependency
        classpath 'com.google.gms:google-services:3.2.1'


 
app/build.gradle

    Add Firebase plugin for Gradle
        apply plugin: 'com.google.gms.google-services'



======================================================================

apply plugin: 'com.android.application'

android {

    lintOptions{
        disable 'MissingTranslation'
    }

    signingConfigs {
//        config {
//            keyAlias 'isaidit'
//            keyPassword 'isaidit'
//            storeFile file('../keystore/1016_isaidit.key')
//            storePassword 'isaidit'
//        }



        config {
            keyAlias 'origami'
            keyPassword '@!sfuQ123zpc'
            storeFile file('D:/walhalla/keystore.jks')
            storePassword '@!sfuQ123zpc'
        }
    }


    compileSdkVersion 27
    buildToolsVersion '28.0.2'

    defaultConfig {
        applicationId "com.walhalla.pocketinstructor"

        minSdkVersion 16
        targetSdkVersion 27

        versionCode 1
        versionName versionCode + "-" + getTimestamp()
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
        // Enabling multidex support.
        multiDexEnabled false
    }
    buildTypes {

        debug {
            multiDexEnabled false
            debuggable true
            jniDebuggable true
            minifyEnabled false
        }

        release {
            minifyEnabled true
            //proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            //best obfuscation -> -optimize
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

            debuggable false
            jniDebuggable false
            signingConfig signingConfigs.config
            renderscriptDebuggable false
            pseudoLocalesEnabled true
//            applicationIdSuffix '.a'
            versionNameSuffix 'b'
//            zipAlignEnabled true
//             Enabling multidex support.
            multiDexEnabled false
        }
    }


    flavorDimensions 'W'

    productFlavors {

        googleplay {
            //versionName = "gp"
            project.ext.set("archivesBaseName", "gp-" + defaultConfig.versionName);
            flavorDimensions 'W'
            resValue 'string', 'market_rate_url', 'market://details?id=%1$s'
        }
        amazon {
            //versionName = "a"
            project.ext.set("archivesBaseName", "a-" + defaultConfig.versionName);
            flavorDimensions 'W'
            resValue 'string', 'market_rate_url', 'http://www.amazon.com/gp/mas/dl/android?p=%1$s'
        }
    }


    dexOptions {
        preDexLibraries = false
        //fail>javaMaxHeapSize "2g"
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

def FOO = '27.1.1'

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    implementation "com.android.support:appcompat-v7:$FOO"
    implementation "com.android.support:design:$FOO"
    implementation('uk.co.chrisjenx:calligraphy:2.2.0') {
        exclude group: 'com.android.support', module: 'support-v4'
    }
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.jakewharton:butterknife:8.6.0'

//    implementation('com.google.android.gms:play-services-ads:15.0.1') {
//        exclude group: 'com.android.support'
//    }


    implementation("com.google.firebase:firebase-ads:15.0.1") {
        exclude group: 'com.android.support'
    }

    implementation 'com.google.code.gson:gson:2.8.5'
    implementation 'com.arello-mobile:moxy-app-compat:1.5.3'
    implementation 'com.arello-mobile:moxy:1.5.3'
    implementation 'com.github.bumptech.glide:glide:4.3.1'
    testImplementation 'junit:junit:4.12'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
    annotationProcessor 'com.arello-mobile:moxy-compiler:1.5.3'
    implementation 'com.google.dagger:dagger:2.11'
    annotationProcessor 'com.google.dagger:dagger-compiler:2.11'
    implementation('com.github.piasy:BigImageViewer:1.4.0') {
        exclude group: 'com.android.support', module: 'support-v4'
    }
    // load with glide
    //    implementation 'com.github.piasy:GlideImageLoader:1.4.0'
    //
    //    // progress pie indicator
    //    implementation 'com.github.piasy:ProgressPieIndicator:1.4.0'
    //@    implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.6.0';

    //Themes
    implementation 'com.52inc:scoops:1.0.0'
    implementation project(':ui')
    implementation project(':wads')
}

static def getTimestamp() {
    def date = new Date()
    return date.format('yyyyMMdd.HHmm')
}









//implementation files('../libs/game_lib.jar')



@@@@@@@@@@@@@ ROOM @@@@@@@@@@@@@
 implementation "android.arch.persistence.room:runtime:1.1.1"
 annotationProcessor "android.arch.persistence.room:compiler:1.1.1"




No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android



// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.0-rc03'
        

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

==============================================================================s






=============
FreeOpenVPN.Org config fil












MultiDex -> 65536


android{
    useLibrary 'org.apache.http.legacy'

sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }
}


@dependency{
compile 'com.android.volley:volley:1.1.0'
}

-encoding UTF-8 -docencoding utf-8 -charset utf-8



gradlew assembleDebug --stacktrace
gradlew assembleDebug --stacktrace

gradlew clean


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=

   implementation("com.google.firebase:firebase-ads:${GOO}") {
        exclude group: 'com.android.support'
    }

implementation ('com.google.android.gms:play-services-ads:15.0.1') {
        exclude group: 'com.android.support', module: 'support-v4'
    }

 compile(project(':react-native-maps')){
      exclude group: 'com.google.android.gms', module: 'play-services-base'
      exclude group: 'com.google.android.gms', module: 'play-services-maps'
   }

C:\Users\combo\.gradle\wrapper\dists
./gradlew wrapper --gradle-version=4.1 --distribution-type=bin

-Xmx768m


gradlew -info
gradlew -stacktrace

gradlew app:dependencies //<----------------------------------------------------------------
gradlew clean



gradlew -q dependencies app:dependencies --configuration implementation        #Просмотр
gradlew -q dependencies
 зависимостей
мастер оф паппетс
================================================================================================

gradlew htmlDependencyReport

gradlew app:dependencies @@@@@@@@@@@@@@@@@@@@@@@@@@
gradlew app:dependencies @@@@@@@@@@@@@@@@@@@@@@@@@@

gradlew -q dependencies Bitrix:dependencies --configuration implementation
gradlew Bitrix:dependencies > 1.txt
gradlew -q dependencies app:dependencies --configuration implementation  > 1.txt
gradlew :app:dependencies --configuration implementation  > 1.txt

gradlew task ':app:transformClassesWithDexForDebug' --stacktrace
gradlew app:transformClassesWithDexForRelease --stacktrace
gradlew task

gradlew --help task

gradlew --help task --all

gradlew task ':app:compile' -Xlint:deprecation


gradlew task ':app:compile' --stacktrace

gradlew task ':app:processDebugGoogleServices' --stacktrace




gradle wrapper
With gradle 2.4 (or higher) you can set up a wrapper without adding a dedicated task:

gradle wrapper --gradle-version 2.3

./gradlew assembleRelease



gradlew :app:assembleDebug --stacktrace -Xlint





===================================
BASE APP
===================================
    //di
    compile 'com.google.dagger:dagger:2.11'
    annotationProcessor 'com.google.dagger:dagger-compiler:2.11'




=============================================================================
include ':FragmentNavigator'
project(':FragmentNavigator').projectDir = new File(settingsDir, '../../Libraries/FragmentNavigator/library')

include ':app'
include ':mcsoxford_rss'
project(':mcsoxford_rss').projectDir = new File('C:\\android\\ANDROID_TUTORIAL\\$Modules\\android-rss')


compile project(path: ':FragmentNavigator')

----------------
Gradle library
----------------

build.gradle

apply plugin: 'java'
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
}

----------

build.gradle

apply plugin: 'com.android.library'
android {
    compileSdkVersion 23    buildToolsVersion "23.0.3"
    defaultConfig {
        minSdkVersion 14        targetSdkVersion 23        versionCode 1        versionName "1.0"    }
    buildTypes {
        release {
            minifyEnabled false            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.4.0'}

settings.gradle

include ':app', ':lib', ':mylibrary' //Include library




local.properties


ndk.dir=D\:\\Android\\AndroidSDK\\ndk-bundlesdk.dir=D\:\\Android\\AndroidSDK

================================================================


apply from: 'C:\\android\\versions.gradle'


android {
    compileSdkVersion versionCompile
    buildToolsVersion versionBuildTool
...
minSdkVersion versionMin
targetSdkVersion versionTarget


${versionSupportLib}
compile "com.android.support:design:${versionSupportLib}"
    compile "com.android.support:palette-v7:${versionSupportLib}"
    compile "com.android.support:cardview-v7:${versionSupportLib}"


=====================


project build.gradle

ext{
    versionCompile = 26
    versionBuildTool = '26.0.0 rc2'

    versionMin = 15
    versionTarget = 26
    versionSupportLib = '26.0.0-alpha1'


    okhttpVersion = '3.4.1'
    retrofitVersion = '2.1.0'
    rxandroidVersion = '1.2.1'
    rxjavaVersion = '1.1.10'
    rxLoaderVersion = '0.1.2'
    butterKnifeVersion = '8.3.0'
    hawkVersion = '1.23'

    junitVersion = '4.12'
    mockitoVersion = '1.10.19'
    powerMockVersion = '1.6.5'
    robolectricVersion = '3.1.2'
}


build.gradle
-- core

apply plugin: 'java'

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.google.code.gson:gson:2.8.0'
    compile 'com.google.code.findbugs:findbugs:3.0.1'
}

gradle.properties
# org.gradle.parallel=true
org.gradle.jvmargs=-Xmx1024m


gradlew build --stacktrace > logs.txt 2>logErrors.txt

Комментариев нет:

Отправить комментарий