<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hakkı Cengiz</title>
    <description>The latest articles on DEV Community by Hakkı Cengiz (@hkkcngz).</description>
    <link>https://dev.to/hkkcngz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F473856%2F72351c19-7b97-4095-bf5f-987c497d458c.jpeg</url>
      <title>DEV Community: Hakkı Cengiz</title>
      <link>https://dev.to/hkkcngz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hkkcngz"/>
    <language>en</language>
    <item>
      <title>TeaTable: Create Dynamic Crud Table Paginated Sorted Featured</title>
      <dc:creator>Hakkı Cengiz</dc:creator>
      <pubDate>Wed, 29 Nov 2023 11:13:53 +0000</pubDate>
      <link>https://dev.to/hkkcngz/teatable-create-dynamic-crud-table-paginated-sorted-featured-3f0l</link>
      <guid>https://dev.to/hkkcngz/teatable-create-dynamic-crud-table-paginated-sorted-featured-3f0l</guid>
      <description>&lt;p&gt;&lt;strong&gt;TeaTable&lt;/strong&gt; is a JavaScript library that allows you to quickly and easily create dynamic tables for your web applications. It supports CRUD operations, sorting, searching, full-screen viewing, export to CSV, and pagination.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;npm i teatable&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FR9V9UMF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cuy9921xtxbgx2i9r7db.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FR9V9UMF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cuy9921xtxbgx2i9r7db.png" alt="teatable" width="701" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Features&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fully customizable, adding custom style.&lt;/li&gt;
&lt;li&gt;CRUD Operations: Data insertion, reading, updating and deleting functions.&lt;/li&gt;
&lt;li&gt;Sorting: Sorting by the relevant column when each column header is clicked.&lt;/li&gt;
&lt;li&gt;Search: Instant search on table data.&lt;/li&gt;
&lt;li&gt;Full Screen: View the table in full screen mode.&lt;/li&gt;
&lt;li&gt;Export to CSV: Export table data in CSV format.&lt;/li&gt;
&lt;li&gt;Paging: Page-by-page navigation for large data sets&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dark Mode&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Multilanguage support&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Usage&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import TeaTable from 'teatable';

const options = {
    data: [ // data here
        { id: 1, name: "Örnek Veri 1", ekstra: "Ekstra Bilgi 1" },
        { id: 2, name: "Örnek Veri 2" }
    ],
    themeColor : "#6967ce",

    rowsPerPage: 5, // Opsiyonel: Sayfa başına satır sayısı (varsayılan: 5)
    // Opsiyonel: Callback fonksiyonları
    onCreate: (item) =&amp;gt; { /* ... */ },
    onEdit: (item, index) =&amp;gt; { /* ... */ },
    onDelete: (item, index) =&amp;gt; { /* ... */ },
    // language support
    txtAdd     : "Add",
    txtUpdate  : "Update",
    txtDel     : "Delete",
    txtEdit    : "Edit",
    txtAct     : "Actions",
    txtSearch  : "Search...",
    txtPage    : "Page",
    txtConfirm : "Are you sure to delete this data?"
};

const myTable = new TeaTable('tableContainerId', options);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--x69fDjHV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p4jy8gvfsrtzpzo94en0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--x69fDjHV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p4jy8gvfsrtzpzo94en0.png" alt="dark mode teatable" width="698" height="349"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;NpmJs - &lt;a href="https://www.npmjs.com/package/teatable"&gt;https://www.npmjs.com/package/teatable&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Github - &lt;a href="https://github.com/hkkcngz/teatable"&gt;https://github.com/hkkcngz/teatable&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;CodePen - &lt;a href="https://codepen.io/hkkcngz/pen/ZEwMJPo"&gt;https://codepen.io/hkkcngz/pen/ZEwMJPo&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Don't hesitate to support with likes, comments and stars :) &lt;br&gt;
Have a nice day!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>development</category>
      <category>web</category>
    </item>
    <item>
      <title>TeaTable: Create Dynamic Crud Table Paginated Sorted</title>
      <dc:creator>Hakkı Cengiz</dc:creator>
      <pubDate>Mon, 27 Nov 2023 10:34:47 +0000</pubDate>
      <link>https://dev.to/hkkcngz/teatable-create-dynamic-crud-table-paginated-sorted-4bcg</link>
      <guid>https://dev.to/hkkcngz/teatable-create-dynamic-crud-table-paginated-sorted-4bcg</guid>
      <description>&lt;p&gt;&lt;strong&gt;TeaTable&lt;/strong&gt; is a JavaScript library that allows you to quickly and easily create dynamic tables for your web applications. It supports CRUD operations, sorting, searching, full-screen viewing, export to CSV, and pagination.&lt;/p&gt;

