From 0e7714ec21c495fddc6dc7aea8aaef61afa9b837 Mon Sep 17 00:00:00 2001 From: Berkant Korkmaz Date: Wed, 11 Apr 2018 11:32:10 +0300 Subject: [PATCH] Change package name * Google libraries were updated as well --- app/build.gradle | 6 +- app/src/main/AndroidManifest.xml | 4 +- .../github}/berkantkz/klu/KLU_Adapter.java | 106 ++-- .../github}/berkantkz/klu/KLU_List.java | 98 ++-- .../github}/berkantkz/klu/MainActivity.java | 457 +++++++++--------- .../github}/berkantkz/klu/Utils/TinyDB.java | 2 +- app/src/main/res/layout/activity_main.xml | 2 +- build.gradle | 2 + 8 files changed, 341 insertions(+), 336 deletions(-) rename app/src/main/java/{com/tavsify => io/github}/berkantkz/klu/KLU_Adapter.java (95%) rename app/src/main/java/{com/tavsify => io/github}/berkantkz/klu/KLU_List.java (89%) rename app/src/main/java/{com/tavsify => io/github}/berkantkz/klu/MainActivity.java (96%) rename app/src/main/java/{com/tavsify => io/github}/berkantkz/klu/Utils/TinyDB.java (99%) diff --git a/app/build.gradle b/app/build.gradle index 7e6d2c5..405c9fa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,7 +8,7 @@ minSdkVersion 15 targetSdkVersion 27 versionCode 3 - versionName "stable-2.1" + versionName "stable-3.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { @@ -37,7 +37,7 @@ repositories { androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) - compile 'com.android.support:appcompat-v7:26.+' + compile 'com.android.support:appcompat-v7:27.1.1' compile 'com.android.support.constraint:constraint-layout:1.0.2' - compile 'com.google.android.gms:play-services-ads:10.0.0' + compile 'com.google.android.gms:play-services-ads:11.8.0' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 7cee20a..1f1ec3b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ + package="io.github.berkantkz.klu" > @@ -12,7 +12,7 @@ android:roundIcon="@mipmap/ic_launcher" android:supportsRtl="true" android:theme="@style/AppTheme" > - + diff --git a/app/src/main/java/com/tavsify/berkantkz/klu/KLU_Adapter.java b/app/src/main/java/io/github/berkantkz/klu/KLU_Adapter.java similarity index 95% rename from app/src/main/java/com/tavsify/berkantkz/klu/KLU_Adapter.java rename to app/src/main/java/io/github/berkantkz/klu/KLU_Adapter.java index 23e51f6..dc238d5 100644 --- a/app/src/main/java/com/tavsify/berkantkz/klu/KLU_Adapter.java +++ b/app/src/main/java/io/github/berkantkz/klu/KLU_Adapter.java @@ -1,52 +1,54 @@ -package com.tavsify.berkantkz.klu; - -import android.content.Context; -import android.support.annotation.NonNull; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.ArrayAdapter; -import android.widget.TextView; - -import java.util.ArrayList; - -/** - * Created by Bilgisayar on 14.10.2017. - */ - -class KLU_Adapter extends ArrayAdapter{ - private ArrayList klist; - private LayoutInflater vi; - private int Resource; - - KLU_Adapter(Context context, int resource, ArrayList objects) { - super(context, resource, objects); - vi = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); - Resource = resource; - klist = objects; - } - - @NonNull - @Override - public View getView(int position, View convertView, @NonNull ViewGroup parent) { - // convert view = design - View v = convertView; - ViewHolder holder; - if (v == null) { - holder = new ViewHolder(); - v = vi.inflate(Resource, null); - holder.start = (TextView) v.findViewById(R.id.start); - v.setTag(holder); - } else { - holder = (ViewHolder) v.getTag(); - } - - holder.start.setText(klist.get(position).getStart().replace("00:00:00", "").replace("00:00:00","").replace("-01-"," Ocak ").replace("-02-", " Şubat ").replace("-03-"," Mart ").replace("-04-", " Nisan ").replace("-05-", " Mayıs ").replace("-06-"," Haziran ").replace("-07-", " Temmuz ").replace("-08-", " Ağustos ").replace("-09-", " Eylül ").replace("-10-" ," Ekim ").replace("-11-", " Kasım ").replace("-12-", " Aralık ").toUpperCase() + " " + klist.get(position).getTitle()); - - return v; - } - - private static class ViewHolder { - TextView start; - } -} +package io.github.berkantkz.klu; + +import android.content.Context; +import android.support.annotation.NonNull; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ArrayAdapter; +import android.widget.TextView; + +import io.github.berkantkz.klu.R; + +import java.util.ArrayList; + +/** + * Created by Bilgisayar on 14.10.2017. + */ + +class KLU_Adapter extends ArrayAdapter{ + private ArrayList klist; + private LayoutInflater vi; + private int Resource; + + KLU_Adapter(Context context, int resource, ArrayList objects) { + super(context, resource, objects); + vi = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); + Resource = resource; + klist = objects; + } + + @NonNull + @Override + public View getView(int position, View convertView, @NonNull ViewGroup parent) { + // convert view = design + View v = convertView; + ViewHolder holder; + if (v == null) { + holder = new ViewHolder(); + v = vi.inflate(Resource, null); + holder.start = (TextView) v.findViewById(R.id.start); + v.setTag(holder); + } else { + holder = (ViewHolder) v.getTag(); + } + + holder.start.setText(klist.get(position).getStart().replace("00:00:00", "").replace("00:00:00","").replace("-01-"," Ocak ").replace("-02-", " Şubat ").replace("-03-"," Mart ").replace("-04-", " Nisan ").replace("-05-", " Mayıs ").replace("-06-"," Haziran ").replace("-07-", " Temmuz ").replace("-08-", " Ağustos ").replace("-09-", " Eylül ").replace("-10-" ," Ekim ").replace("-11-", " Kasım ").replace("-12-", " Aralık ").toUpperCase() + " " + klist.get(position).getTitle()); + + return v; + } + + private static class ViewHolder { + TextView start; + } +} diff --git a/app/src/main/java/com/tavsify/berkantkz/klu/KLU_List.java b/app/src/main/java/io/github/berkantkz/klu/KLU_List.java similarity index 89% rename from app/src/main/java/com/tavsify/berkantkz/klu/KLU_List.java rename to app/src/main/java/io/github/berkantkz/klu/KLU_List.java index 991bb9a..5c3593d 100644 --- a/app/src/main/java/com/tavsify/berkantkz/klu/KLU_List.java +++ b/app/src/main/java/io/github/berkantkz/klu/KLU_List.java @@ -1,49 +1,49 @@ -package com.tavsify.berkantkz.klu; - -/** - * Created by Bilgisayar on 14.10.2017. - */ - -public class KLU_List { - private String id; - private String title; - private String aciklama; - private String start; - - KLU_List() { - - } - - String getId() { - return title; - } - - void setId(String id) { - this.id = id; - } - - String getTitle() { - return title; - } - - void setTitle(String title) { - this.title = title; - } - - String getAciklama() { - return aciklama; - } - - void setAciklama(String aciklama) { - this.aciklama = aciklama; - } - - String getStart() { - return start; - } - - void setStart(String start) { - this.start = start; - } - -} +package io.github.berkantkz.klu; + +/** + * Created by Bilgisayar on 14.10.2017. + */ + +public class KLU_List { + private String id; + private String title; + private String aciklama; + private String start; + + KLU_List() { + + } + + String getId() { + return title; + } + + void setId(String id) { + this.id = id; + } + + String getTitle() { + return title; + } + + void setTitle(String title) { + this.title = title; + } + + String getAciklama() { + return aciklama; + } + + void setAciklama(String aciklama) { + this.aciklama = aciklama; + } + + String getStart() { + return start; + } + + void setStart(String start) { + this.start = start; + } + +} diff --git a/app/src/main/java/com/tavsify/berkantkz/klu/MainActivity.java b/app/src/main/java/io/github/berkantkz/klu/MainActivity.java similarity index 96% rename from app/src/main/java/com/tavsify/berkantkz/klu/MainActivity.java rename to app/src/main/java/io/github/berkantkz/klu/MainActivity.java index 7184251..688768e 100644 --- a/app/src/main/java/com/tavsify/berkantkz/klu/MainActivity.java +++ b/app/src/main/java/io/github/berkantkz/klu/MainActivity.java @@ -1,228 +1,229 @@ -package com.tavsify.berkantkz.klu; - -import android.app.Activity; -import android.content.Context; -import android.content.DialogInterface; -import android.net.ConnectivityManager; -import android.net.NetworkInfo; -import android.os.AsyncTask; -import android.os.Bundle; -import android.support.v7.app.AlertDialog; -import android.support.v7.app.AppCompatActivity; -import android.view.Menu; -import android.view.MenuItem; -import android.view.View; -import android.widget.AdapterView; -import android.widget.GridView; -import android.widget.ProgressBar; -import android.widget.Toast; - -import com.google.android.gms.ads.AdListener; -import com.google.android.gms.ads.AdRequest; -import com.google.android.gms.ads.AdView; -import com.google.android.gms.ads.InterstitialAd; -import com.google.android.gms.ads.MobileAds; -import com.tavsify.berkantkz.klu.Utils.TinyDB; - -import org.apache.http.HttpEntity; -import org.apache.http.HttpResponse; -import org.apache.http.client.HttpClient; -import org.apache.http.client.methods.HttpGet; -import org.apache.http.impl.client.DefaultHttpClient; -import org.apache.http.util.EntityUtils; -import org.json.JSONArray; -import org.json.JSONException; -import org.json.JSONObject; - -import java.io.IOException; -import java.util.ArrayList; - -public class MainActivity extends Activity { - - TinyDB tinydb; - static ArrayList list; - static KLU_Adapter adapter; - private InterstitialAd mInterstitialAd; - static ProgressBar pb; - int counter = 0; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - tinydb = new TinyDB(getApplicationContext()); - - MobileAds.initialize(getApplicationContext(),"ca-app-pub-2951689275458403~2892686723"); - startInterstitialAd(); - - AdView mAdView = findViewById(R.id.adView); - AdRequest adRequest = new AdRequest.Builder().build(); - mAdView.loadAd(adRequest); - - pb = findViewById(R.id.pb); - - list = new ArrayList<>(); - - if(isNetworkAvailable()) { - startLoading(); - } else { - noNetwork(); - } - - final GridView listView = findViewById(R.id.lv); - - adapter = new KLU_Adapter(getApplicationContext(), R.layout.row, list); - listView.setAdapter(adapter); - - listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { - @Override - public void onItemClick(AdapterView parent, View view, int position, long id) { - new AlertDialog.Builder(MainActivity.this, R.style.DialogTheme) - .setTitle(list.get(position).getStart().replace("00:00:00","").replace("-01-"," Ocak ").replace("-02-", " Şubat ").replace("-03-"," Mart ").replace("-04-", " Nisan ").replace("-05-", " Mayıs ").replace("-06-"," Haziran ").replace("-07-", " Temmuz ").replace("-08-", " Ağustos ").replace("-09-", " Eylül ").replace("-10-" ," Ekim ").replace("-11-", " Kasım ").replace("-12-", " Aralık ").toUpperCase() + " " + list.get(position).getTitle()) - .setMessage(list.get(position).getAciklama().replace(",","")) - .setPositiveButton("KAPAT", null) - .show(); - startInterstitialAd(); - } - }); - - } - - public void startLoading() { - if (isNetworkAvailable()) { - new JSONAsyncTask().execute("https://berkantkz.github.io/KLU_Yemek/list.json"); - pb.setVisibility(View.VISIBLE); - startInterstitialAd(); - } else { - noNetwork(); - } - } - - public void noNetwork() { - new AlertDialog.Builder(MainActivity.this, R.style.DialogTheme) - .setTitle("Bağlantı yok") - .setMessage("Kullanılabilir bir bağlantı mevcut değil") - .setPositiveButton("TEKRAR DENE", new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - startLoading(); - } - }) - .setNegativeButton("ÇIKIŞ", new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - finish(); - } - }) - .show(); - pb.setVisibility(View.GONE); - } - - private static class JSONAsyncTask extends AsyncTask { - - @Override - protected void onPreExecute() { - super.onPreExecute(); - } - - @Override - protected Boolean doInBackground(String... urls) { - try { - HttpGet httppost = new HttpGet(urls[0]); - HttpClient httpclient = new DefaultHttpClient(); - HttpResponse response = httpclient.execute(httppost); - - if (response.getStatusLine().getStatusCode() == 200) { - HttpEntity entity = response.getEntity(); - String data = EntityUtils.toString(entity); - JSONArray jarray = new JSONArray(data); - - for (int i = 0; i < jarray.length(); i++) { - JSONObject object = jarray.getJSONObject(i); - - KLU_List KLUList = new KLU_List(); - - KLUList.setId(object.getString("id")); - KLUList.setTitle(object.getString("title")); - KLUList.setAciklama(object.getString("aciklama")); - KLUList.setStart(object.getString("start")); - - list.add(KLUList); - - } - return true; - } - - } catch ( IOException | JSONException e) { - e.printStackTrace(); - } - return false; - - } - protected void onPostExecute(Boolean result) { - adapter.notifyDataSetChanged(); - pb.setVisibility(View.GONE); - } - } - - @Override - public boolean onCreateOptionsMenu(Menu menu) { - // Inflate the menu; this adds items to the action bar if it is present. - getMenuInflater().inflate(R.menu.menu, menu); - return true; - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - // Handle action bar item clicks here. The action bar will - // automatically handle clicks on the Home/Up button, so long - // as you specify a parent activity in AndroidManifest.xml. - int id = item.getItemId(); - - if (id == R.id.action_settings) { - new AlertDialog.Builder(MainActivity.this, R.style.DialogTheme) - .setTitle("Hakkında") - .setMessage("Kullanılan liste Kırklareli Üniversitesi resmi web sayfasından alınmıştır. \n\nUygulama kaynağı GitHub'da bulunabilir: \n https://github.com/berkantkz/KLU_Yemek \n\n - Berkant Korkmaz, berkantkz") - .setPositiveButton("KAPAT", new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - counter = counter + 1; - if (counter == 4) { - tinydb.putBoolean("isAdsDisabled",true); - Toast.makeText(MainActivity.this, "Reklâmlar devre dışı bırakıldı.", Toast.LENGTH_SHORT).show(); - } - } - }) - .show(); - startInterstitialAd(); - } - - return super.onOptionsItemSelected(item); - } - - private boolean isNetworkAvailable() { - ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); - NetworkInfo activeNetworkInfo = null; - if (connectivityManager != null) { - activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); - } - return activeNetworkInfo != null && activeNetworkInfo.isConnected(); - } - - public void startInterstitialAd() { - if (!tinydb.getBoolean("isAdsDisabled")) { - mInterstitialAd = new InterstitialAd(this); - mInterstitialAd.setAdUnitId("ca-app-pub-2951689275458403/2628252404"); - mInterstitialAd.loadAd(new AdRequest.Builder().build()); - mInterstitialAd.setAdListener(new AdListener() { - @Override - public void onAdLoaded() { - mInterstitialAd.show(); - } - }); - } else { - Toast.makeText(this, ":)", Toast.LENGTH_SHORT).show(); - } - } -} +package io.github.berkantkz.klu; + +import android.app.Activity; +import android.content.Context; +import android.content.DialogInterface; +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import android.os.AsyncTask; +import android.os.Bundle; +import android.support.v7.app.AlertDialog; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.widget.AdapterView; +import android.widget.GridView; +import android.widget.ProgressBar; +import android.widget.Toast; + +import com.google.android.gms.ads.AdListener; +import com.google.android.gms.ads.AdRequest; +import com.google.android.gms.ads.AdView; +import com.google.android.gms.ads.InterstitialAd; +import com.google.android.gms.ads.MobileAds; +import io.github.berkantkz.klu.R; + +import io.github.berkantkz.klu.Utils.TinyDB; + +import org.apache.http.HttpEntity; +import org.apache.http.HttpResponse; +import org.apache.http.client.HttpClient; +import org.apache.http.client.methods.HttpGet; +import org.apache.http.impl.client.DefaultHttpClient; +import org.apache.http.util.EntityUtils; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; + +import java.io.IOException; +import java.util.ArrayList; + +public class MainActivity extends Activity { + + TinyDB tinydb; + static ArrayList list; + static KLU_Adapter adapter; + private InterstitialAd mInterstitialAd; + static ProgressBar pb; + int counter = 0; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + tinydb = new TinyDB(getApplicationContext()); + + MobileAds.initialize(getApplicationContext(),"ca-app-pub-2951689275458403~2892686723"); + startInterstitialAd(); + + AdView mAdView = findViewById(R.id.adView); + AdRequest adRequest = new AdRequest.Builder().build(); + mAdView.loadAd(adRequest); + + pb = findViewById(R.id.pb); + + list = new ArrayList<>(); + + if(isNetworkAvailable()) { + startLoading(); + } else { + noNetwork(); + } + + final GridView listView = findViewById(R.id.lv); + + adapter = new KLU_Adapter(getApplicationContext(), R.layout.row, list); + listView.setAdapter(adapter); + + listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { + @Override + public void onItemClick(AdapterView parent, View view, int position, long id) { + new AlertDialog.Builder(MainActivity.this, R.style.DialogTheme) + .setTitle(list.get(position).getStart().replace("00:00:00","").replace("-01-"," Ocak ").replace("-02-", " Şubat ").replace("-03-"," Mart ").replace("-04-", " Nisan ").replace("-05-", " Mayıs ").replace("-06-"," Haziran ").replace("-07-", " Temmuz ").replace("-08-", " Ağustos ").replace("-09-", " Eylül ").replace("-10-" ," Ekim ").replace("-11-", " Kasım ").replace("-12-", " Aralık ").toUpperCase() + " " + list.get(position).getTitle()) + .setMessage(list.get(position).getAciklama().replace(",","")) + .setPositiveButton("KAPAT", null) + .show(); + startInterstitialAd(); + } + }); + + } + + public void startLoading() { + if (isNetworkAvailable()) { + new JSONAsyncTask().execute("https://berkantkz.github.io/KLU_Yemek/list.json"); + pb.setVisibility(View.VISIBLE); + startInterstitialAd(); + } else { + noNetwork(); + } + } + + public void noNetwork() { + new AlertDialog.Builder(MainActivity.this, R.style.DialogTheme) + .setTitle("Bağlantı yok") + .setMessage("Kullanılabilir bir bağlantı mevcut değil") + .setPositiveButton("TEKRAR DENE", new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + startLoading(); + } + }) + .setNegativeButton("ÇIKIŞ", new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + finish(); + } + }) + .show(); + pb.setVisibility(View.GONE); + } + + private static class JSONAsyncTask extends AsyncTask { + + @Override + protected void onPreExecute() { + super.onPreExecute(); + } + + @Override + protected Boolean doInBackground(String... urls) { + try { + HttpGet httppost = new HttpGet(urls[0]); + HttpClient httpclient = new DefaultHttpClient(); + HttpResponse response = httpclient.execute(httppost); + + if (response.getStatusLine().getStatusCode() == 200) { + HttpEntity entity = response.getEntity(); + String data = EntityUtils.toString(entity); + JSONArray jarray = new JSONArray(data); + + for (int i = 0; i < jarray.length(); i++) { + JSONObject object = jarray.getJSONObject(i); + + KLU_List KLUList = new KLU_List(); + + KLUList.setId(object.getString("id")); + KLUList.setTitle(object.getString("title")); + KLUList.setAciklama(object.getString("aciklama")); + KLUList.setStart(object.getString("start")); + + list.add(KLUList); + + } + return true; + } + + } catch ( IOException | JSONException e) { + e.printStackTrace(); + } + return false; + + } + protected void onPostExecute(Boolean result) { + adapter.notifyDataSetChanged(); + pb.setVisibility(View.GONE); + } + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.menu, menu); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + // Handle action bar item clicks here. The action bar will + // automatically handle clicks on the Home/Up button, so long + // as you specify a parent activity in AndroidManifest.xml. + int id = item.getItemId(); + + if (id == R.id.action_settings) { + new AlertDialog.Builder(MainActivity.this, R.style.DialogTheme) + .setTitle("Hakkında") + .setMessage("Kullanılan liste Kırklareli Üniversitesi resmi web sayfasından alınmıştır. \n\nUygulama kaynağı GitHub'da bulunabilir: \n https://github.com/berkantkz/KLU_Yemek \n\n - Berkant Korkmaz, berkantkz") + .setPositiveButton("KAPAT", new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + counter = counter + 1; + if (counter == 4) { + tinydb.putBoolean("isAdsDisabled",true); + Toast.makeText(MainActivity.this, "Reklâmlar devre dışı bırakıldı.", Toast.LENGTH_SHORT).show(); + } + } + }) + .show(); + startInterstitialAd(); + } + + return super.onOptionsItemSelected(item); + } + + private boolean isNetworkAvailable() { + ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); + NetworkInfo activeNetworkInfo = null; + if (connectivityManager != null) { + activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); + } + return activeNetworkInfo != null && activeNetworkInfo.isConnected(); + } + + public void startInterstitialAd() { + if (!tinydb.getBoolean("isAdsDisabled")) { + mInterstitialAd = new InterstitialAd(this); + mInterstitialAd.setAdUnitId("ca-app-pub-2951689275458403/2628252404"); + mInterstitialAd.loadAd(new AdRequest.Builder().build()); + mInterstitialAd.setAdListener(new AdListener() { + @Override + public void onAdLoaded() { + mInterstitialAd.show(); + } + }); + } else { + Toast.makeText(this, ":)", Toast.LENGTH_SHORT).show(); + } + } +} diff --git a/app/src/main/java/com/tavsify/berkantkz/klu/Utils/TinyDB.java b/app/src/main/java/io/github/berkantkz/klu/Utils/TinyDB.java similarity index 99% rename from app/src/main/java/com/tavsify/berkantkz/klu/Utils/TinyDB.java rename to app/src/main/java/io/github/berkantkz/klu/Utils/TinyDB.java index d49ae04..bdfb71a 100644 --- a/app/src/main/java/com/tavsify/berkantkz/klu/Utils/TinyDB.java +++ b/app/src/main/java/io/github/berkantkz/klu/Utils/TinyDB.java @@ -19,7 +19,7 @@ * and unicode 2017 that are used for separating the items in a list. */ -package com.tavsify.berkantkz.klu.Utils; +package io.github.berkantkz.klu.Utils; import java.io.File; import java.io.FileOutputStream; diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 86d5158..ad3bade 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -6,7 +6,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" - tools:context="com.tavsify.berkantkz.klu.MainActivity"> + tools:context="io.github.berkantkz.klu.MainActivity">