Skip to content

Commit

Permalink
comment CONFIG_CAT
Browse files Browse the repository at this point in the history
  • Loading branch information
eby8zevin committed Dec 5, 2022
1 parent 13eb97b commit 24ed81c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Android CI

on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
Expand All @@ -21,10 +17,10 @@ jobs:
distribution: 'temurin'
cache: gradle

- name: Access ConfigCat
env:
CONFIG_CAT: ${{ secrets.CONFIG_CAT }}
run: echo CONFIG_CAT=\"$CONFIG_CAT\" > ./local.properties
#- name: Access ConfigCat
# env:
# CONFIG_CAT: ${{ secrets.CONFIG_CAT }}
# run: echo CONFIG_CAT=\"$CONFIG_CAT\" > ./local.properties

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down
12 changes: 4 additions & 8 deletions app/src/main/java/com/ahmadabuhasan/qrbarcode/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import android.net.Uri;
import android.os.Bundle;
import android.os.Vibrator;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
Expand All @@ -17,9 +16,6 @@
import androidx.appcompat.app.AppCompatActivity;

import com.ahmadabuhasan.qrbarcode.databinding.ActivityMainBinding;
import com.configcat.ConfigCatClient;
import com.configcat.LogLevel;
import com.configcat.User;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.MobileAds;
import com.google.zxing.Result;
Expand All @@ -34,7 +30,7 @@
public class MainActivity extends AppCompatActivity implements ZXingScannerView.ResultHandler {

private static final int PERMISSION_CODE = 100;
private static final String TAG = "ConfigCat";
//private static final String TAG = "ConfigCat";
private static final String FLASH_STATE = "FLASH_STATE";
private static long pressedTime;
private boolean flashlight;
Expand Down Expand Up @@ -64,7 +60,7 @@ protected void onCreate(Bundle savedInstanceState) {
flashOn();
flashOff();

ConfigCat();
//ConfigCat();
}

private void flashOn() {
Expand Down Expand Up @@ -168,7 +164,7 @@ public void onBackPressed() {
pressedTime = System.currentTimeMillis();
}

private void ConfigCat() {
/*private void ConfigCat() {
String SDK = BuildConfig.SDK;
ConfigCatClient client = ConfigCatClient.newBuilder()
.logLevel(LogLevel.INFO)
Expand All @@ -180,5 +176,5 @@ private void ConfigCat() {
.build(SDK);
Log.d(TAG, "ConfigCat: " + client + user);
}
}*/
}

0 comments on commit 24ed81c

Please sign in to comment.