&lt;p&gt;POST updated here: &lt;a href="https://dev.to/hkkcngz/teatable-create-dynamic-crud-table-paginated-sorted-featured-3f0l"&gt;TeaTable: Create Dynamic Crud Table Paginated Sorted Featured&lt;br&gt;
&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;npm i teatable&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Features&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fully customizable, adding custom style.&lt;/li&gt;
&lt;li&gt;CRUD Operations: Data insertion, reading, updating and deleting functions.&lt;/li&gt;
&lt;li&gt;Sorting: Sorting by the relevant column when each column header is clicked.&lt;/li&gt;
&lt;li&gt;Search: Instant search on table data.&lt;/li&gt;
&lt;li&gt;Full Screen: View the table in full screen mode.&lt;/li&gt;
&lt;li&gt;Export to CSV: Export table data in CSV format.&lt;/li&gt;
&lt;li&gt;Paging: Page-by-page navigation for large data sets&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Usage&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import TeaTable from 'teatable';

const options = {
    data: [...], // Başlangıç veri dizisi
    theme: "default", // "theme1" tema değiştirebilirsiniz
    rowsPerPage: 5, // Opsiyonel: Sayfa başına satır sayısı (varsayılan: 5)
    // Opsiyonel: Callback fonksiyonları
    onCreate: (item) =&amp;gt; { /* ... */ },
    onEdit: (item, index) =&amp;gt; { /* ... */ },
    onDelete: (item, index) =&amp;gt; { /* ... */ }
};

const myTable = new TeaTable('tableContainerId', options);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Dark Mode or Theme Selector&lt;/li&gt;
&lt;li&gt;Multilanguage support&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;NpmJs - &lt;a href="https://www.npmjs.com/package/teatable"&gt;https://www.npmjs.com/package/teatable&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Github - &lt;a href="https://github.com/hkkcngz/teatable"&gt;https://github.com/hkkcngz/teatable&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;CodePen - &lt;a href="https://codepen.io/hkkcngz/pen/vYbaYXa"&gt;https://codepen.io/hkkcngz/pen/vYbaYXa&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Android Build.Gradle Explained 🌟</title>
      <dc:creator>Hakkı Cengiz</dc:creator>
      <pubDate>Wed, 12 Oct 2022 08:07:29 +0000</pubDate>
      <link>https://dev.to/hkkcngz/android-buildgradle-explained-c8n</link>
      <guid>https://dev.to/hkkcngz/android-buildgradle-explained-c8n</guid>
      <description>&lt;p&gt;Hello friends,&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gradle&lt;/strong&gt; is a build system that automates the development stages of an Android application.&lt;/p&gt;

&lt;p&gt;While writing code for the java platform in the &lt;strong&gt;Gradle&lt;/strong&gt; system, we use the &lt;strong&gt;Groovy&lt;/strong&gt; programming language, which is a very simple language. &lt;strong&gt;Groovy&lt;/strong&gt; has a much simpler language than Java. You can take a look at the github repo where I explained these differences.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;&lt;strong&gt;What Is This Groovy?&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;Groovy is a powerful, type-on-demand, dynamic language with static typing and static compilation for the Java platform that aims to increase developer productivity through a concise, simple, and easy-to-learn syntax.&lt;/p&gt;

