<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hasan Kuşçu on Medium]]></title>
        <description><![CDATA[Stories by Hasan Kuşçu on Medium]]></description>
        <link>https://medium.com/@kuscuhasann97?source=rss-c4121a8d3b67------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aKnB8_FrSj4QfmSnhVT3pQ.png</url>
            <title>Stories by Hasan Kuşçu on Medium</title>
            <link>https://medium.com/@kuscuhasann97?source=rss-c4121a8d3b67------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 08:04:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kuscuhasann97/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Trendyol Maestro Plugin]]></title>
            <link>https://medium.com/trendyol-tech/trendyol-maestro-plugin-ef2771b377a9?source=rss-c4121a8d3b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef2771b377a9</guid>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[test]]></category>
            <category><![CDATA[plugins]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Hasan Kuşçu]]></dc:creator>
            <pubDate>Fri, 13 Dec 2024 06:53:23 GMT</pubDate>
            <atom:updated>2024-12-13T06:53:23.881Z</atom:updated>
            <content:encoded><![CDATA[<p>(Contributors: <a href="https://www.linkedin.com/in/burakztrk/">Burak Öztürk</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*79YsJK2ouM-PSYdGCfmGAA.png" /></figure><p>Hello, everyone. Today, we will discuss the plugin we developed for the Maestro library, which we use for Trendyol regression tests. In this article, we will explain why we needed to develop this plugin and what new features we added during its development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*UKmEas9FrVLUoPFuYY5kZQ.gif" /></figure><p><strong>Motivation;</strong></p><p><strong>What does Maestro refer to, and in what contexts do we use it?</strong></p><p>Maestro is a library we use to write regression tests in our Trendyol project. When running our tests, we need to set the appId parameter to debugId if our developer colleagues are using the package, and to releaseId if it is being executed in the CI/CD pipeline.</p><p><strong>How did we run our tests in Maestro, and how did we update them?</strong></p><p>If we needed to update our tests, we would run our debug package for the emulator and update the appId parameter with debugId in the relevant test file. After writing the test, we would commit the changes with releaseId. However, we realized this process was not very sustainable, so we started looking for a better solution.</p><p><strong>What did we do to make the appId parameter more generic?</strong></p><p>First, we made the appId parameter dynamic and specified which package we were working with through the environment in the terminal. By doing this, we no longer needed to update the appId parameter constantly, and everything worked as expected.</p><p><strong>How did you come up with the plugin idea and why plugin?</strong></p><p>First, constantly typing long commands in the terminal became tiring, so we started thinking about how to make it easier. We already had the file names, but we didn’t know which environment the test would run in. To address this, we first developed an algorithm that takes the package names for debug and release from outside and combines them with the terminal command. Then, we set up the necessary structure for the test to run when we right-click on the relevant test file. Now, we have completed the system, which allows us to run the terminal command by selecting the environment when right-clicking on our test file.</p><p>Let’s look at the process in detail through examples.</p><p><strong>Example;</strong></p><p>For our Debug package;</p><pre>appId: com.example.stage<br>---<br>- launchApp<br>  clearState: true<br><br>- tapOn:<br>    id: &quot;buttonId&quot;<br>- assertVisible:<br>    text: &quot;testValue&quot;<br></pre><p>For our Release package;</p><pre>appId: com.example<br>---<br>- launchApp<br>  clearState: true<br>  <br>- tapOn:<br>    id: &quot;buttonId&quot;<br>- assertVisible:<br>    text: &quot;testValue&quot;</pre><p>To run them, we type the code block in the terminal below. This code block is used to run our tests.</p><pre>maestro test test.yaml</pre><p>Then, we had to frequently update the appId parameter every time we changed a package. As a precaution, we implemented an improvement in this way.</p><pre>appId: ${APP_ID}<br>---<br>- launchApp<br>  clearState: true<br>  <br>- tapOn:<br>    id: &quot;buttonId&quot;<br>- assertVisible:<br>    text: &quot;testValue&quot;</pre><p>This way, we would be able to pass the appId parameter through the terminal command. By doing this, we will no longer have to constantly change the appId in the tests and will be able to adapt it based on the package we are using.</p><p>Now, our terminal command looks like this:</p><pre>maestro test -e APP_ID=com.example.stage test.yaml</pre><p>At that point, we thought: should we keep typing terminal commands?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*upYUAuTpz1-lHZ5Hw_qY2g.gif" /></figure><p>Our goal was to create a command that runs automated tests in the terminal, using either the release or debug option, no matter which test file we select.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*f4TUQ-6RgcFxWocCbR6D8w.gif" /></figure><p>Then we ran our code in the terminal using the following two code blocks. The first code block prepares the command we will run in the terminal.</p><pre>runTerminal(<br>   project = project,<br>   tabName = filePath,<br>   command = &quot;$command $filePath&quot;<br>)</pre><p>In the following line, we define the final parameters that will be executed in the terminal.</p><pre>TerminalToolWindowManager<br>    .getInstance(project)<br>    .createLocalShellWidget(project.basePath, tabName)<br>    .executeCommand(command)<br>}</pre><p>Then we added these code blocks under <a href="https://github.com/Trendyol">Trendyol</a>/<a href="https://github.com/Trendyol/Commander-AS-Plugin">Commander-AS-Plugin</a> . If you want to examine it in detail, you can check the link.</p><p>Next, let’s look at how to use it.</p><p>We open the Settings in Android Studio, search for the ‘Gradle Commander’ plugin, and install it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nPil71nVXAZhv0S0O21pNw.png" /></figure><p>We open the Settings and locate the Commander plugin. Then, we configure it for our project and select the File option so that it appears in the File tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ETbdmi-sowQpRQoEBowOwA.png" /></figure><p>Now, we can right-click on our Maestro file and select the release or debug options, depending on our preference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AB_cykG2Hzn3Ngk8oV2KXw.png" /></figure><p>Now, let’s get it all working together.</p><p>The plugin can run all YAML files from a single file, but it can also run individual files. Additionally, it supports executing multiple commands on different emulators if we have multiple emulators.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rl1PQvlMYtwF1im3JffE3g.png" /></figure><p>Everything looks good for us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*QM0QtpY2t-LTyWYXvEG5cA.gif" /></figure><p>Thank you for reading.</p><p>Enjoy Coding.☕☕</p><h3>About Us</h3><p>We’re building a team of the brightest minds in our industry. Interested in joining us? Visit the pages below to learn more about our open positions.</p><p><a href="https://jobs.lever.co/trendyol?source=post_page-----4b86463ead68--------------------------------">Trendyol jobs</a></p><h3>References</h3><ul><li><a href="https://maestro.mobile.dev/">Maestro Documentation</a></li><li><a href="https://github.com/Trendyol/Commander-AS-Plugin">Trendyol Commander Plugin</a></li><li><a href="https://plugins.jetbrains.com/plugin/21059-gradle-commander">Trendyol Commander Plugin Jetbrain Marketplace</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef2771b377a9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trendyol-tech/trendyol-maestro-plugin-ef2771b377a9">Trendyol Maestro Plugin</a> was originally published in <a href="https://medium.com/trendyol-tech">Trendyol Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jetpack Compose Performance]]></title>
            <link>https://medium.com/trendyol-tech/jetpack-compose-performance-4b86463ead68?source=rss-c4121a8d3b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b86463ead68</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[performance]]></category>
            <dc:creator><![CDATA[Hasan Kuşçu]]></dc:creator>
            <pubDate>Wed, 06 Nov 2024 06:04:45 GMT</pubDate>
            <atom:updated>2024-11-06T06:04:45.331Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello again to all of you with a new topic, I hope everyone is well. Let’s start if you are ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*acLqw8JiEO7tTkJJZuLeRQ.png" /></figure><p>We have included Jetpack Compose in our lives in these periods when we are slowly becoming anti xml persons, which we now give a lot of space in our android projects. But what about the performance issue?</p><p>By default, Jetpack Compose treats classes as unstable if they contain mutable collections of variables, e.g. var, ArrayList. This means that compose can recreate these classes frequently. However, we can avoid this incorrect behavior by using these two annotations.</p><h3><strong>Stable &amp; Immutable</strong></h3><p>My interpretation of ‘Stable’ is that it means. I can pass an immutable list to a class marked as stable. However, passing a mutable list could lead to problems. On the other hand, ‘Immutable’ is used for completely immutable classes.</p><blockquote><strong>Immutable</strong>: Compose marks a type as immutable if the value of its properties can never change and all methods are referentially transparent.</blockquote><blockquote>Note that all primitive types are marked as immutable. These include String, Int, and Float.</blockquote><blockquote><strong>Stable</strong>: Indicates a type whose properties can change after construction. If and when those properties change during runtime, Compose becomes aware of those changes.</blockquote><blockquote><strong>Unstable</strong>: None of the above.</blockquote><p>In addition, state managers’ inside functions increase unnecessary recompositions because they are updated repeatedly when data changes, so state managers should be set externally.</p><pre>val state = remember { mutableStateOf(false) }</pre><p>Now let’s understand restartable and skippable and look at where we can control them.</p><h3>What is the Restartable and Skippable?</h3><p>In addition to the information in the following document, ‘Restartable’ refers to continuous rebuilds, while ‘Skippable’ denotes skips that do not require rebuilds.</p><blockquote><strong>Skippable</strong>: If the compiler marks a composable as skippable, Compose can skip it during recomposition if all its arguments are equal to their previous values.</blockquote><blockquote><strong>Restartable</strong>: A restartable composable serves as a ‘scope’ where recomposition can start. In other words, the function acts as a point where Compose can begin re-executing code for recomposition after state changes.</blockquote><p>Let’s experience what we talked about with a demo. First of all, I created a basic Jetpack Compose project in Android Studio and added a switch and a list builder component to the design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*sas7vPtWcjb2UD1Xbgq4JA.png" /></figure><p>ListCreatorClass;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*cVeZWnOupOZ08lcKIiD_gA.png" /></figure><p>UnStableExampleClass;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*s_aEtP4ch2t135ws-5fDfg.png" /></figure><p>We quickly created our structure, let’s open the layout inspector and get to know it a bit.</p><p>The blue successive screens show how many recomposes are happening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*C3IC0Yb2PTy8eTuHF9zRKg.png" /></figure><p>The circle to the right of it with a line through the center shows how many skips there are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*Wo65rXmURLTV1lrthSevgw.png" /></figure><p>Now let’s view our example in a Layout Inspector without the Stable and Immutable annotations, I see that every time I open and close the switch, my ListCreator component is created again and again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*PZR50gGHA4uwD3vJc9G9Qw.png" /></figure><p>And in the image I have sent below, we see how much of a renewal there has been.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*X6JsV1EZiJtlGh3vtRJ48g.png" /></figure><p>Now let’s add a <a href="http://twitter.com/Stable">@Stable</a> annotation to our list containing class.</p><pre>@Stable<br>data class UnStableExampleClass(<br>    val exampleList: List&lt;String&gt;<br>)</pre><p>After I added the Stable parameter, I saw that my ListCreator component was not created repeatedly and was skipped.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*F6ZHW3z_kD3_XF8Akpv88g.png" /></figure><p>When we observe the degree with color in Layout Inspector, we see that only our switch button is recomposed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*XLw8v10FrBHZake563xhEw.png" /></figure><p>Trendyol Sample;</p><p>First of all, when we connect our viewState to a function that is constantly changing and serving, we see that the page is continually recomposing every unit. This situation is completely recomposed due to the constant updating of the view state and the knowledge that only the inputText’s data changes on the entire page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/0*2Vsn8xlfoUC3ngLk.gif" /></figure><p>If we want to eliminate this situation completely, we first need to update our inputText, but if we send data to the service, we must update the view state, if we update our view state after each value change, it will continue to recomposition again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/222/0*gVmykV3D2EEs-6VE.gif" /></figure><p>Recomposition always looks at the state of the parent class so any inline function will be based on the parent non-inline function.</p><p>Everything looks good for us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*QM0QtpY2t-LTyWYXvEG5cA.gif" /></figure><p>Thank you for reading.</p><p>Enjoyable Coding.☕☕</p><h3>About Us</h3><p>We’re building a team of the brightest minds in our industry. Interested in joining us? Visit the pages below to learn more about our open positions.</p><p><a href="https://jobs.lever.co/trendyol?source=post_page-----385373bf1b36--------------------------------">Trendyol jobs</a></p><h3>References</h3><ul><li><a href="https://developer.android.com/develop/ui/compose/performance/phases">Android Developer Performance Phases</a></li><li><a href="https://developer.android.com/develop/ui/compose/performance/stability">Android Developer Stability</a></li><li><a href="https://developer.android.com/develop/ui/compose/performance/stability/diagnose">Android Developer Diagnose</a></li><li><a href="https://developer.android.com/develop/ui/compose/performance/stability/fix">Android Developer Fix Stability</a></li><li><a href="https://developer.android.com/develop/ui/compose/performance/stability/strongskipping">Android Developer Strong Skipping</a></li><li><a href="https://developer.android.com/develop/ui/compose/performance/bestpractices">Android Developer Best Practices</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b86463ead68" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trendyol-tech/jetpack-compose-performance-4b86463ead68">Jetpack Compose Performance</a> was originally published in <a href="https://medium.com/trendyol-tech">Trendyol Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dispatchers in Kotlin Coroutines]]></title>
            <link>https://blog.devgenius.io/dispatchers-in-kotlin-coroutines-7a74dcec3bc2?source=rss-c4121a8d3b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a74dcec3bc2</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[coroutine]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Hasan Kuşçu]]></dc:creator>
            <pubDate>Tue, 02 May 2023 08:08:08 GMT</pubDate>
            <atom:updated>2023-05-02T20:50:29.772Z</atom:updated>
            <content:encoded><![CDATA[<p>Hellööö everyone this is my first english article. Today we will be looking at Dispatchers in Kotlin Coroutines. This article contains my notes and various samples.☕</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*FFrh6iNHDI87DUOHLkoh7g.png" /><figcaption>Görsel-1</figcaption></figure><h3>What is Dispatchers?</h3><p>Dispatchers help coroutine to decides which task has to be done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*lzb_606sfaff9mBGqIKvTg.png" /><figcaption>Görsel-2</figcaption></figure><h3>Type of Dispatchers</h3><ol><li><strong><em>Dispatchers.Default</em></strong></li><li><strong><em>Dispatchers.IO</em></strong></li><li><strong><em>Dispatchers.Main</em></strong></li><li><strong><em>Dispatcher.Uncofined</em></strong></li></ol><h3>Dispatchers.Default</h3><p>We use Dispatcher.Default to perform CPU-Intensive Tasks.</p><blockquote>The default CoroutineDispatcher that is used by all standard builders like launch, async, etc. if no dispatcher nor any other ContinuationInterceptor is specified in their context.</blockquote><h4>Example;</h4><ol><li>Heavy Multiplication Calculation.</li><li>Sorting, Filtering, Searching, etc. for a BIG Size List.</li><li>Parsing JSON</li></ol><h4><strong>Code;</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*QIy9r8MiRoFJ83EaAZmBtg.png" /><figcaption>Görsel-3</figcaption></figure><h3><strong><em>Dispatchers.IO</em></strong></h3><p>We use Dispatcher.IO to perform disk or network I/O Tasks.</p><blockquote>The CoroutineDispatcher that is designed for offloading blocking IO tasks to a shared pool of threads.<br>Additional threads in this pool are created and are shutdown on demand. The number of threads used by tasks in this dispatcher is limited by the value of “kotlinx.coroutines.io.parallelism” (IO_PARALLELISM_PROPERTY_NAME) system property. It defaults to the limit of 64 threads or the number of cores (whichever is larger).</blockquote><h4>Example;</h4><ol><li>Network call.</li><li>Download Data from server.</li><li>Reading/Writing File.</li><li>Load Shared preferences and Datastore.</li><li>Query to Database.</li></ol><h4>Code;</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*mmiq8Zu1pRv2JBGdraVUpA.png" /><figcaption>Görsel-4</figcaption></figure><h3><strong><em>Dispatchers.Main</em></strong></h3><p>We use Dispatcher.Main to run main thread of Android. Mainly UI parts or small Tasks.</p><blockquote>A coroutine dispatcher that is confined to the Main thread operating with UI objects. This dispatcher can be used either directly or via MainScope factory. Usually such dispatcher is single-threaded.</blockquote><h4>Example;</h4><ol><li>Perform UI Task.</li><li>Sorting, Filtering, Searching, etc. for a Small Size List</li></ol><h4>Code;</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*gBcvsP0-13UzXp9Td1xz_w.png" /><figcaption>Görsel-5</figcaption></figure><h3>Dispatchers.Unconfined</h3><p>It executes coroutine immediately on the current thread and later resumes it in whatever thread called resume(). It is usually a good fit for things like intercepting regular non-suspending API or invoking coroutine-related code from blocking world callbacks.</p><blockquote>A coroutine dispatcher that is not confined to any specific thread. It executes initial continuation of the coroutine in the current call-frame and lets the coroutine resume in whatever thread that is used by the corresponding suspending function, without mandating any specific threading policy. Nested coroutines launched in this dispatcher form an event-loop to avoid stack overflows.</blockquote><h4>Code;</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*czxZ0CL44NjRt5NJGywGlA.png" /><figcaption>Görsel-6</figcaption></figure><p>Note: I share with you an image of useful uses for using Dispatchers both in code and in test blocks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*74Lj8DjkWCjAQzh9p7y-_w.png" /><figcaption>Görsel-7</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*QM0QtpY2t-LTyWYXvEG5cA.gif" /><figcaption>Görsel-8</figcaption></figure><p>Everything looks good for us.</p><p>Thank you for reading.</p><p>Enjoyable Coding.☕☕</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a74dcec3bc2" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/dispatchers-in-kotlin-coroutines-7a74dcec3bc2">Dispatchers in Kotlin Coroutines</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compose ile Google Maps’e Bakış]]></title>
            <link>https://medium.com/ibtech/compose-ile-google-mapse-bak%C4%B1%C5%9F-878a04e06bd6?source=rss-c4121a8d3b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/878a04e06bd6</guid>
            <category><![CDATA[google-map-api]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <dc:creator><![CDATA[Hasan Kuşçu]]></dc:creator>
            <pubDate>Mon, 02 Jan 2023 18:21:55 GMT</pubDate>
            <atom:updated>2023-01-03T07:17:58.706Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhaba, bugün sizlerle Compose ile Google Maps konusuna bakıyor olacağız. Google Maps API key nasıl alınır, proje içerisinde nasıl uygulanır konularını inceleceğiz.☕</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hX7KJg1fs2nlSYqE337p-w.png" /></figure><h3>Google Maps API Key Nasıl Alınır?</h3><p>Öncelikle <a href="https://console.cloud.google.com/welcome?project=handy-resolver-373421&amp;_ga=2.218491806.-608818093.1664024896&amp;_gac=1.159232584.1672648688.Cj0KCQiAnsqdBhCGARIsAAyjYjSEFQLvkF2GnAY6gSpoCgRTeEbNvaH9L3FaNG1P7CoSTOCTmAQAowsaAqygEALw_wcB">Google Cloud</a> platformuna login oluyoruz ardından,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*lo5qgELN8RRFeLfiTQuHjw.png" /></figure><p>new project seçeneği ile devam ediyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*AZQQKqe_B37PsfGTxiXDog.png" /></figure><p>Görsel-2 de görüldüğü üzere bir project name veriyoruz eğer google maps api özelliğini öğrenmek için kullanmayacaksanız projenizin içinde bir finger print oluşturup güvenlik önlemleri almanızı öneririm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*IkoOxpLqeQ9C3FPoMo1yVA.png" /></figure><p>Bildirimler kısmında projenizin oluştuğunu görebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xUU8INkBqT_JbL581CM4og.png" /></figure><p>Google Cloud içerisinde Crediantial bölümünden uygulamanız için bir API key oluşturabilirsiniz, dilerseniz aşağıdaki link üzerinden de erişebilirsiniz.</p><p><a href="https://console.cloud.google.com/projectselector2/google/maps-apis/credentials?_gl=1*bxltmq*_ga*NjA4ODE4MDkzLjE2NjQwMjQ4OTY.*_ga_NRWSTWS78N*MTY3MjYwOTUyNy4xLjEuMTY3MjYwOTU0Ni4wLjAuMA..">API key</a> oluşturmak için tıklayınız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLHNPi4JgQO4zrE70-ZYxQ.png" /></figure><p>Görsel-4 te kırmızı ile işaretlemiş olduğum arama çubuğunda “android google maps” anahtar kelimesi aratılmalıdır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*FM54sfEISn7cH4MHl81qeQ.png" /></figure><p>Arattıktan sonra Sdkları ve servisleri göreceğiz bu demomuz için “Maps SDK for Android” SDK sını kullanıyor olacağız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*DL6sj8Mf-vkiBvjBtio8SQ.png" /></figure><p>Android platform için Maps SDK’ yı aktif hale getiriyoruz.</p><p>Evet birlikte neler yaptık gelin bakalım bir Google Cloud hesabı oluşturduktan sonra android için bir proje oluşturduk ve verilerimizin bize özel olması için benzersiz bir API anahtarı ile projemizde geliştirmeye geçiyoruz.</p><h3>Android Studio Geliştirme Aşaması</h3><p>Öncelikle Android Studio içerisinde boş bir compose projesi oluşturuyoruz.</p><h4>Bağımlıkların Ayarlanması</h4><pre>classpath &quot;com.google.android.libraries.mapsplatform.secrets-gradle-plugin:<br>secrets-gradle-plugin:2.0.1&quot;</pre><p>Gradle project bazında classpathimizi ekliyoruz.</p><pre>// Google maps<br>implementation &#39;com.google.android.gms:play-services-maps:18.1.0&#39;<br>implementation &#39;com.google.android.gms:play-services-location:21.0.1&#39;<br>// Google maps for compose<br>implementation &#39;com.google.maps.android:maps-compose:2.8.0&#39;<br>// KTX for the Maps SDK for Android<br>implementation &#39;com.google.maps.android:maps-ktx:3.2.1&#39;<br>// KTX for the Maps SDK for Android Utility Library<br>implementation &#39;com.google.maps.android:maps-utils-ktx:3.2.1&#39;</pre><p>Google maps bağımlılıklarını modül bazında gradle dosyamıza ekliyoruz.</p><pre>classpath &#39;com.google.dagger:hilt-android-gradle-plugin:2.42&#39;</pre><p>Dependency Injection için Hilt kütüphanesini kullancağız bu yüzden gradle dosyamızın içerisine project bazında classpathi ekliyoruz.</p><pre>// Hilt<br>implementation &quot;com.google.dagger:hilt-android:2.42&quot;<br>kapt &quot;com.google.dagger:hilt-compiler:2.42&quot;</pre><p>Ardından gradle dosyamıza modül bazında Hilt kütüphanesinin bağımlılıklarını ekliyoruz.</p><h4>API Anahtarı</h4><p>Bağımlıklarımızı hallettiğimize göre API anahtar tanımlarımızı yapalım, google Cloud üzerinden oluşturmuş olduğumuz api keyi projemizin içerisinde local.properties dosyamızın içerisine yazalım, projenizi herkese açık hale getirirken API anahtarınızın gizli olmasına dikkat etmelisiniz, üçüncü kişilerin anahtarımızı kullanmasını istemeyiz öyle değil mi?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*_bMTqJbd69mocwBpslveiA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*SberTLcCJF7K_ShMb8LMBA.png" /></figure><p>Api anahtarımızı tanımladıktan sonra AndroidManifest dosyamıza geliyoruz, artık API anahtarımızı kullanabilir gerekli meta-data etiklerini yerleştiriyoruz.</p><pre>&lt;meta-data<br>    android:name=&quot;com.google.android.geo.API_KEY&quot;<br>    android:value=&quot;${API_KEY}&quot;/&gt;</pre><h4>İzinler</h4><p>Lokasyon bilgisine erişmek için aşağıda belirtmiş olduğum izin tanımlamalarınızı manifest dosyasının içerisine yapmalısınız. Üstte bulunan izin locasyon bilgisini almak için her zaman dahil edilmelidir, fakat aşağıda bulunan izinde sadece kullanıcının kesin konumuna erişilmek istenildiğinde dahil edilmelidir.</p><pre>&lt;manifest ... &gt;<br>&lt;!-- Always include this permission --&gt;<br>&lt;uses-permission android:name=&quot;android.permission.ACCESS_COARSE_LOCATION&quot;/&gt;<br><br>&lt;!-- Include only if your app benefits from precise location access. --&gt;<br>&lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot;/&gt;<br>&lt;/manifest&gt;</pre><p>Bütün tanımlarımızı yaptık artık yazılıma aşamasına geçebiliriz.</p><h4>Demo</h4><p>Kod bloklarıyla burayı daha fazla kalabalıklaştırmamak adına buraya eklemiyorum kaynak kodlarımı aşağıda bırakmış olduğum GITHUB linkinden inceleyebilirsiniz.</p><p><a href="https://github.com/kuscuhasann/GoogleMapsWithCompose">GitHub - kuscuhasann/GoogleMapsWithCompose</a></p><p>Projeyi çalıştırdığımızda Google Maps özelliklerini kullanabilmekteyiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*r-OBh-nGrVA3gGy_tPXIZQ.png" /></figure><p>Bizim için her şey iyi görünüyor.</p><p>Okuduğunuz için teşekkürler.</p><p>Keyifli Kodlamalar.☕☕</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=878a04e06bd6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibtech/compose-ile-google-mapse-bak%C4%B1%C5%9F-878a04e06bd6">Compose ile Google Maps’e Bakış</a> was originally published in <a href="https://medium.com/ibtech">IBTech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin DSL Nedir?]]></title>
            <link>https://medium.com/ibtech/kotlin-dsl-nedir-cf834aeb32d1?source=rss-c4121a8d3b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf834aeb32d1</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[dsl]]></category>
            <category><![CDATA[scopes]]></category>
            <dc:creator><![CDATA[Hasan Kuşçu]]></dc:creator>
            <pubDate>Thu, 22 Dec 2022 05:09:43 GMT</pubDate>
            <atom:updated>2022-12-22T10:43:37.686Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhaba, bugün sizlerle Kotlin DSL Nedir? Hangi konuları kapsar, bu konuların kullanım alanlarını birlikte inceleceğiz keyifli okumalar ☕</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*P17gCW0eJwaU0gGThqhEiA.png" /><figcaption>Görsel-1</figcaption></figure><h3>Nedir Bu Kotlin DSL?</h3><blockquote>Açılımı Kotlin Domain-Specific Language’ tır.</blockquote><p>Direkt konuya girerek uzun lafın kısası kotlin programlama dilinde daha temiz kod yazmak için proje özgünlüğünde DSL’ler oluşturup standartımızı belirliyoruz. Gelin birlikte bunları nasıl yapıyoruz bakalım.</p><h4>Extension Functions</h4><blockquote>Kotlin bize bir sınıfın özelliğini değiştiremediğimizde ek özellik eklememiz için ek işlev verir bunlar extension function adını alır.</blockquote><p>Activityleri açmak için bir extension yazalım önce eski hali sonra yeni haliyle kullanımına birlikte bakalım.</p><p>Aşağıda vermiş olduğum örnek androidin varsayılan metodudur, aynı zamanda kullanımını içermektedir.</p><pre>val changePage = Intent(this, Page2)       <br>startActivity(changePage)</pre><p>Şimdi yukarıda ki bloğu bir extension’ a çevirelim.</p><pre>inline fun&lt;reified T : AppCompatActivity&gt; Context.startActivity(<br>block : Intent.() -&gt; Unit = {}){<br>    val intent  = Intent(this , T::class.java)<br>    startActivity(<br>        intent.also {<br>            block.invoke(it)<br>        }<br>    )<br>}</pre><p>Extension çevirmesini yaptıktan sonra kullanımına bakalım aşağıdaki kullanım gibi sade bir kullanım bizi karşılıyor.</p><pre>startActivity&lt;HomeActivity&gt;()</pre><p>Toast Mesajını’ da extension’ a dönüştürelim</p><pre>Toast.makeText(requireContext(), &quot;Message&quot;, Toast.LENGTH_LONG).show()</pre><p>Yukarıda varsayılan olarak bir toast mesajı gözükmekte bunu extensiona çevirmek istediğimde aşağıdaki kodu yazdım.</p><pre>fun Activity.showToast(messageToShow : String){<br>  Toast.makeText(requireContext(), messageToShow, Toast.LENGTH_LONG).show()<br>}</pre><p>Kullanımına baktığımızda uzun bloklar yerine sade bir fonksiyon görmekteyiz bütün projemiz özelinde bu extension fonksiyonu kullanabiliriz.</p><pre>showToast(&quot;Message&quot;)</pre><h4><strong>Lambda</strong></h4><blockquote>Lambda belirli parametreler verildiğinde bir sonuç döndüren yapıdır.</blockquote><p>Kotlin de bu yapı kıvırcık parantezler(Curly Bracket) ile belirtilir.</p><pre>val myLambdaPrimitiveType = {<br>    println(&quot;My Lambda Primitive Type&quot;)<br>}</pre><p>Daha açık ve anlaşılır kod blokları için geri dönüş tipleri her zaman belirtilmeli ve lambda foksiyonalitesi aşağıdaki gibi düzenlenmelidir.</p><pre>val myLambdaPrimitiveType: () -&gt; Unit  = {<br>    println(&quot;My Lambda Primitive Type&quot;)<br>}</pre><p>Unit olmayan parametreli bir yapıda ise değerler belirtilir kod daha okunabilir ve anlaşılır olur.</p><pre>val combineStrings: (String, String) -&gt; String = { name, surname -&gt; <br>name + surname<br>}<br>val fullName = calculateTotal(&quot;Hasan&quot;, &quot;Kuşçu&quot;)</pre><h4>High-Order Functions</h4><p>Az önce lambdanın kullanımına bakmıştık şimdi fonksiyonlar ile lambdayı birleştirelim ve daha okunabilir yapıyı elde edelim, birinci paremetrede console ekranında görmek için bir string değer geçiyoruz ve ek olarak task adında bir değişken tanımlayarak unit olan bir lamda parametresi bulunuyor.</p><pre>fun printAndExecuteTask(text: String, task: () -&gt; Unit) {<br>    println(text)<br>    task()<br>}</pre><p>Nasıl kullanılır?</p><pre>val mySurnameTask: () -&gt; Unit = {<br>    println(&quot;Kuşçu&quot;)<br>}<br>printAndExecuteTask(&quot;Hasan&quot;, mySurnameTask)</pre><h4>Scope Functions</h4><blockquote>Kotlinde 5 adet scope function vardır bunlar let, run, with, apply, ve also dur.</blockquote><ul><li><strong>apply: Nesnelerin tüm özelliklerini ayarlarmak için mükemmeldir.</strong></li></ul><p>StringBuilder nesnesi oluşturdum ve içesinde apply ile değer setledim sonrasında aşağıdaki cod bloğunda kullandım.</p><pre>val stringBuilder = StringBuilder().apply {<br>    this.append(&quot;Test Value&quot;)<br>}<br><br>val text = stringBuilder.toString()<br>println(text))</pre><ul><li><strong>run: Apply ve run arasındaki tek fark son komutun değerini döndürmesidir.</strong></li></ul><p>Aşağıda bir StringBuilder nesnesi oluşturdum ve içini doldurdum ardından son valueyu döndürdüğünü bildiğim için toString() metodunun ekledim örnek kullanım aşağıdaki gibidir.</p><pre>val text = StringBuilder().run {<br>    this.append(&quot;Test Value&quot;)<br>    toString()<br>}<br><br>println(text)</pre><ul><li><strong>let: let run ile aynı olarak çalışır aralarındaki tek fark scope içinde referansına it ile erişir.</strong></li></ul><p>Aşağıda StringBuilder nesnesi oluşturdum ve let scope’ u kullanarak it referansını kullandım ardından değer setlemelerimi gerçekleştirdim run ile aynı çalıştığı için toString metodunu içerisine yazma gereği duydum örnek kullanım aşağıdaki gibidir.</p><pre>val text = StringBuilder().let {<br>    it.append(&quot;Test Value&quot;)<br>    it.toString()<br>}<br><br>println(text)</pre><ul><li><strong>also: Geri dönüş tipi olarak apply’a referans erişimi olarak let’ e benzer.</strong></li></ul><p>Örnek also kullanımı aşağıdaki gibidir.</p><pre>val sb = StringBuilder().also {<br>    it.append(&quot;Test Value&quot;)<br>}<br><br>val text = sb.toString()<br>println(text)</pre><ul><li><strong>with: Diğer 4 kapsamdan farklıdır tekrar eden yapılar için kullanılabilir ve son değeri döndürür.</strong></li></ul><p>Aşağıda stringBuilder nesnesi tekrar eden yapıdaydı onun için bir with oluşturdum gerekli parametre tanımlamalarımı yaptım ve örnek kod kullanımı burada paylaştım.</p><pre>val stringBuilder = StringBuilder()<br><br>val text = with(stringBuilder) {<br>    this.append(&quot;Scope Function&quot;)<br>    toString()<br>}<br><br>println(text)</pre><h4>Infix Function</h4><blockquote>Extension functionların farklı bir versiyonudur sadece 1 parametere alabilir.</blockquote><p>String bir değişkenin içerisindeki bir karakteri diğer bir karakter ile değiştiren infix function yazdım.</p><pre>val testString = &quot;H@s@n&quot;<br><br>infix fun String.changeCharacter(char: Char): String {<br>    return this.replace(char,&#39;a&#39;)<br>}</pre><p>Örnek kullanımı aşağıdaki gibidir.</p><pre>println(testString.changeCharacter(&#39;@&#39;))</pre><h4>Inline Function</h4><blockquote>Yüksek dereceli fonksiyonlar, tekrar tekrar çağrılıyorsa ve 4 satırdan büyük değilse kullanılır.</blockquote><p>Sürekli kullancağımı düşündüğüm internet ve servis işlemleri için kullanmayı düşündüğüm bir inline function oluşturdum.</p><pre>inline fun inlineFunction(myFun: () -&gt; Unit ) {<br>    myFun()<br>    print(&quot;Check Internet Event&quot;)<br>}</pre><p>Örnek kullanımı aşağıya bıraktım.</p><pre>inlineFunction({ println(&quot;Service Events&quot;)})k</pre><h4>Singleton</h4><p>Son olarak singleton’ı DSL ile nasıl kullanabilir bu konuya bakalım.</p><p>Bir mobil uygulamada interneti her sayfada kontrol etmek istediğimde sürekli nesne yaratmak yerine singleton objesi oluşturup bunu dinleyebiliriz ben de bir singleton objesi oluşturdum.</p><pre>object Internet {<br>    fun checkInternet() {<br>        println(&quot;Checking Internet&quot;)<br>    }<br>}</pre><p>Ve bunu projemin içerisinde</p><pre>Internet.checkInternet()</pre><h3>Özet</h3><p>Projemizde açık ve anlaşılır anlamda yapılan çalışmalar Kotlin DSL olarak adlandırılmaktadır her projenin kendine ait standartları ve bunları kullanım biçimleri vardır. Sizde yukarıda bahsettiğim konuları kullanarak kendi projenizin DSL’ ini oluşturabilirsiniz.</p><p>İncelemek İsteyenler için Github Linki:</p><p><a href="https://github.com/kuscuhasann/Kotlin-DSL">GitHub - kuscuhasann/Kotlin-DSL</a></p><p>Bizim için her şey iyi görünüyor.</p><p>Okuduğunuz için teşekkürler.</p><p>Keyifli Kodlamalar.☕☕</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf834aeb32d1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibtech/kotlin-dsl-nedir-cf834aeb32d1">Kotlin DSL Nedir?</a> was originally published in <a href="https://medium.com/ibtech">IBTech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin Generic Type “T” Nedir?]]></title>
            <link>https://medium.com/ibtech/kotlin-generic-type-t-nedir-99a58e27a8a0?source=rss-c4121a8d3b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/99a58e27a8a0</guid>
            <category><![CDATA[t]]></category>
            <category><![CDATA[generics]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Hasan Kuşçu]]></dc:creator>
            <pubDate>Sun, 20 Nov 2022 16:00:16 GMT</pubDate>
            <atom:updated>2022-11-21T06:22:33.844Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhaba bugün sizlerle Kotlin Generic Type “T” Nedir? konusuna göz atacağız generic tiplerin kullanımına baktıktan sonra sizlerle birlikte demo yapıp yazımızı sonlandıracağız, keyifli okumalar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*mNaam-I7tCTvVf04LQrm6Q.png" /><figcaption>Görsel-1</figcaption></figure><h3>Genel Generic Type Açıklaması</h3><blockquote>Generics, farklı referans veri tiplerini alan, hangi referans tipini alacağına karar verebileceğimiz ve üzerinde benzer işlemler yapabileceğimiz bir sınıfdır.</blockquote><h3>Benim Yorumum ile Nedir Bu Generic “T” Type?</h3><p>Bir şehirler sınıfımız olduğunu ve bu sınıfı iki farklı oluşturmak isteyebileceğimizi düşünelim birincil olarak bu şehrin ismini tutmak, ikincil olarak ise şehrin plaka numarasını tutmak isteyelim ve bir örnek yapalım.</p><p>Gelin birlikte bir örneğimizi inceleyelim;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/179/1*5NiXQkB82n5REQRZuf2CNQ.png" /><figcaption>Görsel-2</figcaption></figure><p>Şehir sınıfımı oluşturdum ve T type yardımı ile bu şehir sınıfımın değerinin değişeceğini belirttim, bunları yaptıktan sonra viewModelim’ de 2 farklı City sınfına ait değer döndüren fonksiyon oluşturdum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*qGn8PSceg9PN07RvujxTzQ.png" /><figcaption>Görsel-3</figcaption></figure><p>Üst tarafta bulunan fonksiyonumda şehrin adının döndürülmesi için gerekli yapımı kurdum generic tipler olduğu için geriye değer döndürürken tipini belirtmelisiniz.</p><p>Aşağıda görülen video içinde butonlara tıklandığında Toast mesajı içerisinde bu yapıların çalışmasını ve ekranda gösterilmesini sağladım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*UqhRhSGafCN9Y0Dpb80qRA.gif" /><figcaption>Görsel-4</figcaption></figure><h3><strong>Base Mimari ile Birlikte Generic Class Kullanımı</strong></h3><p>Fragmentlarım için bir BaseFragment abstract sınıfı oluşturdum ve bu base sınıf kullanılırken bir ViewModel ve ViewDataBinding için 2 parametre tanımladım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*ckD6KAgKDxM8cLKlRL2uyQ.png" /><figcaption>Görsle-5</figcaption></figure><p>Gelin birlikte BaseFragment’ ı kalıtalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*b5kXosi39JoC69YWa_S-Yw.png" /><figcaption>Görsel-6</figcaption></figure><p>CityFragment sınıfı oluşurken bir ViewModel ve Binding parametreleriyle oluşmaktadır. Bu bize CityFragment sınıfı içinsinde ek tanımlamalar yapmaktan kurtarmaktadır zaten base sınıfımız bizim için bu işlemleri yapıyor oluyor.</p><p>Detaylı olarak incelemek isterseniz Github linki:</p><p><a href="https://github.com/kuscuhasann/kotlinGenericsWork">GitHub - kuscuhasann/kotlinGenericsWork: In this repo have to T type.</a></p><p>Bizim için her şey iyi görünüyor.</p><p>Okuduğunuz için teşekkürler.</p><p>Keyifli Kodlamalar.☕☕</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99a58e27a8a0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibtech/kotlin-generic-type-t-nedir-99a58e27a8a0">Kotlin Generic Type “T” Nedir?</a> was originally published in <a href="https://medium.com/ibtech">IBTech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Studio Dolphin Yenilikleri]]></title>
            <link>https://medium.com/ibtech/android-studio-dolphin-yenilikleri-2c0b1b48be83?source=rss-c4121a8d3b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c0b1b48be83</guid>
            <category><![CDATA[android-studio]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[jetpack]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <dc:creator><![CDATA[Hasan Kuşçu]]></dc:creator>
            <pubDate>Mon, 10 Oct 2022 22:15:00 GMT</pubDate>
            <atom:updated>2022-10-11T06:52:29.436Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhaba bugün sizlerle Android Studio Dolphin konularına göz atacağız, keyifli okumalar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pGX4LW7q0B_j4Y_20-eJkg.png" /><figcaption>Görsel-1</figcaption></figure><h4><strong>Yeni Logcat</strong></h4><p>Geliştirilmiş logcat fonksiyonalitesi ile karşımıza çıkan Android Studio Dolphin oldukça başarılı gözüküyor. Öncelikle loglanan verilerin verbose, debug, info, warn, error, assert seçeneklerin kalktığını ve logların solunda renkli kutuların içinde belirtildiğini görüyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XXgF_m9crnZfEHPFMN_TEA.png" /><figcaption>Görsel-2</figcaption></figure><p><strong>Peki Sadece Error Loglarımı Görmek İstersem?</strong></p><p>Yukarıda bulunan arama kutucuğuna level:error yazdığınızda sadece error loglarınızı görüyor olacaksınız, açılır pencereden seçmekte güzeldi fakat bu seçenek de bizi yormuyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RX7z3_y7WQlGKaLkvrNOMA.png" /><figcaption>Görsel-3</figcaption></figure><p>Tag aratmak isterseniz spesifik durumlarda arama kutucuğuna tag:parameterName şeklinde yazarak aratabilmekteyiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cuTjDhnTzChNpgHV9cV-8g.png" /><figcaption>Görsel-4</figcaption></figure><p>Arama kutucuğunun yanında bulunan görselde son aramalarınız gözüküyor ve favorilere eklemek istediğiniz komutu bu kısma ekleyebiliyorsunuz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*dnOf1Mu16MS7PwLApUXEGg.png" /><figcaption>Görsel-4</figcaption></figure><h4><strong>Layout Inspector</strong></h4><p>Diğer Android Studio versiyonlarından farklı olarak sağ tarafa ağaç yapısını andıran ekranın çiziminde kullanılan bütün bileşenler net bir şekilde belirtilmiş ayrıca bu bileşenlerin üzerine geldiğinizde ekranda hangi noktaları işaret ettiği anlaşılabiliyor. Fakat halen bu kısımlar stabil değil Compose 1.2.0-alpha03 ve üzeri sürümlerde bu yapıyı kullanabilmekteyiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*at6RIV9Qz3FF00d8Ema_8Q.png" /><figcaption>Görsel-5</figcaption></figure><h4>Compose Multipreview Annotations</h4><p>Compose ile yazmış olduğumuz ekranları ön izleme bölümünde görüntülemek için karanlık mod görünümü ve normal mod görünümü için gerekli tanımlarımı yaptım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*--Jt_JxUJbU8NR_mI9tOtA.png" /><figcaption>Görsel-6</figcaption></figure><p>Ön izleme bölümünde görmüş olduğumuz görüntü aşağıda yer almaktadır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1qSYDoxWc8s4r4upAwEA9w.png" /><figcaption>Görsel-7</figcaption></figure><h4><strong>Jetpack Compose Animasyon Ön İzleme</strong></h4><p>Jetpack Compose ile yapmış olduğumuz animasyonları bir ekranda incelemek ve koordine etmek için Animasyon ön izleme özelliği getirildi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*2lLVGkmjmkuLetdEW0uARQ.gif" /><figcaption>Görsel-8</figcaption></figure><p>Ayrıca Jetpack Compose sayfamızda değiştirmek istediğimiz parametreler varsa “Show Recomposition Counts” özelliği ile ilgili bileşenlerimizin değerlerini değiştirebilmekteyiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*5P7UlfMPGZwN4y1oCW-kag.png" /><figcaption>Görsel-9</figcaption></figure><p>Bizim için her şey iyi görünüyor.</p><p>Okuduğunuz için teşekkürler.</p><p>Keyifli Kodlamalar.☕☕</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c0b1b48be83" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibtech/android-studio-dolphin-yenilikleri-2c0b1b48be83">Android Studio Dolphin Yenilikleri</a> was originally published in <a href="https://medium.com/ibtech">IBTech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin KDoc & Dokka]]></title>
            <link>https://medium.com/ibtech/kotlin-kdoc-dokka-8b967dcb4a57?source=rss-c4121a8d3b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b967dcb4a57</guid>
            <category><![CDATA[dokka]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kdoc]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Hasan Kuşçu]]></dc:creator>
            <pubDate>Sun, 25 Sep 2022 19:51:23 GMT</pubDate>
            <atom:updated>2022-09-26T08:41:03.359Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhaba bugün sizlerle Kdoc ve Dokka konularına göz atacağız keyifli okumalar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*EjAj7klfKYrmWemT79SE_g.png" /><figcaption>Resim-1</figcaption></figure><p>Biraz alışılmışın dışına çıkalım ve bu yazımızda uzun açıklamalara yer vermeyelim birlikte sohbet ederek Kdoc ve Dokka’yı öğrenelim.</p><p><strong>Nedir bu Kdoc?</strong></p><pre>Kotlin kodunu (Java&#39;nın Javadoc&#39;unun eşdeğeri) belgelemek için kullanılan dile KDoc denilmektedir. Kdoc /** */ belirteçleri arasında çalışır.</pre><p><strong>Kdoc Annotation</strong></p><p>Aşağıda bulunan tüm parametreler dokümantasyonu oluşturmak için özel olarak Kdoc tarafından oluşturulmuştur.</p><p>@ param name →kullanılacak olan parametre detaylı açıklanılmak istenilirse kullanılmaktadır.</p><p>@ return → fonksiyonun geri dönüş değerini belirtir.</p><p>@ consturactor → Bir sınıfın primary öğelerini işaret eder.</p><p>@ receiver → Bir extension fonksiyonun alıcısını işaret eder.</p><p>@ propert name -&gt; Bir sınıfın özellikleri ek açıklamaya ihtiyaç duyuluyorsa bu annotation kullanılır.</p><p>@ thorows class @ exception class → Bir classın hata veya ek yapılar ile kontrol edilme durumlarının dokümante edilmesi gerektiğinde bu yapılara ile işaretlenir.</p><p>@ sample identifier → Bir öğenin nasıl kullanılabileceğine dair örnek bir açıklama içeren annotationdır.</p><p>@ author → Dokümantasyon işini kimin yaptığını belirtir.</p><p>@ since → Açıklamanın yapıldığı yazılım sürümünü belirtir.</p><p>@ suppress -&gt; Modüller dışında kalan kısımlarında dokümantasyona dahil edilmesi için kullanılmaktadır.</p><p>Not: Kdoc @ deprecated etiketini desteklemez @ Deprecated kullanılmalıdır.</p><p><strong>Nedir Bu Dokka?</strong></p><pre>Kotlin’in dokümantasyon oluşturma aracının adı Dokkadır. Kdocta yazmış olduğumuz dokümantasyon ifadeleri Dokka yardımı ile anlamlı hale gelmektedir.</pre><p><strong>Peki Projeme Nasıl Uygularım?</strong></p><p>Dokka Dokümantasyonu→ <a href="https://github.com/Kotlin/dokka">https://github.com/Kotlin/dokka</a></p><p>Projemizi açarak project gradle dosyasının içerisine aşağıda ki kodu ekliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*YASPPW7aWWXvITL5kKjNOw.png" /><figcaption>Resim-2</figcaption></figure><p><strong>Adım-1</strong></p><p>Ardından modül bazında ki gradle dosyamıza gelerek plugins kısmına</p><pre>id &#39;org.jetbrains.dokka&#39;</pre><p>ve dependencies kısmına aşağıdaki kod bloğunu ekliyoruz projemizin senkronizasyon işlemini gerçekleştiriyoruz.</p><pre>dokkaHtmlPlugin(&quot;org.jetbrains.dokka:kotlin-as-java-plugin:1.7.10&quot;)</pre><p>Bizim için her şey yolunda gözüküyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*ydWNXnWLS6x2Bx3Ah6Kzhg.png" /><figcaption>Resim-3</figcaption></figure><p><strong>Adım-2</strong></p><p>Android Studio üzerinde sağ tarafta bulunan gradle sekmesine tıklıyoruz ve açılan pencerenin aşağıdaki gibi görülmesini bekliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*bxJ9rbsy8scyzOuAg2TVWg.png" /><figcaption>Resim-4</figcaption></figure><p><strong>Adım-2.1</strong></p><p><strong>Bu Ekranı Göremiyorsanız</strong> → Aşağıdaki Adımı Takip Ediniz</p><p>Ek Link: <a href="https://stackoverflow.com/questions/67405791/gradle-tasks-are-not-showing-in-the-gradle-tool-window-in-android-studio-4-2">https://stackoverflow.com/questions/67405791/gradle-tasks-are-not-showing-in-the-gradle-tool-window-in-android-studio-4-2</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*nfJJaHE3CjY0syuowTg4vQ.png" /><figcaption>Resim-5</figcaption></figure><p>Resim-6 da belirtilmiş olan seçeneğin işareti kaldırılıp senkronizasyon işlemi tekrar yapılmalıdır. Bu işlem yapıldıktan sonra diğer seçenekleri görebileceksiniz.</p><p><strong>Adım-3</strong></p><p>Dokümante etmek istediğiniz sınıfın, fonksiyonun veya objenin açıklamalarını Kdoc a göre düzenlemelisiniz. Resim-6 buna örnek olabilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*RupA3GSK6_02lVoxpUgPBg.png" /><figcaption>Resim-6</figcaption></figure><p><strong>Adım-4</strong></p><p>Gerekli eklemeler yapıldıktan sonra Tasks bölümünden dokkaHtml çalıştırılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*AJs_2joqjIuyo9jRvPqFQw.png" /><figcaption>Resim-7</figcaption></figure><p><strong>Adım-5</strong></p><p>Task çalıştırma işlemi başarı ile tamamlandıktan sonra projemiz içerisine dokka dosyası gelecektir ve burada index.html çalıştırılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*HGgnyQyr8tSnOjKWCvWFkw.png" /><figcaption>Resim-8</figcaption></figure><p><strong>Adım-6</strong></p><p>Aşağıdaki adımlar takip edilerek tarayıcıda dokümantasyon açılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*c4NDxrupHYu1A1BpauKVTQ.png" /><figcaption>Resim-9</figcaption></figure><p><strong>Adım-7</strong></p><p>Dokümantasyon görüntüsü aşağıdadır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0kdk3ZDcTzZp4VyhVW-zrQ.png" /><figcaption>Resim-10</figcaption></figure><p>Bizim için her şey iyi görünüyor.</p><p>Okuduğunuz için teşekkürler.</p><p>Keyifli Kodlamalar.☕☕</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b967dcb4a57" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibtech/kotlin-kdoc-dokka-8b967dcb4a57">Kotlin KDoc &amp; Dokka</a> was originally published in <a href="https://medium.com/ibtech">IBTech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git History’i Yeniden Yazmak]]></title>
            <link>https://medium.com/ibtech/git-historyi-yeniden-yazmak-c2fa6b629b17?source=rss-c4121a8d3b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2fa6b629b17</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[squash]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[history]]></category>
            <dc:creator><![CDATA[Hasan Kuşçu]]></dc:creator>
            <pubDate>Wed, 21 Sep 2022 19:58:05 GMT</pubDate>
            <atom:updated>2022-09-26T08:39:15.718Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhaba, bugün sizlerle birlikte git history’nin tekrardan nasıl oluşturulacağını ele alacağız. Keyifli okumalar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*GzQyMkwhYrLgWirfoBQVEQ.png" /></figure><p><strong>Amend Nedir?</strong></p><p>Göndermiş olduğunuz commitin tekrardan mesajının düzenlenmesi veya içeriğinin değiştirilmesi işlemini git amend ile yapabilmekteyiz. Böylelikle yapmış olduğumuz hatalı göndermelerde ek commitler ile değil de amend ile çözerek daha sade bir history yakalamış oluyoruz.</p><p>Gelin birlikte amend nasıl uygulanır bakalım. Öncelikle basit bir commit atarak history’mizi oluşturalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PR25Eil4EgNVRwVgq_a4rw.png" /></figure><p>History’mizi oluşturduk, şimdi bu amend ile history’mizi değiştirelim. Terminal üzerinde aşağıdaki kod bloğunu çalıştırarak commit mesajını değiştirebilmekteyiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MFBrXdO_bxwkY0OJKS4G-A.png" /></figure><p>Aşağıda history’mizin değiştiğini görmekteyiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A3kz7NY7rDSb9hSCXXr1aA.png" /></figure><p><strong>Delete Nedir?</strong></p><p>İhtiyacımız olmayan git commitlerini silmeye yarayan işleme delete nedir. Öncelikle görüntülenmek istenen commit seçilir ve silme işlemi gerçekleştirilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tzDOaZ7ThOgS8JqAH6UutA.png" /></figure><p>Silinmek istenen commit drop ile silinir. Kaydetmek için Esc:wq kombinasyonu kullanılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GyvrmRYp-RSly0KF8sLCsA.png" /></figure><p>Evet, commitlerimizin silindiğini görüyoruz ve history’miz tekrardan değişmiş durumda.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oS6ExwSDYV90Oyd1Y55MdQ.png" /></figure><p><strong>Reorder nedir?</strong></p><p>Atmış olduğumuz commitlerin sırasını değiştirmeye yaran git komutudur.</p><p>Öncelikle history’mizi tekrardan oluşturalım. Yapılan işlemleri daha net görebilmemiz adına 2 yeni commit ekledim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hxiFJ9_DeP70Nm8Gn-fZIQ.png" /></figure><p>Son 4 commiti görebilmek için aşağıdaki kodu çalıştıralım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*ZUwc15vkfYnTIDIpLGhOtA.png" /></figure><p>Ardından i ye basarak insert özelliğini aktifleştirdim, 4. sırada bulunan commiti 1. sıraya taşıdım ve Esc:wq ile yapmış olduğum işlemleri kaydettim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OqlcT01t_K693Bycyak-bg.png" /></figure><p>Ardından history’nin değiştiğini kontrol edebiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0tKnEhEhDw_IODiTjWJWMg.png" /></figure><p><strong>Squash Nedir?</strong></p><p>Squash fazlaca atılan commitlerin history’de karmaşıklığa neden olmasından ve okumayı zorlaştırdığından dolayı ortaya çıkmıştır. Örnek verecek olursak geliştirmelerimizi sistematik bir şekilde göndermekteyiz fakat unuttuğumuz ufak tefek şeyleri sonradan commit atarak history’de fazlalık oluşturuyoruz. Squash gruplanmak istenen commitleri gruplayarak tek bir commit haline getirmektedir.</p><p>Son dört committen üçünü squash ile birleştiriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z8KqZAzLSf1VAEMdkxqn4g.png" /></figure><p>Squash işlemi sonrası görünüm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dfeP7Y0qyeDP37TlXLcSkw.png" /></figure><p>Bizim için her şey mükemmel görünüyor.</p><p>Okuduğunuz için teşekkürler.</p><p>Keyifli kodlamalar.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2fa6b629b17" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibtech/git-historyi-yeniden-yazmak-c2fa6b629b17">Git History’i Yeniden Yazmak</a> was originally published in <a href="https://medium.com/ibtech">IBTech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[APK Decompile]]></title>
            <link>https://medium.com/ibtech/apk-decompile-a2ec351cb5b3?source=rss-c4121a8d3b67------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2ec351cb5b3</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[decompile]]></category>
            <dc:creator><![CDATA[Hasan Kuşçu]]></dc:creator>
            <pubDate>Thu, 19 May 2022 19:43:58 GMT</pubDate>
            <atom:updated>2022-05-20T05:30:04.921Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhabalar, bugün sizlerle gizem dolu bir konuyu ele alacağız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JcFVAPrCrkQAeRhVZKZAQQ.png" /></figure><p><strong>Apk Decompile Nedir?</strong></p><p>Herhangi bir android uygulamasının önce apk dosyasına, ardından kaynak kodlarına dönüştürülmesi sürecidir. Kullandığımız toolları kullanabilmek için Java SDK ve JRE, Android SDK kurulu olması gerekmektedir.</p><p><strong>Apk Nasıl Elde Edilir?</strong></p><p>İlgili apk’yı çeşitli internet sitelerinden elde edebilirsiniz fakat spesifik bir yöntem ile nasıl apk elde edebileceğimize gelin birlikte bakalım.</p><p>Google Play Store üzerinden ücretsiz olarak indirebileceğiniz FILE-Manager uygulamasını kullanarak istediğiniz apk’ya akademik açıdan erişebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*PskPJ-FB2pDuSqaMbdXPIg.jpeg" /></figure><ol><li><strong>Adım</strong></li></ol><p>Uygulama indirildikten sonra açılır ve görsel üzerinde kırmızı ile belirtilen kullanıcı uygulamalarına gidilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g9R8-LNqLQMvrW_lQwUiEQ.jpeg" /></figure><p><strong>2. Adım</strong></p><p>Uygulamalar arasında apk dosyası oluşturulmak istenen uygulama bulunur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VRIEG3loGQg8BsAx1PT35g.jpeg" /></figure><p><strong>3. Adım</strong></p><p>Görselde belirtilen üst üste üç noktadan backup işlemi gerçekleştirilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kba94_4N3-ftRoFcOz82PQ.jpeg" /></figure><p><strong>4. Adım</strong></p><p>Apk oluşmuş bir şekilde bu alandan Windows veya Mac cihazlarımıza paylaşarak decompile işlemine geçmekteyiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1hxiG7scEFeARNEz3f4yUA.jpeg" /></figure><p><strong>Kullandığımız Toollar</strong></p><h3>1-Apk Tool</h3><p><a href="https://ibotpeaches.github.io/Apktool/">Apktool | Apktool</a></p><p>Sitesinden apk-toolu indirebilir ve apkyı kaynak kodlarına dönüştürebilirsiniz.</p><p>Gelin Birlikte Apk Toolu kullanarak nasıl kaynak kodlarına ayrıştırabildiğimizi inceleyelim.</p><p><strong>Adım 1- Gerekli İndirme İşlemlerini Yapınız</strong></p><p>İndirme işlemi yapıldıktan sonra ihtiyacınız olan tek şey bir apk dosyası.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*nqnsLvpchAMOIXS3SB_pdw.png" /></figure><p><strong>Adım 2- Dosya Dizinine Gidin ve Kodu Çalıştırın</strong></p><p>Ardından cmd’yi açarak dosyalarınızın bulunduğu konuma gidin ve kendi apk adınız ile bu kodu çalıştırın.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*3CyW2uuY7Zrpfe-rza5Elw.png" /></figure><p><strong>Adım 3 — Sonuca Ulaşın ve Kaynak Kodları Açın</strong></p><p>Kodu çalıştırdıktan sonra başarılı olduğunu anlayabilmeniz için aşağıdaki gibi geri dönüş değeri almalısınız, ardından dosya dizininizde ayrıştırdığınız apk’nın adı ile yeni bir klasör oluşmalıdır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*TT-XwiZvqHb20DpX51BN2Q.png" /></figure><p>Oluşması beklenen klasör;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*TH_YapPkEGNnTLL-lYXxQg.png" /></figure><p>Dosya oluştuktan sonra bu klasörü Android Studio üzerinde açabilir ve kaynak kodlara bakabilirsiniz.</p><p>Not: Çeşitli apk encript yöntemleri kullanıldığı için ayrıştırılan uygulamalarda bazı hatta bir çok sayfa encriptli gözükebilir.</p><h3>2- JADX</h3><p>Bir diğer toolumuz olan Jadx, ApkTool’a oranla daha iyi ayrıştırdığını söyleyebilir evet bu toolumuzda da encriptli dosyalar bulunuyor fakat anlamlı kısımların daha fazla olduğunu kendim gözlemledim.</p><p><a href="https://github.com/skylot/jadx">GitHub — skylot/jadx: Dex to Java decompiler</a></p><p><strong>Adım 1- Gerekli İndirmeleri Yapınız</strong></p><p>Github’ta sürekli güncellenen bu toolun indirmesini yukarıda vermiş olduğum link üzerinden yapınız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*ztX5eB5G63W3C5MPUkVUrw.png" /></figure><p>Dosyadan çıkartma işlemini yapınız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*yExrirm4BqfeGPuaPH0AIw.png" /></figure><p>Çıkartılan dosyalar arasından bin→ jadx-gui.bat dosyasını yönetici olarak çalıştırın.</p><p>Açılan sayfada ornek.apk nızı seçerek decompile edebilirsiniz. Jadx’in kendine ait görsel arayüzü(GUI) bulunmaktadır. Bu uygulamayı Android Studio gibi kullanabilmekteyiz. Dilerseniz çıktı dosyalarını Android Studio üzerinde de açabilirsiniz.</p><p>Okuduğunuz için teşekkürler.</p><p>Keyifli kodlamalar.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2ec351cb5b3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibtech/apk-decompile-a2ec351cb5b3">APK Decompile</a> was originally published in <a href="https://medium.com/ibtech">IBTech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>