Coder Social home page Coder Social logo

openinstall-react-native's People

Contributors

githublzy avatar jdaielin avatar loadingcooper avatar mrconready avatar wenkiwu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

openinstall-react-native's Issues

rn导入打包release apk 报错

RT:

"react": "16.9.0",
"react-native": "0.61.4",
"openinstall-react-native": "^1.1.7"

./gradlew assembleRelease 如下报错

Task :openinstall-react-native:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':openinstall-react-native:verifyReleaseResources'.

1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
/app/node_modules/openinstall-react-native/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/app/node_modules/openinstall-react-native/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/app/node_modules/openinstall-react-native/android/build/intermediates/res/merged/release/values/values.xml:2744: error: resource android:attr/fontVariationSettings not found.
/app/node_modules/openinstall-react-native/android/build/intermediates/res/merged/release/values/values.xml:2745: error: resource android:attr/ttcIndex not found.
error: failed linking references.

image

build.gradle 需要修正

在 android/build.gradle 內
應該用一個function去設定android{}區塊內的版本

例如
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
compileSdkVersion safeExtGet('compileSdkVersion', 28)
...

否則將會影響到使用者原本專案的設定而在build時產生error

昨天在QQ群裡面反映過了
請協助修正謝謝

提供初始化控制

能不能优化一下,不立即初始化,导出一个初始化的函数:
原生接入可以包含以下逻辑:
App 启动时,调用OpenInstall.init(context)方法完成 sdk 初始化 ,务必确保用户同意《隐私政策》之后,再初始化openinstall SDK;如果用户不同意,则不进行openinstall SDK初始化

而本库现在自动初始化,不管是否已同意 ,无法和隐私协议 的 ‘同意’ 进行顺序控制 。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.