&lt;p&gt;With this information we learned in Groovy, let's take a closer look at how we can build our build.gradle in Android Studio in a professional way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Build.gradle&lt;/strong&gt; allows us to make changes in the development processes of an application we developed through Android Studio, to customize the build we receive (for the simplest example, to produce different .apk for pro and free versions), with multiple environments (debug, ent, test, beta, prod.. ) and allows us to work comfortably with the team.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Build Gradle (App) Tools&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Its general structure is as follows:&lt;/p&gt;

&lt;p&gt;`plugins {&lt;br&gt;
    id 'com.android.application'&lt;/p&gt;

&lt;p&gt;}&lt;br&gt;
import java.util.regex.Pattern&lt;br&gt;
android {&lt;br&gt;&lt;br&gt;
    compileSdk 32&lt;br&gt;
    defaultConfig {&lt;br&gt;
        applicationId "com.hakki.uygulamaadi"&lt;br&gt;
        minSdk 21&lt;br&gt;
        targetSdk 32&lt;br&gt;
        resConfigs "en", "tr"&lt;br&gt;
        ...&lt;br&gt;
    }&lt;br&gt;
}&lt;br&gt;
buildTypes {} &lt;br&gt;
compileOptions {}&lt;br&gt;
dependencies {&lt;br&gt;
    implementation 'androidx.appcompat:appcompat:1.4.1'&lt;br&gt;
    ...&lt;br&gt;
}`&lt;/p&gt;



&lt;p&gt;Now let's see what we have in our build.gradle settings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;signingConfigs&lt;/strong&gt;: The desired keys are stored when publishing the application. Release is added to the version.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;buildTypes&lt;/strong&gt;: The part where we add and edit application development processes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;buildConfigField&lt;/strong&gt;: Allows sending a constant value while getting the build.&lt;br&gt;
When Build is received, the BuildConfig.java class is created. To access this constant from a class, it is accessed as BuildConfig.INFO. Note: Since you haven't received a build yet, it will appear red as if there is an error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;productFlavors&lt;/strong&gt;: Used when you want to collect multiple projects under one roof. It comes as "main" by default and is not included in the build.gradle. FlavorDimensions are defined beforehand.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;manifestPlaceholders&lt;/strong&gt;: Changes the application icon.&lt;br&gt;
resValue: Allows to change a resource value according to the application.&lt;br&gt;
For example: The application name is mentioned in several places (it can be a common splash or activity), we can add dynamism by assigning the value here.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;variantFilter&lt;/strong&gt;: The more buildTypes we add, the more selectable development environments we add for each application. eg. we add processes such as test, debug, beta, ent, release to our todo application. And for every application, there are cases where processes don't work that way. We're removing it using variantFilter so it doesn't unnecessarily populate the development environment list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FGBg6TGJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5g1mg83zp82u8mr7k6pb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FGBg6TGJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5g1mg83zp82u8mr7k6pb.png" alt="Applications and Development Processes" width="504" height="301"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If I need to briefly explain the other crucial points:&lt;br&gt;
Gathering all applications in a project provides convenience in terms of change and management. However, it also brings some minor improvements that need to be added.&lt;br&gt;
These;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When we get Build, preventing all classes in the projects from being loaded in the .apk of each application,&lt;/li&gt;
&lt;li&gt;Defining a common folder and uploading common classes and resource files in each .apk,&lt;/li&gt;
&lt;li&gt;Performing only Release (live) version specific operations,&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can take a look at the sample build.gradle codes below, along with the solutions I developed for these problems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;one android project to rule them (apps) all.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plugins {
    id 'com.android.application'
}

import java.util.regex.Matcher
import java.util.regex.Pattern

