params_kit.h 620 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // Created by #Suyghur, on 2021/10/15.
  3. //
  4. #ifndef XINRUIGAMESDK_PARAMS_KIT_H
  5. #define XINRUIGAMESDK_PARAMS_KIT_H
  6. #include <string>
  7. #include <jni.h>
  8. #define CONFIG_FILE "YyrhParam.cnf"
  9. #define GCP_CODE "GCP_CODE"
  10. #define CHANNEL_TAG "CHANNELTAG"
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. class ParamsKit {
  15. public:
  16. static std::string GetGcpCode(JNIEnv *env, jobject context);
  17. static std::string GetChannelTag(JNIEnv *env, jobject context);
  18. private:
  19. static std::string GetCnfValue(JNIEnv *env, jobject context, const std::string &key);
  20. };
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #endif //XINRUIGAMESDK_PARAMS_KIT_H