/*
sonarqube {
    properties {
        property "sonar.projectName", "LargeProjectExample"
        property "sonar.projectKey", "LargeProjectExample"
        property "sonar.host.url", "http://localhost:9000"
        property "sonar.language", "java"
        property "sonar.login", "admin"
        property "sonar.password", "******"
    }
}
*/

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

    defaultConfig {
        applicationId "com.largeproject.example"
        minSdk 21
        targetSdk 32
        versionCode 1
        versionName "1.0"
        resConfigs "en", "tr"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"    
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    signingConfigs {
        release {
            keyAlias 'key0'
            keyPassword '******'
            storeFile file('27tkey.jks')
            storePassword '******'
        }
    }

    buildTypes {
        // Development Environments
        release {
            signingConfig signingConfigs.release
            // zipAlignEnabled true      //
            //shrinkResources true   //res
            minifyEnabled true    //java code
            // multiDexEnabled true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            debuggable false
        }
        debug {
            //applicationIdSuffix ".debug"
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            debuggable true
        }
        dev {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            debuggable true
            /* DEV ORTAMI */
            buildConfigField "String", "INFO", '"someinfodev"'
        }
        plat {
            /* PLATFORM ORTAMI */
            buildConfigField "String", "INFO", '"someinfoplat"'

        }
        prod {
            /* PROD ORTAMI */
            buildConfigField "String", "INFO", '"someinfoprod"'

        }
    }

    flavorDimensions "APP"
    productFlavors {

        largeProject {
            dimension "APP"

            // CHANGE
            String appName = "Large Project"
            String appVersionName = "4.1.55"
            Integer appVersionCode = 255
            String appIdSuffix = ".largeproject"
            // CHANGE

            manifestPlaceholders = [appName: appName, appIcon: "@drawable/ic_second"]
            resValue("string", "app_name", appName)
            versionName appVersionName
            versionCode appVersionCode
            applicationIdSuffix appIdSuffix
        }

        largeProject2 {
            dimension "APP"

            String appName = "Another Large Project"
            String appVersionName = "4.1.55"
            Integer appVersionCode = 255
            String appIdSuffix = ".largeProject2"

            manifestPlaceholders = [appName: appName, appIcon: "@drawable/ic_second"]
            resValue("string", "app_name", appName)
            versionName appVersionName
            versionCode appVersionCode
            applicationIdSuffix appIdSuffix

            buildConfigField 'String', 'merhabaa', '"selam"'
        }

    }

    // Ignore Operations. Note: "==" operator is better than ".contains".
    variantFilter { variant -&amp;gt;
        String app = variant.flavors*.name.get(0).toLowerCase()
        String buildType = variant.buildType.name.toLowerCase()
        // println("app : " + app + " buildType : " + buildType)

        if (app == "largeproject" &amp;amp;&amp;amp; buildType == "ent") {
            variant.setIgnore(true)
        }
    }

    // Changing the Default Media Storage Location Groovy
    List&amp;lt;String&amp;gt; resBuildTypes = new ArrayList&amp;lt;String&amp;gt;()
    List&amp;lt;String&amp;gt; resBuildType  = new ArrayList&amp;lt;String&amp;gt;()
    resBuildTypes.add("src/main/res/common")

    productFlavors.all { flavor  -&amp;gt;
        String folder = "src/main/res/customers/" + flavor.name
        resBuildTypes.add(folder)
        resBuildType.add(flavor.name)
    }

    //println resBuildTypes // output: [src/main/res/common, src/main/res/customers/largeProject, src/main/res/customers/largeProject2]
    //println resBuildType  //output: [largeProject, largeProject2]

    sourceSets {
        main.res.srcDirs  = resBuildTypes
        // also you can change manifest file for every customer
        //main.manifest.srcFile = "src/main/res/"

        for (String var : resBuildType) {
            "$var" {
                setRoot "src/main/res/" + var
            }
        }
    }

    buildFeatures {
        buildFeatures.dataBinding = true
        buildFeatures.viewBinding = true
    }
}


// Build task that allows us to get the received project request information.
def projectName
def projectBuildType
task getCurrentFlavor() {
    Gradle gradle = getGradle()
    String tskReqStr = gradle.getStartParameter().getTaskRequests().toString()

    Pattern pattern

    // take buildTypes to String
    String buildTypes = ""
    android.buildTypes.all {
        type -&amp;gt;
            //println(type.name) Capitalize
            String output = type.name.substring(0, 1).toUpperCase() + type.name.substring(1)
            buildTypes += output + "|"
    }
    buildTypes = buildTypes.substring(0, buildTypes.length() - 1) //delete last | character
    //println buildTypes

    if (tskReqStr.contains("assemble"))
        pattern = Pattern.compile("assemble(\\w+)($buildTypes)") // Addition Required for Every BuildType Created. Dev|Ent|Tst,
    else
        pattern = Pattern.compile("generate(\\w+)($buildTypes)") // $buildTypes fulfills this request by automating.

    Matcher matcher = pattern.matcher(tskReqStr)

    if (matcher.find()) {
        //projectVariant = matcher.group().toLowerCase()
        projectName = matcher.group(1).toLowerCase() // Changing to 2 will return build type, 1 provides product flavor
        projectBuildType = matcher.group(2).toLowerCase() // Changing to 2 will return build type, 1 provides product flavor

    } else {
        println "NO MATCH FOUND"
    }
}

task buildVariantTasks(type: Copy) {
    dependsOn getCurrentFlavor
    println "flavor name is " + projectName
    println "build type is "  + projectBuildType

    if(projectName!=null &amp;amp;&amp;amp; projectBuildType!=null) {

        // Separating Classes and Resourses
        // To identify location of Common (Main) Classes, simply change the part that says "common".

        String appID = android.defaultConfig.applicationId
        String appIdSlashes = "src/main/java/" + appID.replaceAll("\\.", "/") + "/"
        android.sourceSets.main {
            java.srcDirs = [appIdSlashes + "common", appIdSlashes + projectName]
            res.srcDirs  = ['src/main/res/common', 'src/main/res/'+ projectName]
            manifest.srcFile "src/main/res/customers/" + projectName + "/AndroidManifest.xml"
        }

        android.applicationVariants.all { variant -&amp;gt;

            // Output APK Name &amp;amp; appVer - Specify a Common BuildConfig to Add to Each Product
            String buildType = variant.buildType.name
            String flavorName = variant.getFlavorName()
            String buildTime = new Date().format("yyMMddHHmm", TimeZone.getTimeZone("Asia/Istanbul"))

            variant.outputs.all {
                buildConfigField 'String', 'INFO', "\"${flavorName}.${buildType}\""
                buildConfigField 'String', 'appVer', "\"${versionName}_${buildTime}\""
                outputFileName = getFileName(flavorName, versionName, buildTime, buildType)
            }

            // Action By Product Specific Defined BuildConfigField, If Product Is Defined ...
            /*variant.productFlavors.each { flavor -&amp;gt;
                if (variant.getFlavorName() == projectName) {

                    flavor.buildConfigFields.each { key, value -&amp;gt;
                        if(key == "INFO") {
                            println value.type
                            println value.name
                            println value.value
                        }
                    }
                }
            }*/

            // Release Actions for Release -&amp;gt; Allatori is here.
            if(projectBuildType.contains("release") &amp;amp;&amp;amp; flavorName == projectName) {

                // You can add here compression tools...


            }

        }


    }
}
preBuild.dependsOn buildVariantTasks


static String getFileName(flavorName, versionName, buildTime, buildType) {
    return flavorName + "_" + versionName + "_" + buildTime + "_" + buildType + ".apk"
}

// Example of defining version for dependencies
ext {
    appCombat = '1.4.1'
    material = '1.5.0'
    constrain = '2.1.3'
    junit = '4.13.2'
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')

    implementation 'androidx.appcompat:appcompat:' + appCombat
    implementation 'com.google.android.material:material:'+ material
    implementation 'androidx.constraintlayout:constraintlayout:'+constrain
    implementation 'androidx.appcompat:appcompat:1.4.1'
    implementation 'com.google.android.material:material:1.5.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
    testImplementation 'junit:junit:'+junit
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In my next article, we will examine what improvements we can make in development processes with Kotlin.&lt;/p&gt;

&lt;p&gt;Source: &lt;br&gt;
&lt;a href="https://gradle.org/"&gt;Gradle&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/hkkcngz/nedir-bu-groovy"&gt;What it this Groovy?&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/hkkcngz/buildgradle"&gt;Github Build.Gradle&lt;/a&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>groovy</category>
      <category>android</category>
      <category>buildgradle</category>
    </item>
  </channel>
</rss>
